Dropdown Value not getting in the edit page

2 posts, 0 answers
  1. Vidushi
    Vidushi  avatar
    7 posts
    Member since:
    Aug 2012

    Posted 07 Sep 2012 Link to this post

    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"

     

     

     

     

     

     

    }

     

    }

    )

    )

     

  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 10 Sep 2012 Link to this post

    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!
Back to Top