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
Hi all;
I have an issue with webcombo, I need to set the default value.
I have tried to set value serverside after Datasource loading but I have not find a solution.
After I have tried to set value client side using this sample :
function SetValue() { // To Set selected Value by KeyValue var combo = ISGetObject("WebCombo1"); combo.SetSelectedRowByValue("Andrew"); alert("Set value by KeyValue Andrew"); }
but doesn't run .
I Have find this sample at this link:
http://support.intersoftpt.com/docs/webcombo/4.0.7200/Set%20selected%20row%20in%20unbound%20WebCombo.html
but the only sample that run correctly is setText() method.
How can I set the default value of a webcombo?
Thanks.
Hi R D,
If you like to set value on the server side, on the Page_Load, you can just add WebCombo1.Value = "Andrew", it will set the default value to "Andrew". All the sample beside the one that using SetText() method are not working because when we try to set the WebCombo into the specific index, the data is not populated yet. That is what we need to set the timeout first. Here are the sample code that I made on ClientSide Event of OnInitialize.
function SetValue() { var timeout = 650; var combo = ISGetObject("WebCombo1"); combo.ShowDropDown(); setTimeout(function() { combo.SetSelectedIndex(5); }, timeout) }
I hope it helps and please do not hesitate to ask if you have any other questions.
Thank you,Andi Santoso.
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