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 am using Webgrid 7 R2. I need to make certain rows readonly based on a ceratin value I get back from the database and other rows need to be updateable. How do I do this?
Hi Jocelyn,
To make certain rows readonly, you can use ForceNoEdit. Below is the simple sample:
- in Server-side :
protected void WebGrid1_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e) { e.Row.Cells.GetNamedItem("Address").ForceNoEdit = true; }
- in Client-side
function Button1_onclick() { var WebGrid1 = ISGetObject("WebGrid1"); var selObj = WebGrid1.GetSelectedObject(); var cel = selObj.ToRowObject().GetCells(); cel[1].SetForceNoEdit(true); return true; }
And we have a great sample you can use as reference for updating row. Please see in WebGridSample with the title Client_ProgrammaticEdit.aspx. I hope this can help. Please let me know if you need another help.
Best Regards,
Julia
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