[CLOSED] MVC 3 [Razor] Tabpanel Click

  1. #1

    [CLOSED] MVC 3 [Razor] Tabpanel Click

    Couple of questions:

    1. How do I get the Click event of the Tab, call a Javascript function and pass the ID of the clicked Tab to that function?
    2. How to do Ext.getCmp('tabPanel1').getActiveTab().getId(); [Throws error "object is null or undefined"]

    Thanks
    Last edited by Daniil; Sep 19, 2012 at 8:21 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Quote Originally Posted by dheeraj_us View Post
    1. How do I get the Click event of the Tab, call a Javascript function and pass the ID of the clicked Tab to that function
    I would suggest to use the Activate event.
    http://docs.sencha.com/ext-js/4-1/#!...event-activate

    Or, maybe, the TabChange event of TabPanel.
    http://docs.sencha.com/ext-js/4-1/#!...vent-tabchange

    Please clarify will it suite your needs?

    Quote Originally Posted by dheeraj_us View Post
    2. How to do Ext.getCmp('tabPanel1').getActiveTab().getId(); [Throws error "object is null or undefined"]
    I tested your code, it works well for me.

    Which moment do you call this code? Could you provide a sample?
  3. #3
    I got the fix, this thread can be closed.

Similar Threads

  1. [CLOSED] MVC 3 [Razor] TabPanel Content Loading
    By dheeraj_us in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 18, 2012, 7:22 PM
  2. Replies: 1
    Last Post: May 21, 2012, 8:36 AM
  3. Replies: 2
    Last Post: May 04, 2012, 1:51 PM
  4. Replies: 2
    Last Post: Apr 09, 2012, 2:13 PM
  5. Tabpanel - Autoload only on tab click/Activate
    By Tbaseflug in forum 1.x Help
    Replies: 5
    Last Post: Sep 01, 2009, 5:17 PM

Posting Permissions