PDA

View Full Version : How can i use new Ext.grid.Panel( Ext.Element/String/Object config )



dollygupta
24 Apr 2012, 4:08 AM
I am trying to create a grid panel using newExt.grid.Panel (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Component-method-constructor)( Ext.Element (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Element)/String (http://docs.sencha.com/ext-js/4-0/#!/api/String)/Object (http://docs.sencha.com/ext-js/4-0/#!/api/Object) config ) but dn't know how to do this exactly. I know Ext.Element where i have to insert the grid.

What do i need to mention inside config? How and where can i declare columns and other detials for my grid.

evant
24 Apr 2012, 4:12 AM
Would suggest you check out the examples that come in the SDK download. The 2 main things you need are the columns & the store.

friend
24 Apr 2012, 5:07 AM
The Ext.grid.Panel API documentation (http://docs.sencha.com/ext-js/4-0/#%21/api/Ext.grid.Panel) contains a functional example as well.

dollygupta
24 Apr 2012, 5:22 AM
i want to create something like this for Ext.Grid.Panel---
new Ext.util.ClickRepeater(el1.getById("x-date-left"), {
handler: this.showPrevMonth,
scope: this,
preventDefault:true,
stopDefault:true
});