kendo combo box default selected value

kendo combo box default selected value

Type 1 : MVC code sample

    var TimeZone = new List<SelectListItem>();
    foreach (var item in ViewBag.TimeZoneOffset)
        TimeZone.Add(new SelectListItem() { Text = item.adepTimeZone, Value = item.IDEPTimeZoneID.ToString(), Selected = item.adepTimeZoneOffset.ToString() == @Model.adepTimeZoneOffset ? true : false });

    .Placeholder("Select TimeZone...")
    .HtmlAttributes(new { style = "width:320px" })

Type 2 : JavaScript code sample

    var combo = $("#IDEPLanguageID").data("kendoComboBox");



Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like
Post a Comment Powered by Blogger.
ASK Questions