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 for your code.I’ve made a simple sample using your code. However, I don’t get any prompt when I try to apply changes.I bind WebGrid with access data source control (Northwind.mdb database & Shippers table).Please have a review on my sample & video, then let me hear your response.Regards,Hans.
Hi,Thank you for the question.You could find our online documentation in our support site.Go to one of our control (ex: WebGrid).Through that page, you could see WebGrid online documentation, by clicking “Browse Online Documentation”. (OnlineDocumentation.png)Or you also could download the documentation, by clicking “Download Documentation”. (DownloadDocumentation.png)Then you could find the list of properties & method in “Server-side References” and “Client-side References” section. (WebGridDocumentation.png)However, you could see our documentation through Microsoft Help Viewer. (HelpViewer.png)Hope this helps. Thank you.Regards,Hans.
Hi,I’m glad to hear that you have solved your issue.Should you have further question, please do not hesitate to contact us.I would be happy to help you again.Thank you.Regards,Hans.
Hello,Thank you for the question and I apologize for the inconvenience.I’ve made a simple sample that maybe similar with your current scenario. I bind the WebGrid to Northwind.mdb database and Shippers table.In my sample, you could update CompanyName column’s value, based on WebCombo’s value.I use SetText() method to update the selected row's cells (CompanyName) value.And I use Update() method to update the selected row object.I also set PersistRowChecker property of WebGrid to “True”. This makes the row checker is not being cleared during postback.Here’s the example java script code how to update selected row in WebGrid:
var i = 0;var intervalObj; function WebButton1_OnClientClick(controlId, parameter) { var WebButton1 = ISGetObject(controlId); var WebCombo1 = ISGetObject("WebCombo1"); var WebGrid1 = ISGetObject("WebGrid1"); var comboValue = WebCombo1.Value; // Get WebCombo Value var checkedRows = WebGrid1.RootTable.GetCheckedRows(); if (checkedRows.length > 0) { intervalObj = setInterval(function () { if (!WebGrid1.IsInProgress) { if (i < checkedRows.length) { var checkedRow = WebGrid1.RootTable.GetCheckedRows()[i]; var selectedRow = WebGrid1.RootTable.ToRowObject(checkedRow); var cells = selectedRow.GetCells(); if (selectedRow.KeyValue != '') { // update the selected row's cells value cells.GetNamedItem("CompanyName").SetText(comboValue, true); // update the selected row object selectedRow.Update(); } i++; } if (i >= checkedRows.length) { clearInterval(intervalObj); intervalObj = null; i = 0; } } }, 5); } return true; }
Please have a review on my sample as well and let me hear your response.Thank you.Regards,Hans.
Hi,Thank you for your information code and I apologize for any inconveniences this problem may have caused you.I’ve made a sample that perhaps similar with your current scenario (based on information code). I bind the WebGrid to Northwind.mdb database and Orders table.I try to expand a couple of grouped rows, then I refresh the WebGrid. And I get a java script error as well.To fix this issue, you should modify your code in OnAfterResponseProcess function.Here I enclosed the code:
var i = 0;var intervalObj; function WebGrid1_OnAfterResponseProcess(controlId, actionName, lastRequestObject, xmlResponseObject) { var WebGrid1 = ISGetObject(controlId); if (actionName == "Refresh" || actionName == "ColumnSort") { if (expandedGroupNodes != null) { var splitResult = expandedGroupNodes.split(";"); intervalObj = setInterval(function () { if (!WebGrid1.IsInProgress) { if (i < splitResult.length - 1) { WebGrid1.RootTable.GetRowByGroup(0, splitResult[i]).ExpandGroupRow(); i++; } if (i >= splitResult.length - 1) { clearInterval(intervalObj); intervalObj = null; i = 0; } } }, 5); } } return true; }
Please have a review in my sample and let me hear your response.Thank you.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