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
var DelChanges = grd.GetChanges("Deleted"); for (var i in DelChanges) { if (DelChanges[i].Row.GetCell("Dependencies").Value > 0) { if (DependenciesText.length > 0) MessageQuantity = 2; else MessageQuantity = 1; DependenciesText += "\n - " + DelChanges[i].Row.GetCell("CustomerID").Text + " | " + DelChanges[i].Row.GetCell("CompanyName").Text + " | " + DelChanges[i].Row.GetCell("ContactName").Text + " | " + DelChanges[i].Row.GetCell("ContactTitle").Text; DelChanges[i].Row.UndoChanges(); } }
Please try my sample.
Hi,
May i know your requirement? I don't quite understand your scenario and why your scenario must be like this so the error showed. If I comment out this code grd.XmlHttp.Asynchronous = false;, I can delete the second group without error.
Regards,Handy
Hi Handy
In first column (R) dependencies (referential integrity) are shown. Has a row still dependencies, the row can not be deleted. So I check on client side, if the cell value is greater then 0. Since the dependencies might have changed, i refresh grid first. Because the refresh is asynchrom running, I had problems in the past (Application hangs -> Messagebox "Please wait..."). For this reason, I set XmlHttp.Asynchronous=false.
Regards
Michael
Hi Michel,
Hm, but i don't understand why you need to refresh the grid. When you accept pending changes, the grid should be automatically refreshed. So, it should be no problem for your application.
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