How to expand splitter panes from a different JavaScript file?

3 posts, 1 answers
  1. Chris
    Chris avatar
    19 posts
    Member since:
    Feb 2016

    Posted 13 Oct Link to this post

    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. Answer
    Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    281 posts

    Posted 17 Oct Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
  4. Chris
    Chris avatar
    19 posts
    Member since:
    Feb 2016

    Posted 18 Oct in reply to Veselin Tsvetanov Link to this post

    Perfect, I was almost doing it correctly. 

    Thanks Veselin

Back to Top