How to select a tab in coolite tab panel programmatically?

  1. #1

    How to select a tab in coolite tab panel programmatically?

    Hello there,
    Currently I am working coolite tab panel. I am checking some condition on deactivate event of a tab and I want to select a tab
    in coolite tab panel programmatically from javascript function. How to do that? Please help with some code or links.
    thanks in advance
  2. #2
    You can call the .setActiveTab() function

    Example

    TabPanel1.setActiveTab(Panel1);
    See also

    http://dev.sencha.com/deploy/dev/doc...r=setActiveTab
    Geoffrey McGill
    Founder
  3. #3
    Quote Originally Posted by geoffrey.mcgill View Post
    You can call the .setActiveTab() function

    Example

    TabPanel1.setActiveTab(Panel1);
    See also

    http://dev.sencha.com/deploy/dev/doc...r=setActiveTab
    thx . that worked!
  4. #4
    Quote Originally Posted by geoffrey.mcgill View Post
    You can call the .setActiveTab() function

    Example

    TabPanel1.setActiveTab(Panel1);
    See also

    http://dev.sencha.com/deploy/dev/doc...r=setActiveTab
    Well thanks. I found that the code is keeping the tab body selected, but its title gets unselected after I use that code. What could be the code to keep the tab-title selected?
  5. #5

    how to use beforetabchange?

    Hello there
    I found that this event 'beforetabchange' event will serve my requirements. But I don't know how to use this event. Can anybody help with the code to use this event? thanks in advance
  6. #6

    It didn't work out

    Does the above code works for javascript? In my case its not working. Can you look into my queries...?
    thanks a loy

Similar Threads

  1. [CLOSED] How to create Panel Loader programmatically
    By Daly_AF in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 06, 2012, 10:50 AM
  2. How to select/copy Panel Contents
    By thedarklord in forum 1.x Help
    Replies: 3
    Last Post: May 25, 2011, 2:36 PM
  3. [CLOSED] Select All in Coolite Grid
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 08, 2010, 8:28 AM
  4. How to select a tab and title programmatically?
    By masudcseku in forum 1.x Help
    Replies: 4
    Last Post: Oct 18, 2010, 6:58 PM
  5. Grid panel one group select all
    By anilkumar in forum 1.x Help
    Replies: 0
    Last Post: Jun 13, 2009, 4:18 AM

Tags for this Thread

Posting Permissions