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, is there any chance to retrieve server side all the WebCombo columns' values for the selected row, when the postback is set to false. The only value availble it seems to be Webcombo1.Value. Thank you my best regards. Luciano
... The scenario is the following: When I delete a WG row I need to retrieve the value from the selected row cell(2) of the WCombo...
Your information is useful. I’m able to repro the error if I use the code in WebGrid OnDeleteRow server side event. “WebCombo1.SelectedRow” returns null.
This happens because in WebGrid FlyPostBack context, not all of WebCombo information is sent to avoid performance issue. In normal circumstances, other controls wouldn’t be submitted in FlyPostBack context.
Since WebCombo1.Value or WebCombo1.Text information is passed in WebGrid FlyPostBack context, I suggest you to obtain the other cell of selected row by using query based on the value or text of WebCombo1.Value or WebCombo1.Text.
Hope this helps.
Please try to use following snippet code to obtain all the column values of the selected row of WebCombo.
Label1.Text = WebCombo1.SelectedRow.Cells.GetNamedItem("ContactName").Text; Label2.Text = WebCombo1.SelectedRow.Cells.GetNamedItem("CompanyName").Text; Label3.Text = WebCombo1.SelectedRow.Cells.GetNamedItem("Phone").Text;
I assume that the term “when the postback is set to false” refer to AllowAutoPostback=”False” in WebCombo. Please let me know if you have different scenario.
Hello, before writing my question I had already tried the code above, but it returns null value for the object. The scenario is the following: When I delete a WG row I need to retrieve the value from the selected row cell(2) of the WCombo.
Thank you, my best regards.
Luciano
Hello This is the error.
Regards, Luciano
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