Forum
Topic RSS
14:28
16/06/2010
Offline14:44
16/06/2010
Offline15:07
16/06/2010
Offline15:49
16/06/2010
Offline09:34
16/06/2010
OfflineOK if someone have the same situation like me here is the solution:
- I made function for grid initialization:
function constructGrid(){
$("#mygrid").jqGrid('GridUnload');
jQuery("#mygrid").jqGrid({
datatype: "local",
height: 200,
colNames:['One', 'Two', 'Three', 'Four','Five'],
colModel:[
{name:'col1',index:'col1', width:100},
{name:'col2',index:'col2', width:100},
{name:'col3',index:'col3', width:100},
{name:'col4',index:'col4', width:100},
{name:'col5',index:'col5', width:100}
],
viewrecords: true,
caption: "Some Caption"
});
}
- on document.ready – call :
constructGrid();
- on callback function which returns new data:
success: function(data){
constructGrid();
for(var i = 0; i <= data.length; i++)
jQuery("#mygrid").jqGrid('addRowData', i+1, data[i]);
}
And that works for me.
Most Users Ever Online: 994
Currently Online:
11 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66
Log In
Home
)