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

How to expand splitter panes from a different JavaScript file?

2 Answers 29 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 14 Oct 2016, 01:04 AM

I have a layout using splitters and I have them collapsed when the view loads. From there I have a button to start an order and that button click triggers a popup, and in that popup there are 2 buttons a Save button and a Cancel button. The originating view has its own JavaScript file and the popup has its own JavaScript file, so this is where I think the trouble is happening. If everything was in the same JavaScript file then it would probably be easier to do. 

With all that information my question is when I click Save from the popup, how do I expand the splitter panes in the view from where the popup was called? 

2 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Tsvetanov
Telerik team
answered on 17 Oct 2016, 09:29 AM
Hi Chris,

Attached you will find a very simple implementation, based on your scenario. You will notice that you will need to access the Splitter widget instance and then you could expand the desired pane:
var splitter = $("#vertical").data('kendoSplitter');
splitter.expand(".k-pane:first");

Regards,
Veselin Tsvetanov
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Chris
Top achievements
Rank 1
answered on 18 Oct 2016, 07:10 PM

Perfect, I was almost doing it correctly. 

Thanks Veselin

Tags
Splitter
Asked by
Chris
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Chris
Top achievements
Rank 1
Share this question
or