Results 1 to 2 of 2

Thread: Reference Tab Specific Slider in a FormPanel

  1. #1

    Default Reference Tab Specific Slider in a FormPanel

    Hi.

    I was having trouble referencing a slider on a given tab. My current setup is:

    Code:
    var panel = new Ext.form.FormPanel({
            itemId: 'panel',
            border : false,
            bodyStyle: 'padding:5px 5px 5px 5px;',
            items: [{ 
                    border: false,
                    xtype: 'slider',
                    isFormField: true,
                    hideLabel: true, 
                    itemId : seekBar,
                    value : 0,
                    minValue : 0,
                    maxValue : 0,
                    plugins : new Ext.SeekTip()
           }
    Now, my tabs contain the same FormPanel so I need to get the ActiveTabs slider so I have the following call:

    var slider = Ext.getCmp('tabs').getActiveTab().getComponent('panel').getForm().findField(seekBar);

    and I also tried:

    var slider = Ext.getCmp('tabs').getActiveTab().getComponent('panel').getComponent(seekBar);

    Any suggestions on how to obtain the slider object on the active tab?

    Thanks in advance.

  2. #2

    Default

    What I ended up doing was this:

    Code:
    Ext.getCmp('tabs').getActiveTab().getComponent('panel').seekSlider.getValue()
    and I set a ref in the class.

    Code:
    { 
                    border: false,
                    xtype: 'slider',
                    ref: '../seekSlider',
                    isFormField: true,
                    hideLabel: true, 
                    itemId : seekBar,
                    value : 0,
                    minValue : 0,
                    maxValue : 0,
                    plugins : new Ext.SeekTip()
           }

Similar Threads

  1. itemCls for slider in Formpanel
    By torsten.t in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 27 Nov 2009, 5:56 AM
  2. How to fetch specific value from item of Ext.FormPanel
    By puremonkey2009 in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 11 Sep 2009, 2:05 AM
  3. Creating a tab at a specific index
    By oshannon in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 11 Aug 2009, 10:52 AM
  4. Specific tab doesn
    By joao_candido in forum Ext 2.x: Help & Discussion
    Replies: 16
    Last Post: 14 May 2008, 11:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •