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

[Solved] Why length of item list in dropdownlist decrease each time it is opend

0 Answers 29 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
york
Top achievements
Rank 1
york asked on 17 Jan 2013, 05:33 AM

Hi,

I use dropdownlist in Telerik MVC application. There is a strange problem in dropdownlist. In 1st time dropdownlist is opened, the length of textbox is the same as that of items list which is correct (see Initial Droopdown List.jpg attached). However, each additional time it is opened, the length of items list decreases by some length (see Dropdown List Problem.jpg attached). The code is,
<div style="float:left;width:46%;text-align:right;padding:0px 0px 0px 0px;">
     <%: Shared.SharedStrings.YearSelector_ForYear %>:
 </div>
 <div style="float:right;width:50%;text-align:left;margin:0px 0px 0px 0px;">
 
     <%= Html.Telerik().DropDownList()
         .Name("YearSelector")
             .HtmlAttributes(new { style = "width:120px;font-size:12px" })
         .SelectedIndex(Model.SelectedYearIndex)
         .Enable(ViewData["Enable"] == null ? true : (bool)ViewData["Enable"])
         .BindTo(new SelectList(Model.OlympicYears))
                 .ClientEvents(e => e.OnChange("changeYear"))
                
     %>
I am totally lost as how can that happen. Please help.

Thanks,
York
Tags
ComboBox
Asked by
york
Top achievements
Rank 1
Share this question
or