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 have a webgrid with customers' ids and names
When I select a row on the grid I set the values in multiple webinput and webcombo boxes for editing customer data.
I can set the value of the webcombo's but the text for the selected value does not display in the webcombo's text area.
Here is my js to set the value of the webcombo.
{
wc.SetValue(text);
wc.LoadValue();
}
Here is my server side code for running that script.
Protected Sub wbgCustomers_InitializeDataSource(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.DataSourceEventArgs) Handles wbgCustomers.InitializeDataSource
if e.Action="Custom" then
wbgCustomers.GetClientAction.InvokeScript("setComboValue('wbcTerms', '9')")
end if
End Sub
Hi Mark,
In your server side code, you are running InvokeScript inside WebGrid IntializeDataSource event, correct? As i rembered, there is nothing such e.Action properties on that event. How exactly did you use those? IntializePostBack or IntializeDataSource?Also, to proper way to set value is wc.SetValue(text,true); FYI, any client action methods only would be called when WebGrid does FlyPostBack responses such as refresh,sorting,etc. So, if you are doing this way to call javascript, it would be ignored.
Regards,Handy
Sorry,
the server side code should be
Protected Sub wbgCustomers_InitializePostBack(ByVal sender As Object, ByVal e As ISNet.WebUI.WebGrid.PostbackEventArgs) Handles wbgCustomers.InitializePostBack
Please see my attached sample. It should guide you on doing this.
Thank you for the example.
Can you change it so that it uses Visual Basic instead of C?
Best regards,
Mark
Here Mark.
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