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
Hello,Thank you the question regarding WebGrid.To make the row or cell became doesn’t editable (read-only), you could use SetForceNoEdit() JavaScript method.I made a simple runnable sample to show how-to implement the SetForceNoEdit() method.I bind the WebGrid to Access Data Source (Northwind.mdb database & Products table).In use the SetForceNoEdit() method in OnRowSelect client side event.I make the row / data that already Discontinued to become read-only.Here’s the example snippet code how I implement the SetForceNoEdit() method:
function WebGrid1_OnRowSelect(controlId, tblName, rowIndex, rowEl) { var WebGrid1 = ISGetObject(controlId); var rowObj = WebGrid1.RootTable.ToRowObject(rowEl); var Cells = rowObj.GetCells(); if (Cells[3].Value == true && rowObj.ForceNoEdit == false) { rowObj.SetForceNoEdit(true); Cells[3].SetForceNoEdit(true); // To make the Check Box become read-only } }
I also attached the sample, so that you can see the result as well.Thank you.Regards,Hans.
Hello,Thank you for the question.After I investigate this filter issue, it seems the issue occurs due to we want to filter the column when the column hasn’t rendered yet.I attached 2 WebGrid samples which show that we should / can filter a column after the column is already rendered (ready to be filtered)In this sample, I bind the WebGrid programmatically (with OleDbConnection).I add filtering code in PrepareDataBinding server side event. In that event I also add RetrieveStructure() method (to retrieve Column's structure).In the first WebGrid sample, I put the RetrieveStructure() method “before” filtering code. The result is the filtering works fine.Here’s the snippet code:
protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e){ if (!IsPostBack) { WebGrid1.RetrieveStructure(); WebGridFilter fltr = new WebGridFilter("ShipName", ColumnFilterType.Contain, "Vins"); WebGrid1.RootTable.FilteredColumns.Add(fltr); } }
In the second sample, I put the RetrieveStructure() method “after” filtering code. The result is I got the same error message as yours.Here’s the snippet code:
protected void WebGrid1_PrepareDataBinding(object sender, ISNet.WebUI.WebGrid.DataSourceEventArgs e) { if (!IsPostBack) { WebGridFilter fltr = new WebGridFilter("ShipName", ColumnFilterType.Contain, "Vins"); WebGrid1.RootTable.FilteredColumns.Add(fltr); WebGrid1.RetrieveStructure(); } }
Therefore, please kindly re-check / review your application’s code, whether the column is already rendered or not, when you try to filter it.Hope this helps.Regards,Hans.
<script type="text/javascript" language="javascript"> window.onload = function () { var WebCombo1 = ISGetObject("WebCombo1"); WebCombo1.ShowDropDown(true); } </script>
Hope this helps. Thank you.Regards,Hans.
Hello,Currently, we can’t provide you the WebGrid v6 documentation anymore, since we have discontinued the WebGrid v6.We add some new content (feature) in WebGrid v8 documentation indeed.However, you could still use WebGrid v8 documentation, because basically (overall) the documentation has not changed much. we apologize for any inconveniences caused.Regards,Hans.
Hello,Thank you for your reply.Have you try to use the latest Intersoft Framework and WebGrid assembly version?In WebGrid Solution Samples, there is WebGrid sample that show how-to enable / how the exporting feature works. The page (file) named “EnableExporting.aspx”.Please kindly have review on the WebGrid Samples, EnableExporting.aspx and please let me know whether you get the same issue or not.(start > All Programs > Intersoft WebUI Studio 2013 R1 > WebUI Studio for ASP.NET > WebGrid 8 > C# Samples. The physical location of the file is: "%ProgramFiles%\Intersoft Solutions\Intersoft WebUI Studio 2013 R1\ Samples\For ASP.NET\ISNet.WebUI.Samples\cs\WebGrid \EnableExporting.aspx".)If you don’t get any error message or issue with the EnableExporting page, please kindly help me to modify the page and provide the modified sample to me. So I can help you to investigate the issue further more.Thank you very much.Regards,Hans.
Hello,Thank you for the question.To know/check whether the filter has been applied to the WebGrid, you could use OnColumnFilter or and OnAfterResponseProcess client side event.Here’s the example snippet code regarding the client side event:
function WebGrid1_OnAfterResponseProcess(controlId, action, lastRO, xmlRO) { var WebGrid1 = ISGetObject(controlId); alert(action); return true; } function WebGrid1_OnColumnFilter(controlId, tableObject) { var WebGrid1 = ISGetObject(controlId); alert("Column is Filtered"); return true; }
I also attach the example page about how I use/implement the client side event.Please kindly have a review on the page to see result.Hope this helps. Thank you.Regards,Hans.
Hello,Thank you for your reply.In my local end, the result is not an endless loop, but it takes more time to WebGrid to finish the checking process, indeed.Perhaps you should use: “Checked” attribute to validate whether the row is already checked or not. Because there is no IsChecked() method in row object.You could see / get the WebGrid’s documentation from your local environment, “Start Menu -> All Programs -> Intersoft Premier Studio 2013 R1 -> WebUI Studio for ASP.NET -> WebGrid 8 -> WebGrid 8 Documentation”.You also could get / download the WebGrid’s documentation from this link below:-http://intersoftpt.com/Support/WebGrid/Documentation/-http://intersoftpt.com/Support/WebGrid/WebGrid.chmTo know whether the child row is collapse or expanded, you could use “ChildExpanded” attribute.The “ChildExpanded” attribute will have False if the child row is collapse and vice versa.You could use GetParentRow() method to validate whether the row has a parent or not.Here’s the example snippet code how-to use the GetParentRow() method:
function WebGrid1_OnRowSelect(controlId, tblName, rowIdx, rowElm) { var WebGrid1 = ISGetObject(controlId); var parentRow = WebGrid1.GetSelectedObject().GetRowObject().GetParentRow(); if (parentRow) { alert("This row have parent row "); } else { alert("This row doesn't have parent row "); } return true; }
I use the GetParentRow() method in OnRowSelect client side event.Hope this helps.Regards,Hans.
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