Hi
I have a repeater control which contains 3 fields from the table associated with it. I'm then looping though the table, checking the values of a particular column. If the check fails I would like the focus to be set to the problem cell. My check is working but the setfocus on the failed column is not working. Is this possible to do?
Cheers
Can you set focus on a field within a repeater?
Moderators: Jon, Steve, Ian, Dave
- Jez
- Ebase User
- Posts: 31
- Joined: Thu Aug 21, 2008 11:03 am
- Location: Hampshire County Council
Can you set focus on a field within a repeater?
0 x
--------------------------------------
Jez Hollinshead - Hampshire CC
Jez Hollinshead - Hampshire CC
-
- Moderator
- Posts: 416
- Joined: Fri Sep 07, 2007 3:44 pm
- Location: Sandy, UK
- Contact:
Re: Can you set focus on a field within a repeater?
Hi Jez,
You should be able to loop through the table and request focus:
e.g
I hope this helps.
Steve
You should be able to loop through the table and request focus:
e.g
Code: Select all
while(rows.next())
{
if(!tables.Customers.name.value)
{
event.getOwner().addErrorMessage("Please Specify Name", false);
tables.Customers.name.getColumnControl().requestFocus();
break;
}
}
Steve
0 x
Who is online
Users browsing this forum: No registered users and 7 guests