This is a migrated thread and some comments may be shown as answers.

KendoUI DropdownList Change Selected Index

1 Answer 235 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Saqib
Top achievements
Rank 1
Saqib asked on 15 Mar 2012, 12:19 PM
Hi,

     On Page load by default first Index is selected which in my case is not required. How to avoid this.
     I tired using
   
     $(document).ready(function() {
        $('#my_id').kendoDropDownList({
           index: -1
        )}
     but it didn't work. Any suggestion?

1 Answer, 1 is accepted

Sort by
0
Saqib
Top achievements
Rank 1
answered on 21 Mar 2012, 07:50 AM
Sorted out the issue by initializing the dropdown list with a blank index and making it to display none. Worked for me ...:)
Tags
DropDownList
Asked by
Saqib
Top achievements
Rank 1
Answers by
Saqib
Top achievements
Rank 1
Share this question
or