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

[Solved] Splitters under Tabs do not work with Firefox

3 Answers 14 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.
Chunsheng
Top achievements
Rank 1
Chunsheng asked on 05 Mar 2012, 05:47 PM
Hi All

Could you please help to solve an issue with using Telerik Splitter. In my test project (please see the attached zip file), the Index page contains 3 Tabs; each tab has a Splitter that seperate 2 panes (named as "tab 1 left" and "tab 1 right" or "tab 2 left" and "tab 2 right" or "tab 3 left" and "tab 3 right"). This project displays well with the Internet Exprorer. However, in Firefox, only the Splitter in the first Tab works well; Splitters in Tab 2 and Tab 3 do not work. Anyone could help with how to solve this issue?

Thanks very much in advance.

Chunsheng

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Mar 2012, 01:21 PM
Hello Chunsheng,

Please use the TabStrip's OnSelect event to manually trigger layout adjustment for the second and third splitter. You also need to use setTimeout().

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

Kind regards,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Chunsheng
Top achievements
Rank 1
answered on 06 Mar 2012, 05:09 PM
Hi Dimo

Thanks very much for your reply. I have followed your suggestion and updated the project. But it still does not work. I have attached the updated project in this reply. Could have a look and tell me what is wrong. Could ryou ectify it in the project and attach the it in the reply?

Thanks very much for your help.

Best regards,

Chunsheng
0
Dimo
Telerik team
answered on 07 Mar 2012, 08:01 AM
Hi Chunsheng,

As I said in my previous message, you must wrap the resize statements in a setTimeout.

Also, you need to execute manual resize for each Splitter only once, not on every tab select.

Greetings,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Splitter
Asked by
Chunsheng
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Chunsheng
Top achievements
Rank 1
Share this question
or