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

Using a splitter on only selected div tags

2 Answers 106 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Shane P
Top achievements
Rank 1
Shane P asked on 08 Feb 2012, 04:35 AM
I have some html that I have applied the splitter to.

<div class="frame">
<div class="left-nav"></div>
<div class="content"></div>
<div class="clear"></div>
</div>

My class left-nav has a set width of 200px and my content class doesn't have a set width.
clear just removes the floating.

Can the splitter be applied just to left-nav?

I have tried

$(".frame").kendoSplitter({
          panes: [
                          { collapsible: true,size:"200px",max:"200px"},
                      {},{}
                            
    
                      ]
      });

But it applies a panel to the .content div.

Any suggestions?

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 08 Feb 2012, 09:25 AM
Hello Shane,

The layout and structure of a splitter is defined within the DOM as a DIV with child elements.
There is no need to manually clear the floating - KendoUI will do that for you. Please check the following example:
<p>Content before</p>
<div class="frame">
    <div class="left-nav"></div>
    <div class="content"></div>
</div>
<p>Content after</p>
 
<script>
    $(document).ready(function(){
        $(".frame").kendoSplitter({
            panes: [
                { collapsible: true, size:"200px", max:"200px"},
                {}
            ]
        });
    });
</script>


Greetings,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shane P
Top achievements
Rank 1
answered on 08 Feb 2012, 03:25 PM
Thanks Alexander. I was using clear to format the layout of my page.

With a little rework all is good.

Thank you
Tags
Splitter
Asked by
Shane P
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Shane P
Top achievements
Rank 1
Share this question
or