Forum
09:48
10/05/2010
Hii jqgrid developer team,
i have a grid that code like that :
jQuery('#tableGrid').jqGrid({
scroll: 1,
//url:'../admspanel/maingridrptcustcomplain.php',
datatype: "xml",
height: 470,
width:680,
mtype:"POST",
colNames:['Code','Date','Username','Customer Name','Contact Person','Menu','Description'],
colModel:[
{name:'code',index:'KdComplain',width:80,align:"left"},
{name:'dateComp',index:'TglInput',width:80,align:"left",formatter:'date',formatoptions: {srcformat:'Y-m-d',newformat:'F d,Y'}},
{name:'username',index:'Username',width:120,align:"left"},
{name:'custName',index:'CustomerName',width:200,align:"left"},
{name:'contact',index:'ContactPerson',width:150,align:"left"},
{name:'menu',index:'Menu',width:180,align:"left"},
{name:'desc',index:'Description',width:350,align:"left"},
],
rowNum:100,
//rowList:[10,20,30],
pager: '#navGrid',
sortname: 'KdComplain',
shrinkToFit:false,
viewrecords: true,
sortorder: "asc",
multiselect: false,
reloadGrid:false,
caption: "Report Customer Complaint",
});
jQuery('#tableGrid').jqGrid('navGrid','#navGrid',{add:false,edit:false,del:false,search:false,refresh:false});
function BuildSQL(DateFrom,DateTo,KdUser,User) {
$('#tableGrid').jqGrid('setGridParam',{url:'../admspanel/maingridrptcustcomplain.php?e=1&f='+DateFrom+'&t='+DateTo+'&ku='+KdUser+'&u='+User}).trigger('reloadGrid');
}
when i call my function (buildsql)
the grid is show my data well.
it work fine
but when i scroll horizontal my grid, my grid expand a same data
examples : i have 4 rows when i scroll it the rows become 8 with the same data
is the grid have a bug?
or my code has wrong?
Best Regards,
zenixgrace
11:46
Moderators
30/10/2007
Hello,
Which version is used?
Do you have row which height is diffrent from the others?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
17:30
20/10/2009
I get this bug too, although I think that I know what causes it - I've got grid inserted into resizable container and I resize the grid as the container resizes. I guess that's where load on scroll gets messed up. Actually I wonder if there is a way to reset scroll params after I do a grid resize?
06:38
10/05/2010
Hello tony,
i'm used 3.6.5 version
yes i have row that have different height from the others..
i try to use same height for each row but the grid still expand same data..
i try to upgrade to 3.7.1 version but the the grid still expand a duplicate data..
when i clik row 5, the row highlight point to row 1
when i clik row 6, the row highlight point to row 2
and another else
seem like it's reload after i'm resize column or scroll horizontal..
is there the other way to manipulate it?
Best Regards,
zenixgrace
15:38
Moderators
30/10/2007
Hello,
Looking into your code there is a error here
colModel:[
{name:'code',index:'KdComplain',width:80,align:"left"},
{name:'dateComp',index:'TglInput',width:80,align:"left",formatter:'date',formatoptions: {srcformat:'Y-m-d',newformat:'F d,Y'}},
{name:'username',index:'Username',width:120,align:"left"},
{name:'custName',index:'CustomerName',width:200,align:"left"},
{name:'contact',index:'ContactPerson',width:150,align:"left"},
{name:'menu',index:'Menu',width:180,align:"left"},
{name:'desc',index:'Description',width:350,align:"left"}, <===Error
],
Instead, to resolve the problem, provide a link to the problem.
Thanks.
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
05:37
10/05/2010
hi tony,
thanks for ur explanation..
my code is in here
u can see that bug after u scroll horizontal that grid..
the duplicate rows occur when u click open button for the first and scroll that grid to right
when u click open button for the second and scroll that grid, it work fine..
if that grid have a big data ..
it nothing happen (work fine)
it occur when data less then rownum
Best Regards,
zenixgrace
Most Users Ever Online: 715
Currently Online:
26 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