Forum


07:38

15/05/2010

What information do you allready have about the row.
Do you have the row id? Or the value of the field that is marked as the key?
It creates the row as defined like this. Notice that the id of the row is the same as the key value.
So then you could just do.
This would return tru if it was selected and false if it were not selected.
This leads me to an intresting issue of having multiple grids on the same form that have rows that happen to have the same key value.
Becuase my tables use an autogenerated id field for thier primary key it is possible that if I put 2 grids on the same page that I could possibly wind up with 2 elements on the same page with the same id. This would be disasterous if I were looking for the rows just by the id's.
Hi DaElectric,
Thanks for your reply and solution. Yep I have the row's ID, and would like to check if that row is selected, that will work for me.
Thats an interesting point you raised about there being 2 tables that have the same ID value for 2 rows. With your example ...
$("#tblselector).find("#+KeyValue").hasClass("ui-state-highlight")
... that shouldn't be a problem because your only searching in one of the 2 tables (#tblselector)
Cheers,
Michael
Most Users Ever Online: 715
Currently Online:
69 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66