Forum
13:08
20/06/2011
I have tried to select invisible row with the option.
Not scrolling.
I hare tried also the online example scroll whith dinamic row select. Malfunctioning not show the last row.
I have modified this example will not work (i have upgraded all to last version 4.1.1)
loadcml.js
var sw = 0;
jQuery("#list15").jqGrid({
scrollrows : true,
url:'server.php?q=2',
datatype: "json",
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:55},
{name:'invdate',index:'invdate', width:90},
{name:'name',index:'name', width:100},
{name:'amount',index:'amount', width:80, align:"right"},
{name:'tax',index:'tax', width:80, align:"right"},
{name:'total',index:'total', width:80,align:"right"},
{name:'note',index:'note', width:150, sortable:false}
],
height: 150,
rowNum:10,
rowList:[10,20,30],
pager: '#pager15',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
loadComplete: function(){
var ret;
if (sw==0) {
alert("This function is executed immediately after\n data is loaded. We try to update data in row 6.");
ret = jQuery("#list15").jqGrid('getRowData',"6");
if(ret.id == "6"){
jQuery("#list15").jqGrid('setRowData',ret.id,{note:"<font color='red'>Row 6 is updated!</font>"})
}
sw = 1;}
}
});
jQuery("#sids").click( function() {
jQuery("#list15").jqGrid('setSelection',"6");
//alert("Id's of Grid: \n"+jQuery("#list15").jqGrid('getDataIDs'));
});
Most Users Ever Online: 715
Currently Online:
51 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