Thanks for the help.
I look forward to your reply.
I don't know..but I am trying to find it out for you
Thank you very much, Tony!
The grid works now, even with less than 10 rows.
When using the grid, I noticed that the zebra effect is not correct. I created a new topic for this. The grid configuration is unchanged:
It's great posting to forums, the answer always comes along immediately afterwards! My problem was I was setting the parent_id of the root node to “” rather than null
Hi Tony. Thank you for your awesome plugin.
I have the same problem as blemoine but the current version is 3.6.2 and there is still no such functionality
Dont you forget about this issue or you have some technical problems?
The grid settings:
var gridSettings = {
url: '/Users/List',
datatype: “json”,
altclass: 'alternateRow', //The class that is used for alternate rows. You can construct your own class and replace this value. This option is valid only if altRows options is set to true
altRows: true, //Set a zebra-striped grid
resizeclass: “resizable”, //Assigns a class to columns that are resizable so that we can show a resize handle only for ones that are resizable
loadtext: “Loading!!”, //The text which appear when requesting and sorting data. This parameter is located in language file
loadui: “enable”, //This option controls what to do when an ajax operation is in progress.
multiselect: true, //If this flag is set to true a multi selection of rows is enabled. A new column at left side is added. Can be used with any datatype option.
multiboxonly: false, //the multiselection is done only when the checkbox is clicked (Yahoo style). Clicking in any other row (suppose the checkbox is not clicked) deselects all rows and the current row is selected
rownumbers: false, //A column is added to count the number of available rows
scroll: true,
colNames: ['userid', 'Username', 'Student', 'Email'],
colModel: [
{ name: 'Id', index: 'Id', width: 200, hidden: true },
{ name: 'UserName', index: 'UserName', width: 200 },
{ name: 'Name', index: 'Name', width: 200 },
{ name: 'Email', index: 'Email', width: 200, resizable: true }
],
sortable: true, //When enabled this option allow column reordering with mouse.
Well, it fixed the problem for me. Please try it with td padding of 7px and grid's height of 530px. It should be pretty close to my test environment. I double checked my server side code, and it works ok.
edit: Also, I have rownumbers set on true, and they are repeated too, so it is not like server side is returning wrong data, but jqGrid simply repeats first page of results.
I think, I've found the solution. The problem was in using parseInt function instead of Math.ceil when determening current page. So line 277 of grid.base.js file should be page = Math.ceil((tbot + scrollTop) / div) + 1; instead of page = parseInt((tbot + scrollTop) / div) + 1;
It should be tested probably, but it seems that it works on my example.
My server code is correct, and I was checking with Firebug. When I scroll out first set, first page is again requested. I will check again, but I don't know what could cause problems on the server side?
Hi Tony,
Your answer to Forums
Help
formatter:’select’
<span style="background-color: #ebeff9;" title="neměla by se tato tř
Here it is http://pastie.org/783695
Is dataUrl called after beforeShowForm? If so, can you please reverse the order?
The same problem occurs with 3.6.2. The first edit form appears
This is probably the wrong place for my original post. For more details, please see:
Thanks for the quick reply.
I double checked the server settings. They seem to match the descriptions in
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top