View Full Version : Problem with Xtemplate overwrite.

2 Jul 2010, 12:59 AM
I have a panel which has 2 dataviews, on click of a button i am loading rows in one of these dataviews. The problem is that i am not able to load the data in the same panel/dataview, it is always creating a new panel.

I tried using template overwrite like this


where jsonData is my data.. when i do this, attr_dextension, which is one of the string name in the json is being displayed as undefined in firebug console.

Please Help Me!!!! :s:-?(:|:-/8-|=D>:((

2 Jul 2010, 1:05 AM
A DataView uses it's own template to render the rows, so you either remove your own load handler and let DataView do the work or replace the DataView with a simple BoxComponent and render your own data.

2 Jul 2010, 1:11 AM
the problem is that , everytime i click the button a new panel is being created. instead of the dataview getting updated.

2 Jul 2010, 1:25 AM
As I said, the dataview already updates when the store is loaded, so why are YOU updating the dataview?