Splitter converting too many DIV as splitter

4 posts, 0 answers
  1. wizmagister
    wizmagister avatar
    37 posts
    Member since:
    Nov 2011

    Posted 07 May 2012 Link to this post

    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 !
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 08 May 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. wizmagister
    wizmagister avatar
    37 posts
    Member since:
    Nov 2011

    Posted 08 May 2012 Link to this post

    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 !
  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 08 May 2012 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready