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

Splitter converting too many DIV as splitter

3 Answers 102 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
wizmagister
Top achievements
Rank 2
wizmagister asked on 07 May 2012, 09:39 PM
Hello, I'm using the splitter to display on top a Kendo Grid and in the bottom Google map. With resize event I found in this forum, I was able to resize the grid and map correctly. Still, I got 2 questions/comments: 

1. To resize the GRID, I must set a timeout of 200 miliseconds because the RESIZE event of the splitter happens before the actual size is changed in the DOM (then, the height iscalculated with the olds value)

        resize: function () {
          setTimeout(function () {
            Application.Fire_ApplicationResize();
          }, 200);
        }

2. If you look at HTML.png, kendo splitter is creating 5 GHOST splitter (that you can see in capture.png). The last 4 splitter DIV are not mine and they are empty. 
- Do you know why ?
- Is there a way to tell Kendo to only create SPLITTER from specified DIVs ? And not ALL those generated by Google (or something else) ?

This really comes from the Google map creation. 

Thanks !

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 08 May 2012, 08:50 AM
Hello Marc,
  1. You can use the layoutChange splitter event -- it is fired after the panes have been resized.
  2. We are not aware of such an issue. Since the markup is closely related to your application, feel free to open a support ticket and send a page that shows the problem.
All the best,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
wizmagister
Top achievements
Rank 2
answered on 08 May 2012, 03:18 PM
Hello again and thanks for the reply.

Using "LayoutChange" solved the issue :) .
Is it good practice ? Will it change in the future ? What the use of Resize if we don't know the new size ?

As for the markup, can you tell me how the splitter decide which DIV become part of the splitter or not ? DIV are widely used and it would be safer to specify which ones we want to be splitters !

Thanks !
0
Alex Gyoshev
Telerik team
answered on 08 May 2012, 04:26 PM
Hello Marc,

> Will it change in the future? What the use of Resize if we don't know the new size? 
We document breaking changes. The use for the resize event is to make it cancellable, i.e. so that pane resizing can be validated and prevented.

> which DIV become part of the splitter or not?
All child elements of the element that is becoming a splitter are considered panes. If you want to limit them, specify the panes configuration option -- it will take only the amount of panes that is described there.

Kind regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Splitter
Asked by
wizmagister
Top achievements
Rank 2
Answers by
Alex Gyoshev
Telerik team
wizmagister
Top achievements
Rank 2
Share this question
or