I think that you should check the response from the server in this case. If the grid loads correctly first time, this mean that something is wrong with the code at the server.
David,
Thank you for this. One of the big difference between jqGrid and others is the speed. This property is at first place. But having this we do not have a ton of other properies that nobody will use. We have a methods for customising this – i.e with a little programing you can achieve this. I recommend you to use afterInsertRow event and setCell method. The only thinng that you should do is to write your own date formater. The code should something like this:
afterInsertRow : function(rowid, datarow) {
// here is the code to format your date something like
mynewdate = customfunc(datarow.mydate);
$(”#mygrid”).setCell(rowid,'mydate',mynewdate);
}
The clear solution here is that the date should be formated server side
Now about the sorting. Currently jqGrid support sorting of dates only if they are numbers. I think that this shuld be corrected and mybe will be done soon.
Best Regards
Tony
Sorry about this, but I reccomend you first to read the documentation
Best Regards
Tony
I think that we should support a wide range of possibilities. By example in my project I want to have in all grids this option rowList:[10,20,30], but in particular page I do not want this. Setting the rowList as common option have sence in relative big project, but what to do in a particular case when I do not want this? I think that this have sence. What do you think?
Best Regards
Tony
See this
But there is a bug in setColProp –
It is allready setted, but it requeres a more inteligent rendering engine.
Imagine if you have more that 5000 records in the table – in this case
you memory will be out.
If you look at scrollGrid function you will have a idea haw this can be done
Regards
Tony
But there is a big problem with this in your case:
$.extend($.jgrid.defaults,{rowList:[10,20,30]});
$(“#mygrid”).jqGrid({
…..
rowList: [],
..
});
rowList remain [10,20,30]
You can test this.
That means that the current settings of the grid are overwriten.
Maybe I will disable this in next release.
If I set the debugger to the first line of jquery.js it does not stop.
Yes there is a something strange here. Please to be ensure that
all is ok. First load jquery and put something simple and see if this
work. Then step by step include the modules
Regards
Tony
Not sure if this will help, but try to add height:auto to the element
Changing dynamically the width of the grid (after they is constructed) currently is not recomended.
Do you have put any special content whitin grid?
With 100% height vericall scrollbar should not apper either in FF and IE
Do you use 100% height?
Yes this is in to do list
Regards
Tony
Hello,
Humm this is very strange. Could you please test whitout to use adding data. I mean disable this piece of code
var mydata = [
{county:”Putnam”,entity:”Carmel”,year:”2007″,count:”325″},
{county:”Rockland”,entity:”Hillburn”,year:”2008″,count:”16″},
{county:”Westchester”,entity:”Yonkers schools”,year:”2008″,count:”4285″}];
for(var i=0;i<=mydata.length;i++)
$(”#list4″).addRowData(i+1,mydata);
Regards
Tony
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top