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
I have a grid and depending upon the status of an invoice, I toggle the AllowAddNew and AllowEdit attributes in the LayoutSetting of my c# code. A couple of my grids have checkboxes. If I set AllowEdit to Edit.No the grid cells become non-editable (which they should) EXCEPT for checkboxes (ColumnType="CheckBox" and EditType="Checkbox"). I tried to put code in the OnCheckBoxClick even in Javascript to work around this but the code never fires if the AllowEdit is set to Edit.No (I guess you don't trigger the events anymore in this case). How can I make these checkboxes disabled or readonly. I have code that disables them in the OnRowSelect event (which always seems to fire regardless of the AllowEdit value) but it gives the checkboxes a disabled look while the others look enabled. I'd like ALL the checkboxes to look disabled if AllowEdit is set to Edit.No. Is this a bug in the WebGrid?
OK then. I just did the ForceNoEdit in the OnRowIntialize in my c# code.
Hi John,
Do yo use checkbox ISRowChecker feature? If yes, this is the default behaviour and not designed for editing. It is designed for multiple selection. There is no other way to disable them one by one in AfterInitialize. Get each cell object element inside row object and disable them manually.
Regards,Handy
BTW - I still think it's a bug...
Well, I am sorry but it just does not support the scenario as design. I hope you understand.
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