-
Sencha User
Loading data on grid
Hi,,
I am facing problem on loading data on grid.
When I run my application ,the data on first tab is loading.
When I click on second tab and then by clicking on first tab the loaded data has disappeared.
Is there any thing I have missed when declaring the grid?
Please solve my problem .....
-
-
Sencha User
{
xtype : 'gridpanel',
id : 'gridId',
width : '100%',
height : 30,
enableColumnHide : false,
sortableColumns : true,
autoScroll : true,
plugins : [ Ext.create('Ext.ux.grid.GridHeaderFilters') ],
viewConfig : {
id : 'ds',
trackOver : false,
stripeRows : true
},
columns : [{
header : 'First Name',
width : 100,
dataIndex : 'firstName',
}, {
header : 'Last Name',
width : 100,
dataIndex : 'lastName',
}],
store : 'driver.DriverDetails'
}
This is the grid which shows first name and last name of driver when I click on first tab.
But when I click on second tab and again I click on first tab the data is not loaded to grid.
It is displaying grid with empty data.
Please give some solution as soon as possible.........
-
Dont use extra commas. Firefox accepts them but IE will cause an error:
Code:
dataIndex : 'lastName',
Also post code for your tabpanel and please use CODE tages (# button when you are typing your message)
-
Sencha User
Yes,
This one is type mistake .
I'll not do such silly mistake.
Can you give me the solution?
-
From the grid code, I wasnt able to find any problem. Post your whole code (tabpanel and whats in the other tab).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules