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

widget within widget

1 Answer 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 26 Nov 2012, 05:35 PM
How would I go about having a grid widget within an accordion widget? is it possible? I'm using something like this


                <ul id="accordion">
                <li class="k-state-active">
                    grid
                    <ul>
                        <li><div id="grid"></div></li>
                    </ul>
                </li>
            </ul>
              

$('#gird).kendoGrid({ ... });
       $("#accordion").kendoPanelBar({ ... });




1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Nov 2012, 02:30 PM
Hi Phil,

This is possible, but I advise you to initialize the Grid first, or initialize it in a visible (expanded) item of the PanelBar. If the Grid is initialized while hidden, it has an explicit height and its scrolling is enabled, the widget will not be able to adjust its layout properly.

In addition, please use one more <div> inside <li class="k-state-active"> to wrap all inner content, as shown in this demo:

http://demos.kendoui.com/web/panelbar/index.html

All the best,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Phil
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or