Hi.
I am using a webdropdown that has around 100 items in it. By default, on page-load, I want to select the first item in the list.
I am using
$find("webdropdown1").set_selectedItemIndex(0);
in client-side javascript. It is selecting the first item correctly. But when I open the dropdown, the first items does not show selection. The currently selected item should be highlighted in the dropdownlist. How to accomplish this?
For your Information, I have also tried :
$find("webdropdown1").set_selectedItemIndex(0, true);
but did not work.
Hi Nikifor,
Thanks for your response. It may not be possible for us to wait till the development issue resolved. Please provide me some alternative solution for my problem.
Hello Sunil,This is a sample implementing the last reported from you scenario. The first time ajaxRequest is not showing the current value, but all the next times it is displaying it. I am starting to log this behavior as a development issue.
Hi,
I tried using "AJAX Response" client-side event of webdropdown but still I have issues. Once a webdropdown is loaded with new items on ItemsRequested event and just after when a AJAX response is handled on client-side, I am able to see that still the webdropdown is showing old items on client-side. I am not able to understand what is exactly happening here. On AJAX response, the dropdown should have new loaded items on the client-side. Please look for a solution to this problem as this is pending from so many days.
May I know how I can handle the AJAX response on the client-side which comes back after "ItemsRequested" event on the server-side has been executed.
In that case, I am looking for a solution where I should be able to load the webdropdown on client-side rather than using loadItems to go to server-side.