Hello,
Can you please send us a sample server json response (as text file – zip-ed) to support at guriddo dot net?
Also which version of jqGrid is used? and which version of jQuery is used?
Thank you
Kind Regards,
Will
Guriddo Support Team
Hello,
Unfortunately there is no such function, but you can very easy check any field you want.
By example when using formedit the id of the coulmn1 is the name in the colModel:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
function mypricecheck(value, colname) { if( $("#column1").val() === 'something' ) { return [false, 'Error']; } else { return [true,'']; } } jQuery("#grid_id").jqGrid({ ... colModel: [ ... {name:'column2', ..., editrules:{custom:true, custom_func:mypricecheck....}, editable:true }, ... ] ... }); |
Kind Regards,
Will
Guriddo Support Team
Hello,
You may set loadonce parameter to true to load all the data from the server at once and use it then locally.
In order to work sorting when local data you will need to set formatoptions srcformat and newformat.
If these options are not set they are read from the localization file used.
Kind Regards,
Will
Guriddo Support Team
Hello,
The problem here is that all the data retrieving paging sorting are done server side.
For this purpose you will need to write your server side logic to sort and paging the data. You will have the same problem with paging – i.e you will get only the first page.
In order to do the right logic to the server jqGrid send some parameters when it sorts and paging the data.
We have PHP example where you can get idea how to construct your code. The demo code is here
Kind Regards,
Will
Guriddo Support Team
Hello,
You will need to change your server side logic to accept the paged data.
jqGrid post additional parameters when the a next/previous page is activated.
You should get this in consideration.
Here is a PHP example on how to get the parameters from jqGrid and send the paged data.
With simple words you must have a server side logic to get the paging in jqGrid working.
Kind Regards,
Will
Guriddo Support Team
Hello,
Sorry for my first post.
I totally forgot that the Unixdate is stored as number (or string), but jqGrid automatically detect the field types – so this code will not work.
One possible solution is to convert the date field to unix date and post it to the server.
This can be done using serializeEditData (suppose you use form edit)
|
1 2 3 4 5 6 7 8 9 10 11 12 |
$serializeDate = <<<DATETOUNIX function( postEditData ) { postEditData.newsDate = $.jgrid.parseDate('d.m.Y H:i', postEditData.newsDate, 'U'); return postEditData } DATETOUNIX; $grid->setNavEvent('add','serializeEditData', $serializeDate); $grid->setNavEvent('edit','serializeEditData', $serializeDate); |
Kind Regards,
Will
Guriddo Support Team
Hello,
Using the description from PHP date the following is written:
u – Microseconds (added in PHP 5.2.2). Note that date() will always generate 000000 since it takes an integer parameter, whereas DateTime::format() does support microseconds if DateTime was created with microseconds.
U – Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT)
u and U are different
Kind Regards,
Will
Guriddo Support Team
Hello,
Please refer to this documentation here
In your case you will need to use the user and database date settings.
Kind Regards,
Will
Guriddo Support Team
Hello,
The master-detail example you refer is just a demo. We can not put all the features in one example.
This is not by design and actually we have exactly the code you want, but with our PHP jqGrid component – here
The PHP component generate the same jqGrid’s.
If you have difficulties, please let us know where you have such one and which editing module you use.
Kind Regards,
Will
Guriddo Support Team
Hello,
Could you please prepare a example for this issue? We have tested it and it seems it is working correct for us.
This demo show us that it is ok . Demo here
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for information – your Subscription is expired.
If you find free-jqGrid better than Guriddo jqGrid you are free to move tho this product.
Good luck!
Kind Regards,
Will
Guriddo Support Team
I can not reproduce the problem. If you describe what is the problem more detail we can understand the problem – with other words what actions you do, what you expect and what is happen?
In Chrome I can not see any problem with the sorting.
When you deal with local data you missed a very important definition in colModel – key:true. Note that the key should be unique which can not be seen in your definition.
Kind Regards,
Will
Guriddo Support Team
Hello,
Currently there is no resolution the way you want. Tony has point you to a solution of the problem – you need to add another column to be frozen.
Which version do you use – free jqGrid or Guriddo jqGrid?
Are you licensed user? I can not find your e-mail in our database.
Kind Regards,
Will
Guriddo Support Team
Hello,
The problem is that you have two fields with the same index name:
|
1 2 3 4 5 6 |
columnModel = [ {"name":"TimeSelection_0","index":"d0_key","sorttype":"int"}, {"name":"d0_key","index":"d0_key","sorttype":"int"}, .. ]; |
This is not correct. it is equivalent to have two fields in a sql table with the same names, which is not possible.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the feedback.
Please, let is know how is going with this.
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top