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

[Solved] Problem with splitter in non selected tab

1 Answer 70 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Djordje
Top achievements
Rank 1
Djordje asked on 01 Sep 2011, 12:54 PM
I have problem with splitters when they are placed in tab which is not selected initially.
Please see enclosed solution.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 02 Sep 2011, 07:13 AM
Hello Djordje,

The Splitter is a component, which adjusts its layout on the client. However, Javascript size calculations do not work inside containers that are hidden with a display:none style, such as inactive tabs. That's why you need to use the TabStrip's Select client event to manually force the Splitter to readjust:

http://www.telerik.com/help/aspnet-mvc/telerik-ui-components-tabstrip-client-api-and-events.html#ClientEvents


$("#Splitter").trigger("resize");

Note that the trigger method is executed upon the outermost Splitter's DOM element, not its client object.

You may need to wrap the above Javascript statement in a setTimeout.

Best wishes,
Dimo
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Splitter
Asked by
Djordje
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or