PDA

View Full Version : calling update button within tab



samantaditya
2 Jun 2011, 4:23 AM
Hi
I am new to EXTJS and currently facing some problems.
I have 3 tabs inside FormPanel say T1,T2,T3
All the above 3 tabs have
layout : 'form'

Now, i have a Update button in T2(tab2). I want to update only the elements contained in T2 and not the contents of the entire form or the elements of other tabs.

Can somebody help me out with this :)

friend
2 Jun 2011, 8:43 AM
If the content of each tab is to be independently submitted, then you may want to rethink your design.

Why not just use an Ext.form.FormPanel for each Tab? They can then all be loaded/submitted independently.

If you want to stick with your current design, then I guess you could code an Ext.Ajax.request to submit/retrieve data and manually call set/getValue() on the desired fields.