PDA

View Full Version : databind form display in window



maren
3 Nov 2009, 8:45 AM
hi,
I try to display a form with databinding in a pop up window when i select a row from a grid and i click on 'edit' button but all textfields are comming blank.
I search in forum but i doesn't found a solution
Can you help me please?
thanks in advance

abeal
3 Nov 2009, 10:33 AM
Have you found the LoadRecord (http://www.extjs.com/deploy/dev/docs/output/Ext.form.BasicForm.html) method in the API docs for a basic form? That's the easiest way to populate a form, IMO. You could bind it to your edit button's click event, using the gridpanel's selection model (http://www.extjs.com/deploy/dev/docs/output/Ext.grid.GridPanel.html#selModel) to obtain the appropriate record.

maren
4 Nov 2009, 2:13 AM
I try to adapt this example to my case but it doesn't work
http://www.extjs.com/deploy/dev/examples/form/form-grid.html (http://www.extjs.com/forum/../deploy/dev/examples/form/form-grid.html)