How I can do by clean my webcombo, I have to information in my screen, when I have used this information I want to clean all my display but I have problem with my webcombo, I can not clean it.
Hello,
Please provide some source code on how have you tried to achieve this. In this way others will be able to test what is going wrong.
Hi guys
I am having the same problem. I want to clear down the selections on my webcombos.
I want to use client side code to do this and the code I am using at the moment (which isn't working) is as follows:
var travelZoneCombo = igcmbo_getComboById("cmbTravelZone");
{
travelZoneCombo.setSelectedIndex(-1);
travelZoneCombo.Element.disabled = false;
}
Is it possible to clear down combo selections? If so, how do I do it?
Many thanks in advance...
1) If you set
webCombo.setDataValue(""); and webCombo.setDisplayValue("");
is not enough ?
2) Do you have at the top of the dataset displayed in the webCombo an "empty string", meaning "All" or "None" or "Not selected" ?
You can select that "empty string" with method 1) or with webCombo.setSelectedIndex(0);
Hi.
I tried using the code:
and it works a treat!
Thanks so much. Really appreciated :)
I need to do the same thing but on the server side after a postback. The displayvalue will not clear.
Me.cboRateCodes.DataValue = ""
When it posts back the to browser, I still see the previously selected value even when it does not exist in the grid.
Please help.
Dear All:
really , i have same problem , Webcombo is not cleared after postback ,
whenever i used AJAX enabling or i did not used.
and the code listed above still not working to clear webCombo.
thank you all ,
Best Regards
Basheer Massarrani
Jeddah , KSA
Civil & Electro Mechanical