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
Hi,
I have a scenario where I need to disable editing of few cells in a particluar row based on value selected in the drop down/ row selection, Is there any way to set Edit Type = NoEdit for cell dynamically in the client side?
Thanks,
Phanindra
Following JavaScript function will show you how to sets a cell from the selected row not to allow editing.
function SetNoEdit() { var grid = ISGetObject("WebGrid1"); if (grid.GetSelectedObject() == null) { alert("Please select a row."); return; } var row = grid.GetSelectedObject().GetRowObject(); var cell = row.GetCell("ProductName"); if (row.Type == "Record") cell.SetForceNoEdit(true); else alert("Please select a Record Row"); }
The SetForceNoEdit(boolean) forces this cell not to allow editing. If parameter is null or not specified then the default is true. If this is set to false, the cell would be editable.
Check out this WebGrid live sample which demonstrates WebGrid's client-side API. Click the "Set City as not editable for new row only" button and see how it works.
Hope this helps.
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