Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
First value in the multiselect web dropdown checked by default.
posted

I am having a wierd issue.

I am currently using web dropdown having multi select check box enabled.

After binding data source to the web dropdown, by default always the first value in the web drop down is checked.

I don't want the first value in the multiselect web dropdown checked by default.

 

Can you please provide me work around on the above issue.

 

Trails i made:

------------------

I tried by calling ClearSelection() of the web dropdown in some event.

I also tried by calling the unselect() event of the item(first value in the dropdown) through client side, but once some post back happens on the page again, the first value in the dropdown got checked by default.

But,  the above trails could not provide me solution.

 

Provide me the solution,

I don't want the first value in the multiselect web dropdown checked by default.


 

Parents
  • 5105
    Suggested Answer
    Offline posted

    Hi again, kpavan,

    Add the following property when declaring your WebDropDown, and you will have blank value initially:

    CurrentValue=""
    I hope this helps!
Reply Children