Hello,
Look at this example.
From the stored procedure provide a array of the data – see $data variable from the example
Kind Regards,
Will
Guriddo Support Team
Hello,
To clear particular field in searchToolbar you can use the rule where every input element in searchToolbar is build ed like this: gs_ + idPrefix + name from colModel. By example if you have a search file which name in colModel is OrderId then to clear the value you can
|
1 2 3 4 5 6 |
$("#mybutton").on('click', function(){ $("#gs_OrderID").val(""); // if you like you can do triggering of toolbar var mygrid = $("#gridid")[0]; mygrid.triggerToolbar(); }); |
Kind Regards
Will
Guriddo Support Team
Hello,
Can you please provide a test code or link to the problem (this is better).
Detecting CSS problems is very difficult and it is better if we have your content rather than to try to reproduce the problem.
As a suggestion you can try to set the lineheight to normal like this
|
1 2 3 |
.ui-jqgrid { line-height : normal; } |
after all css are loaded.
Kind Regards,
Will
Guriddo Support Team
Hello,
I think you can implement fadeOut if you remove the overlay after that.
To remove the overlay do:
|
1 2 3 4 5 |
// your code with fade out $(".ui-widget-overlay").remove(); // or jqmOverlay class is used if a jqModal is in action |
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for the expalnation.
The only missing part from your description code is how you add a record – i.e the code with which you add a record.
We have successfully implemented exactly your code with inline edit navigator and everything work as expected.
Please, provide a code with which you add a record or send us a link to the problem!
Also the last version is 4.8.2. It is good to point which version of jQuery (jQuery UI) is used too.
Kind Regards,
Will
Guriddo Support Team
Hello,
1. I think that you are not in nested model, but rather in Adjacency tree model
So you will need to replace
$tree->setTreeModel('nested');
with
$tree->setTreeModel('adjacency');
2. In your case it is better to write your own wrapper, rather than to use the jqGrid TreeGrid PHP one – this is just my opinion.
Please look carefully in the link that in provide you in my previous post.
Kind Regards,
Will
Guriddo Support Team
Hello,
I think that this can be done if I understand right the task.
The trick is to use the level posted from user when they want to expand the node.
Using the approach described in the documentation you can easy select the needed table.
Bellow is a idea in PHP of how this can be done
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$node = (integer)$_REQUEST["nodeid"]; $n_lvl = (integer)$_REQUEST["n_level"]; $table = 'Parent'; // Suppose the root level is 0 (see docs for config) if($n_lvl == 0) { $wh = 'ISNULL(parent_id)'; // roots } else if ($n_lvl == 1 ) { $wh = 'parent_id='.$node; // parents $table = 'Child1'; } else if(...) { ... } $SQL = "SELECT ... FROM ".$table." WHERE ".$wh; |
I think you got the idea.
Kind Regards,
Will
Guriddo Support Team
Hello,
Sorry, but we van not reproduce the problem.
Could you please send us a link to the problem or at last very simple example.
Please note the version used – i.e jQuery version, jQuery UI version and jqGrid version.
Maybe you use some versions without to update the CSS files.
Kind Regards,
Will
Guriddo Support Team
Hello,
Could you please post your code or at best send a link to the problem?
For us is very difficult to give a solution with this type of description.
Kind Regards,
Will
Guriddo Support Team
Hello,
The trick is to use overlay option set to 0. You can control the position of dialog with top and left property and disable draging with drag set to false.
Example:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
$('#jqGrid').navGrid("#jqGridPager", { search: true, // show search button on the toolbar add: false, edit: false, del: false, refresh: true }, {}, // edit options {}, // add options {}, // delete options { modal: false, overlay: 0, top: 200, left: 300, drag: false } // search options - define multiple search ); |
Kind Regards,
Will
Guriddo Support Team
Hello,
One possible solution is to use the cellattr function in colModel to reformat the withe space:
|
1 2 3 4 5 6 7 8 9 10 |
colModel: [ { name: 'MyName', cellattr: function (rowId, tv, rawObject, cm, rdata) { return 'style="white-space: normal;"' }, ... }, ... ], |
Kind Regards,
Will
Guriddo Support Team
Hello,
If I understand right the requirement you can use custom summary type.
The near example can be found here
Kind Regards,
Will
Guriddo Support Team
Hello,
There is a JavaScript method called remapColumns – the method reorder the grid columns based on the permutation array. The indexes of the permutation array are the current order, the values are the new order. By example if the array has values [1,0,2] after calling this method the first column will be reordered as second.
There is a grid parameter called remapColums too which hold the current order of the columns. You can get this parameter using getGridParam method..
|
1 2 3 4 5 6 7 8 |
var saved_state = $("#mygridid").jqGrid('getGridParam', 'remapColumns'); // save this variable in session and then restore the state like this // after the grid is loaded $("#mygridid").jqGrid('remapColumns', saved_state, true); |
Kind Regards,
Will
Guriddo Support Team
Hello,
We support this feature. You can get a demo from our examples here.
Kind Regards,
Will
Guriddo Support Team
Hello,
The current demo does not support fully Bootstrap.
We will publish the native support at end of this mount.
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top