Hi Keerthana , and thanks for the info. Now I'm having another problem with virtual scrolling. As i told you before, I'm using strongly typed DropDownList in an Edit view, so it shows the data of the properties of the object Im loading. It seems that if the value that should show in DropDownList is beyond the itemcount number it doesnt show.
For example,
@(Html.EJ().DropDownListFor(model => model.id_Aseguradoras).Datasource((IEnumerable<object>)ViewBag.Aseguradoras)
.DropDownListFields(df => df.Text("Descripcion").Value("Valor"))
.AllowVirtualScrolling(true)
.VirtualScrollMode(VirtualScrollMode.Normal)
.ItemsCount(5)
.Width("450px"))
In a case i which the value of id_aseguradoras is {"Valor":1,"Descripcion":"San Cristobal"}, which is in position 8 in the list (it is order alphabetically):
<input id="id_Aseguradoras" name="id_Aseguradoras" type="text" value="1" data-ej-locale="es-ES" data-ej-allowvirtualscrolling="true" data-ej-datasource="ej.dataSources.id_Aseguradoras.data0" data-ej-fields-text="Descripcion" data-ej-fields-value="Valor" data-ej-itemscount="5" data-ej-width="450px" data-ej-value="1" data-role="ejdropdownlist" /><script>ej.createObject("ej.dataSources.id_Aseguradoras",{"data0":ej.isJSON([{"Valor":5,"Descripcion":"Allianz Argentina"},{"Valor":3,"Descripcion":"Federación Patronal"},{"Valor":10,"Descripcion":"Mapfre"},{"Valor":8,"Descripcion":"Mercantil Andina"},{"Valor":9,"Descripcion":"Meridional Seguros"},{"Valor":2,"Descripcion":"Nación Seguros"},{"Valor":6,"Descripcion":"Provincia Seguros"},{"Valor":1,"Descripcion":"San Cristobal"},{"Valor":4,"Descripcion":"Sancor Seguros"},{"Valor":7,"Descripcion":"Seguros Rivadavia"}])});</script>
Nothing is shown in Aseguradora if itemcount is 5.
If I change itemcount to 10, it is shown.
Hope I was clear, and thanks.
Thanks again.
One last question then, Im using community License version 15.2.0.40
What should I download and install to properly update? 15.3.0.26 and then service pack 15.3.0.33, or directly 15.3.0.33
Thank you very much.
Hi again Keerthana. I finally downloaded and installed version 15.3.0.33 (didnt uninstall 15.2.0.40), but Im getting the same behaviour with DropDownList when value is beyond virtual scrolling itemcount.
I used Migration tool in Visual Studio to update my project, and both in References and in web.config shows new versions installed, but it still doesnt work.
I also tried with the updated project sample you provided me, and it doesnt work either.
Any Help? What more information can I give you?
Thank you!
<input id="id_Aseguradoras" name="id_Aseguradoras" type="text" value="" data-ej-locale="es-ES" data-ej-allowvirtualscrolling="true" data-ej-datasource="ej.dataSources.id_Aseguradoras.data0" data-ej-itemscount="5" data-ej-width="450px" data-ej-value="18" data-role="ejdropdownlist" /><script>ej.createObject("ej.dataSources.id_Aseguradoras",{"data0":ej.isJSON([{"text":"Algeria","category":null,"value":11,"country":null,"id":0,"parent":0},{"text":"Armenia","category":null,"value":12,"country":null,"id":0,"parent":0},{"text":"Bangladesh","category":null,"value":13,"country":null,"id":0,"parent":0},{"text":"Cuba","category":null,"value":14,"country":null,"id":0,"parent":0},{"text":"Denmark","category":null,"value":15,"country":null,"id":0,"parent":0},{"text":"Egypt","category":null,"value":16,"country":null,"id":0,"parent":0},{"text":"Finland","category":null,"value":17,"country":null,"id":0,"parent":0},{"text":"India","category":null,"value":18,"country":null,"id":0,"parent":0},{"text":"Malaysia","category":null,"value":19,"country":null,"id":0,"parent":0},{"text":"New Zealand","category":null,"value":20,"country":null,"id":0,"parent":0},{"text":"Norway","category":null,"value":21,"country":null,"id":0,"parent":0},{"text":"Romania","category":null,"value":22,"country":null,"id":0,"parent":0},{"text":"Singapore","category":null,"value":23,"country":null,"id":0,"parent":0},{"text":"Thailand","category":null,"value":24,"country":null,"id":0,"parent":0},{"text":"Ukraine","category":null,"value":25,"country":null,"id":0,"parent":0}])});</script>
|
<appSettings>
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="false" />
</appSettings> |