Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
how can i make only one StackBarGroup(slider) open at time
posted

Hi..

I have some Sliders(StackBarGroup's) in a StackBar. When the user clicks on Slider, all the other slider which are open should close.(There can only be one slider open at a time). 

 

Rgds

Sashi 


 

Parents
No Data
Reply
  • 24671
    posted

    Hi sashibala,

     Yes you can do that by calling expand() or collapse() on the side/stack bar IG javascript object (on the client side). You only need to have a reference to the HTML DOM element (obtained by document.getElementById(), then you should do :

     

    var stackbar = ig.bar.getStackbar(stackbarDomElement);

    stackbar.expand() ;

    stackbar.collapse(); 

    Currenly this is not possible using official client-side Infragistics APIs, but in the 8.2 release there will be full-blown Client-Side Object model architecture available, which will allow you to do this. Thanks for your feedback. I hope the suggested solution helps.

     

    --Angel 

Children
No Data