Issue with control

4 posts, 0 answers
  1. sourabh
    sourabh avatar
    6 posts
    Member since:
    Aug 2012

    Posted 11 Sep 2012 Link to this post

    Hi
    I m using Kendo UI control. I found some issues using them, so need clarification.

    1. When dropdown is used inside Kendo Window then it is hidden. Please see below code
     @(Html.Kendo().Window()
         .Name("widget")
                .Title("widget Menu")
        .Content(@<text>
        @model List<Dashboard.Models.WidgetData>
        <div id="widgetMenuselection">
           @* @Html.Action("WidgetType", "WidgetType")*@
                   @(Html.Kendo().DropDownList()
                    .Name("Text")
            .DataTextField("Text")
            .DataValueField("Value")
            .AutoBind(true)
            .BindTo(new List<SelectListItem>() {
                    new SelectListItem() {Text = "Filter/Menu",Value = "-1"},
                    new SelectListItem() {Text = "Graph",Value = "1"},
                    new SelectListItem() {Text = "Tabular",Value = "2"}
                    })
            .Value("-1")
            .SelectedIndex(-1)
            .Events(e => e.Change("wdgtMenudrplist_change"))
        )
     </text>)
        )
    2. I donot find any way to attach checkbox to tree view in Kendo. I m using Razor MVC 4, and my table structure has a seatinggroup table and seating table distinctly with seating group has many seats under it. So can i provide tree view individual values of group and seats.
  2. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 14 Sep 2012 Link to this post

    Hi,

    The problem with the dropdown occurs because the element will be initialized twice when used in the window. At least for now in order to avoid this problem, you should either load the window content with Ajax using the LoadContentFrom method or initialize the dropdown with the jQuery plugin.
    Regarding the TreeView, it offers built-in support for checkboxes by using the CheckBoxes method. Please check the checkboxes demo in the offline examples project which is included with the installation.

    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!
  3. Kendo UI is VS 2017 Ready
  4. sourabh
    sourabh avatar
    6 posts
    Member since:
    Aug 2012

    Posted 14 Sep 2012 Link to this post

    Thanks Daniel, regarding checkbox in tree view,i got solution. But in case of Window Control, my issue is that i render drop down and charting widget in window control dynamically ( on basis of user selection at runtime). So i cannot use Load on deman content and Jquery dropdown. Is there any workaround using Css or Javascript, that would be helpful.
  5. Daniel
    Admin
    Daniel avatar
    2117 posts

    Posted 19 Sep 2012 Link to this post

    Hello again,

    I am afraid there is not way to prevent the double initialization. It is possible to use CSS to always show the dropdown even when the display:none style is added e.g.

    .k-window .k-dropdown
    {
       display: inline-block !important;
    }
    Kind 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!
Back to Top
Kendo UI is VS 2017 Ready