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

Dropdown Value not getting in the edit page

1 Answer 53 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Vidushi
Top achievements
Rank 1
Vidushi asked on 07 Sep 2012, 06:45 AM

Hi,

I am using kendo dropdown for updating Status in my database, but when i open my popup page I dont get the default value from the database in my dropdown,

here is the dropdown I am using

 

@(Html.Kendo().DropDownListFor(model => model.Status)

.Name(

 

"Status")

 

.DataTextField("Text")

 

.DataValueField("Value")

 

 

.BindTo(

 

new List<SelectListItem>() {

 

 

 

 

new SelectListItem() {

 

Text =

 

"Active",

 

Value =

 

"true"

 

},

 

 

new SelectListItem() {

 

Text =

 

"InActive",

 

Value =

 

"false"

 

 

 

 

 

 

}

 

}

)

)

 

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 10 Sep 2012, 12:53 PM
Hello Vidushi,

 
This is not a known issue and I will need a simple test project, which replicates the issue. Thus I will be able to review it locally and advice you further.

Regards,
Georgi Krustev
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
Vidushi
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or