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

Issue with control

3 Answers 90 Views
Drag and Drop
This is a migrated thread and some comments may be shown as answers.
sourabh
Top achievements
Rank 1
sourabh asked on 11 Sep 2012, 07:57 AM
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.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 14 Sep 2012, 08:31 AM
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!
0
sourabh
Top achievements
Rank 1
answered on 14 Sep 2012, 08:57 AM
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.
0
Daniel
Telerik team
answered on 19 Sep 2012, 06:40 AM
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!
Tags
Drag and Drop
Asked by
sourabh
Top achievements
Rank 1
Answers by
Daniel
Telerik team
sourabh
Top achievements
Rank 1
Share this question
or