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

Grid inside splitter avoid scroll

1 Answer 347 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Luis
Top achievements
Rank 1
Luis asked on 27 Jul 2016, 02:36 PM

Hello I have a grid inside a horizontal Pane inside a splitter pane. I need the splitter pane to increase its height automatically according the size of the grid and not trigger scrolling inside the splitter.

Thank you

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 29 Jul 2016, 11:24 AM

Hello Luis,

The size calculation in Kendo Splitter happens from the outside to the inside. You can read more about  that in this forum post: http://www.telerik.com/forums/grid-100-height#9AlrQ3unI0a08VEY9RfrxQ. And the thread here might be also useful on the case: http://www.telerik.com/forums/grid-100-height#jMp5aPGYEUad5JxrLMWN0A. Which means that it is the parent elements that control the size of the splitter rather the panes' content. 

That said, it is up to further logic to dynamically change the parent's height and resize the splitter according to the content. 

Basically, with the grid you need the appropriate event that indicates that it is rendered, like dataBound. And with that event change the document's body's height. Finally, call the splitter's resize() method. You can see an example about that here: http://dojo.telerik.com/ucEQu.

Regards,
Ianko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Splitter
Asked by
Luis
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or