WebGrid - Setting Client-Side Row Object Checked Property So It Persists

5 replies. Last post: April 29, 2010 12:21 PM by Handy Surya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
A YousifMember

We have our own custom check box and we set the row object Checked property on the client side when the check box is checked or unchecked.  This setting, however, doesn't persist.  Once we retrieve the row object, e.g.,

var oRow = oGrid.RootTable.GetRow(i);
oRow.Checked = MyCheckBoxCheckState(checkBoxId);

When I retrieve the row again, the Checked property is back to its default or whatever it was when the grid loaded.  Is there a method I can call on the client side that will set this property?  The way we retrieve the checked rows is by drilling into the grid and get the checked state of our custom check box, but it would be nice to be able to set the row's Checked property and have it persist on the client side.

Also, the Rows collection is null on the oGrid.RootTable object but the _tableCache shows there are rows loaded.  I'm not sure why this would be null when the rows are available via GetRow for example.

All times are GMT -5. The time now is 11:49 PM.
Previous Next