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

Panelbar blowing up the HTML page when div has a grid

3 Answers 43 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Karamjit
Top achievements
Rank 1
Karamjit asked on 24 Jan 2014, 03:19 AM
when you click on the section2, the whole HTML layout is blown apart. the actual behaviour on the page with splitter is quite worse.
this only happens when 
  <div id="orgSchlDgExmSchdl" style="min-height:400px;"></div>
and it is not instantiates/initialized into actual grid object, the proble also does not occur when div tag is initialized into grid object.

<head>
<script type="text/javascript">
        $(document).ready(function () {
            //collapsible management
            $("#panelbar").kendoPanelBar({
                //expandMode: "single"
            });
        });
    </script>


</head>
<body>
    <ul id="panelbar">
        <li class="k-state-active">
            <span> Section1 </span>
            <div>
                Elements under section one
            </div>
        </li>
        <li>
            <!--<span>Section 2</span>
            <div> Elements under section2</div>-->
            <span>Data Entry Grid</span>
            <div id="orgSchlDgExmSchdl" style="min-height:400px;"></div>
        </li>
    </ul> <!-- end Panelbar-->
  
                          
</body>
</html>

3 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 24 Jan 2014, 08:01 AM
Hello Karamjit,

This looks like a bug - Kendo PanelBar uses the empty content container to detect if an Ajax request should be made and does that even if there is no URL for a request. I've added an additional check for the next internal build and service pack. Meanwhile you can add something in your content element to avoid that - even a space will do. I've also updated your points for the find.

Regards,
Kamen Bundev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Karamjit
Top achievements
Rank 1
answered on 09 Feb 2014, 12:17 AM
There is already a span element but still runs into same error.
0
Kamen Bundev
Telerik team
answered on 10 Feb 2014, 07:40 AM
Hi Karamjit,

The content element is the div - add a space in the #orgSchlDgExmSchdl div.

Regards,
Kamen Bundev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
PanelBar
Asked by
Karamjit
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Karamjit
Top achievements
Rank 1
Share this question
or