PDA

View Full Version : Refresh ext:Panel content



reiben
Mar 27, 2011, 11:16 AM
Hi

I need some help with finding a solution to refresh ext:Panel content without performing full postback

I have an empty panel defined on page.
On Page_Load event I dynamically create a controls for this panel from DB.
For each row in returned DataSet from DB I create DisplayField and Button for Panel and after page is rendered there are controls added to panel.
On this dynamically added button I added event click that removes a row in DB - what I want to achieve is that both DisplayField and Button representing this deleted row in DB n are removed from ext:Panel.
Is there a way to do this without postback?
Also I want a new DisplayField and Button added to panel after row is inserted to DB (via. another button click)

reiben
Mar 28, 2011, 12:34 PM
Unfortunately I still was unable to find a solution to this problem.
I could really use some help.

peter.campbell
Mar 28, 2011, 4:34 PM
Can you not use:


myPanel.remove(myButton)

.. type of thing?

reiben
Mar 29, 2011, 5:01 PM
Unfortunately it doesn't work that way.