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 attached a small project to demonstrate my issue. A web grid has web combos for two of the cells in the grid and the web combos are linked to each other via the parent filter setting.
If you run the project the grid will load and display a couple of data rows. If you try to select an item from the "Reason" column in the grid (the child combo) it will complain that the parent combo doesn't have a value. The parent combo is attached to the grid and is displaying a value in the cell but it still gives the error. If you click on the parent combo in the "Time" column you can select an item and then the "Reason" combo will start working, but if you go to a different line in the grid and try the Reason combo it will give the error message again.
I want the combos linked via parent filter to work even when both are attached to a web grid. Is there a way to get this to work without the error messages about the missing parent value?
Hi Bob,
This issue happen because the parent WebCombo value was null on load and focus on other row, thus current WebCombo show this alert message. For a work around, you could set parent WebCombo value when entering current WebCombo edit mode (WebGrid's OnEnterEditMode client side event) as the following:
function EnterEditMode(controlId, tableName, editObject){ var cell = editObject.ToCellObject(); if (editObject.type == "WebComboNET") { var webCombo = editObject.element; if (webCombo.LinkSettings.Enabled && webCombo.LinkSettings.ParentWebCombo && webCombo.LinkSettings.ParentWebCombo.length > 0) { var parentWebCombo = webCombo.LinkSettings.ParentWebCombo[0]; if (!parentWebCombo.Value) { var parentValue = cell.Row.GetCell(parentWebCombo.Index).Value; parentWebCombo.SetValue(parentValue); } } } }
As a reference, I have include the modified WebForm1.aspx on attachment.
Best Regards,Leo
Thank you, that worked very well!
I am glad to hear that your problem sloved. Should you need further assistance or run into any problems in regard to our controls, feel free to post it into our forum. we would be happy to assist you again.
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