iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
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.
Hi,
Ok, I am sorry for missunderstanding your question. Normally, we use Check() method to check our checkbox. such as : grid.RootTable.GetRow(0).Check();But you can know the state of the checkbox is being checked or not by inspecting the element.
e.g
grid.RootTable.GetRow(0).GetCells()[0].GetElement().children(0).checked;
Maybe with inspecting the element, you can persist your custom checkbox because all checkbox control should have this properties in its element. Hope this helps.
Regards,Handy
Hi Yousif,
I am not sure for custom checkbox because it is a custom checkbox from your end. It seems, you need to implement a properties or attribute to persist your custom checkbox. However, if you are using our checkbox, we have some properties such as "RestoreRowSelection" or "PersistRowChecker". With those properties, user would able to retireve their checkbox state when postback or inside paging.
Hello Handy,
Yes, you're right about implementing our own property. I was just hoping we can just set the Checked property since it's already there and would make sense to leverage it rather than create something new. I was hoping there was a client-side call that wasn't documented that we can leverage to do that.
Unfortunately we can't use your check box because it uses the standard check box that doesn't fit into our style and design.
Yes, I am aware that you could not use our checkbox. So, I think you would need to handle by implement new attribute or properties from your own checkbox. Besides we don't know for sure what your custom checkbox behaviour.
Hi Handy,
Yes, I understand all that and I'm not asking you to "know" what our check box does. I just want to take advantage of an existing property that I can set. So how can I set the Checked property on the client side? Thanks.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname