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

DropDownList in Popup Editor Template - won't drop on click

1 Answer 113 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 01 Feb 2013, 12:35 PM
Just don't see what I'm doing wrong here.

The data is returned perfectly when viewing in Firebug - The progress spinner on the dropdown runs and then turns into an arrow.....just nothing when I click on the dropdown.

@(Html.Kendo().DropDownListFor(model=>model.UserId)
.Name("UserId")
.DataTextField("Name")
.DataValueField("Id")
.OptionLabel("Select User")
.DataSource(source => {
source.Read(read =>
{
read.Type(HttpVerbs.Post);
read.Action("GetUserDropDown", "Admin");
});
}))

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 05 Feb 2013, 10:52 AM
Hello John,

The code looks correct. What is the response from the server? Nothing would be shown in the dropdown if the dataSource cannot access the collection from the data. The dropdown dataSource expects the response to be a JSON array. If this is the response in your case, could you share a runnable sample so I can check what exactly is going wrong?

Regards,
Daniel
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
John
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or