View Full Version : href, hrefTarget does not work properly when items are added dynamically in the form

4 Aug 2014, 5:44 AM
I have a Form Panel which has a set of buttons and each of the button on click will scroll up the field
With href and href target property set to respective id of Field set. On click of any button corresponding field

This is how it looks in the beginning.


Now on click of Visitor Address button the visitor address field set scrolls above because the href of the visitor address button is set to the id of visitor address field set.It is as shown in the below image.


Now a grid in the below form is added dynamically to the form .If on click of any button after adding this grid the top header part of the page disappears or hides.if any one can help to find solution for this it would be helpful.


Thanks &regards

Gary Schlosberg
4 Aug 2014, 7:10 AM
How are you adding the grid? Which version of ExtJS are you using?

4 Aug 2014, 9:46 PM
I am using Ext-js 4.2.2.
I am doing it using Sencha Architect 3.1. I have put a grid inside a form separately and i add that form to the container dynamically.

The code which i am using to add the form which contains the grid is as shown below.

//contactList is the reference to form which contains the grid
var contactList = this.getContactList();
//Adding contactList to container