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

DropDownList populated but not working

2 Answers 64 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
ANDRE
Top achievements
Rank 1
ANDRE asked on 28 Oct 2018, 12:23 PM

Hi,

Here is html generated for a DropDownList. As you can see, data are well populated.

However when I click on it, I just get "no data found". Maybe I miss something obvious, but I spent hours trying to fix it without success.

Thanks.

 

<select name="K_AGENCE"      id="clientK_AGENCE"      data-bind="value: selected.K_AGENCE,      disabled: isDisabled('dis')" data-role="dropdownlist" style="display: none;" class="k-valid">
<option value="A1">Agence 1</option>
<option value="A2">Agence 2</option>
<option value="A3">Agence 3</option>
<option value="A4">Agence 4</option>
</select>

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetomir
Telerik team
answered on 29 Oct 2018, 02:09 PM
Hi Andre,

I have created a Dojo sample which initializes a DropDownList with Kendo MVVM based on the provided snippets and works as expected on my side:

Please modify the Dojo to reproduce the issue you are facing and send it back to us for further investigation. 

Kind regards,
Tsvetomir
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
ANDRE
Top achievements
Rank 1
answered on 29 Oct 2018, 02:40 PM

Hi Tsvetomir,

I suspect a problem related to async call in my js.

What I'm doing is to generate js code form a php script. Ths js code defines a remote datasource in order to populate the select options. It works because the select is well populated as you can see, but maybe too late.

I found a workaround by replacing the js code defining the remote datasource by the data istself. So my DropDownList works now with a local datasource and it fixes my issue. 

Regards,

André.

Tags
DropDownList
Asked by
ANDRE
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
ANDRE
Top achievements
Rank 1
Share this question
or