Hello,
Adding/updating and deleting rows when gruping is on is a little bit tricky.
For this purpose you will need to call the grouping again. Better way is to call destroy grouping, then add/update/delete rows and then call grouping again.
This can be seen if you look into the demo of grouping especially the Dynamic Grouping
For you case you will maybe need to call destroy grouping before to send the data to the server and after it is updated to call the grouping again.
Kind Regards
Hello,
Since you can get the current filter it is easy for you to manipulate these arrays
|
1 2 3 4 |
.. tmplNames: [Template One, Template Two], tmplFilters: [template1, template2], .. |
There is no build in way to do this, but you can define two arrays for the names and templates and push,delete and modify them with a little custom JavasScript.
In order to take effect this you will need to set recreateFilter for the filter options.
See docs.
Kind Regards
Hello,
Unfortunately we do not support a “lazy loading” as described from you, but this is very interesting feature and I will add it in our todo list.
Kind Regards
Hello,
Yes, this is possible. You will need to learn more for datepicker functions and events.
You can do this if you visit jQuery UI Datepicker.
Look at the demos and datepicker events.
Kind Regards
Hello,
Unfortunately we do not support a export to csv/excel/pdf when a custom data PHP function is available.
I have look into the code and it seems we can prepare this for the next release.
Kind Regards
Hello,
The problem maybe is in ajax function, since it need a time to get the result.
You maybe will need to set async: false in order towait until rthe request is completed.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$.ajax({ async: false, url: '/SecurityService/CheckSecurityNumber', type: 'POST', data: { securitynumber: value, userId: rowid }, success: function (data) { if (data.exist) { result = [false, data.msg]; } else { result = [true, ""]; } } }); |
Kind Regards
Hello,
I think that you will need to read some documentation before to proccess with this.
postData is a grid option (object) which add a parameter to the url. These parameters can be changed in the runtime with java script and are easy to maintained. Please look here what postData option is.
If you prefer the more clear for you way you can use setParam to change the url like this
|
1 2 3 |
$("#mybuttonid").click(function() { $("#grid").jqGrid('setGridParam', { url: 'get_data.php?today=2015-01-08' } ).trigger('reloadGrid'); }); |
Kind Regards
Hello,
The download from github differ from the standard download.
After downloading open the js directory and then open the minified directory where the min file is. It is a good idea in this case to replace the css file too, since this is a development (not official) version.
Kind Regards
Kind Regards
Hello,
Then send only one parameter like this:
|
1 2 3 |
$("#mybuttonid").click(function() { $("#grid").jqGrid('setGridParam', { postData: { today: '2015-01-01' } } ).trigger('reloadGrid'); }); |
Kind Regards
Hello,
Yes this is possible. You can do this using postData parameter and setGrid param.
Suppose you want to load a records fro 2015-01-01 to 2015-01-07 then the code will like:
|
1 2 3 |
$("#mybuttonid").click(function() { $("#grid").jqGrid('setGridParam', { postData: { fromdate: '2015-01-01', todate: '2015-01-07' } } ).trigger('reloadGrid'); }); |
At your server you should accept fromdate and todate parameters and return the appropriate records.
Kind Regards
Hello,
I have fixed the bug.
You can download the fixed version from GitHub.
If you have difficulties, please let me know
Kind Regards
Hello Murray,
Thanks for the feedback and I’m glad to hear that the problem is resolved.
Kind Regards
Hello,
Sorry, it is not clear – in the head section of the code tab (HTML) you will see the links, but they are not readable ok.
This is the link to the new fixed file
Kind Regards
Hello,
Thanks for the code fix.
Your investigation is true. This event is raised only once when reloadOnExpand is true. I will see how this can be fixed.
You can submit this in BugTracker
Thanks.
Kind Regards
Hello,
First of all When you post a code in the futore use the crayon button to format a code. it is much better.
I think that the problem is a typo when you set the grid – you set it with capital Letter while they are not in the database select try with this code:
|
1 2 3 4 |
$grid->setSubGrid("getAllocations.php", array('ddate', 'amount', 'fromref', 'toref'), array(80,80,70,70), array('left','right','left','left')); |
or change the Select command in subgrid like:
|
1 |
$grid->SubgridCommand = "select ddate AS Date,amount AS Amount, fromref AS From, toref AS TO from allocations where (fromref = '".$rowid."' or toref = '".$rowid."')"; |
The second method maybe will not work, because of reserved words in the SQL
Regards
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top