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

Kendo dropdownlist Selected value

1 Answer 933 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 10 Jul 2018, 03:40 PM

Hello, 

I am looking for a solution how to capture the kendo dropdown list value on the code behind class after postback? I am trying to set the value property binding to the Page model property but it's not working. Any recommedation would be appreciated. 

 

        <kendo-dropdownlist name="categories" for="@Model.Input.PermitCategoryList"
                            auto-width="true"
                            option-label="Select permit Category..."
                            class="form-control"
                            value="@Model.Input.PermitCategory"
                            bind-to="@(new SelectList(@Model.Input.PermitCategoryList,"Alias","Name"))"></kendo-dropdownlist>

1 Answer, 1 is accepted

Sort by
0
Jonathan
Top achievements
Rank 1
answered on 10 Jul 2018, 03:42 PM

Never mind. I figure it out. I should have set to the for attribute. Below is the working code snipet

 

        <kendo-dropdownlist name="categories" for="@Model.Input.PermitCategory"
                            auto-width="true"
                            option-label="Select permit Category..."
                            class="form-control"
                            bind-to="@(new SelectList(@Model.Input.PermitCategoryList,"Alias","Name"))"></kendo-dropdownlist>

Tags
DropDownList
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Jonathan
Top achievements
Rank 1
Share this question
or