Hello,
It is possible to do this, but we need to know some more information, before to recommend a solution.
How is the data loaded? – at once – all the data (with paging) or not every time the user sort or page the data it is loaded from the server?
This question is related in connection of the first case above.
When the fresh data come – what contain this data – the changes in the whole grid data or only in the current page?
These different cases make the implementation different.
Kind Regards,
Will
Guriddo Support Team
Hello,
It seems to me either you have not clear the cache or you do not have look at the code to the end. Below is a screenshot of the link and the code.

Please let us know what is not clear here into the code?
Kind Regards,
Will
Guriddo Support Team
Hello,
Yes there is a very simple way – you can store your source data in localStorage and in case of network erorr (ajax error event) you can get the data from storage and put it into gird.
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for explanation.
Unfortunately the array driver jqGridArray.php is not compatible with treegrid.
Kind Regards,
Will
Guriddo Support Team
Hello,
Please, it is important to us: CLICK ON THIS LINK
AND SCROLL TO THE END OF THE PAGE – THE EXAMPLE IS THERE USING THE onBeforeExport EVENT.
Kind Regards,
Will
Guriddo Support Team
Hello,
I’m not sure that I understand the question correct.
If the data is PHP array data (when using array driver) – to be a honest we never test this situation.
If the data is JavaScript array – yes it will work, but again we are not sure that we understand the question.
Kind Regards,
Will
Guriddo Support Team
Hello,
Please, use the link provided and look into the page – scroll to the end of the page. The example with code is there. Clear the browser cache before to view.
Kind Regards,
Will
Guriddo Support Team
Hello,
There is a native way to use this. This is a grid event and is called rowattr.
This event is called when the new grid row is inserted. It can be used to set additional style and class attributes of the row dynamically. The event should return a object something like this {"style" : "somestyle", "class": "someclass"}.
Parameters passed to this events are the: array with the row data to be inserted and currobjq – the row represenrd in its native format (json or xml)
Below is example:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
$rowattr = <<< ROWATTR function(row, currobject, id) { if( row['myfield_to_compare'] === 'something' ) { return { "class" : "mycolorclass" }; } else { return {}; } } ROWATTR; $grid->setGridEvent('rowattr', $rowattr); ... |
Kind Regards,
Will
Guriddo Support Team
Hello,
Sorry, I do not understand what you mean. Did you mean file upload ? I mean this as definition.
Kind Regards
Guriddo Support Team
Hello,
Look at the same link – we have add a example . Do not forget to clear your browser cache before to view it here
Guriddo Support Team
Hello,
I do not understand initially what you mean.
Unfortunately when hideFirstGroupCol = true the data is not put into the grid and hence it can’t be displayed using the view method.
The trick is to use a second column with the same data, but hidden and then you can use the approach of edithidden property to display it
If you have difficulties with this, please let us know we can prepare a example – I hope you understand what I mean.
Kind Regards,
Will
Guriddo Support Team
Hello,
Please take a look at our new documentation here Lokk at edit rules edit hidden option.
Another similar option related to view form is viewable option in colModel
Kind Regards,
Will
Guriddo Support Team
Hello,
Thank you for selecting our product.
What you mean with moving files – from where to where? – local moving or server side moving or do you mean file upload?
Kind Regards,
Will
Guriddo Support Team
Hello,
The feature will be available end of July or beginning of August. It may be developed earlier – we will just inform you about this.
Sorry for delay – the Road-map is still in progress. Will be available very soon.
Kind Regards,
Will
Guriddo Support Team
Hello,
The problem is that the index name is used for sorting, while the name property is used for reading the data. You have replace these. In order this to work it is needed to replace the name property with the label and index property with the name.
The code is tested and it works:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
colModel: [ {"name": "id", "label": "ID", "width": 100}, {"name": "errorMessage", "label": "Error Message", "width": 100}, {"name": "dataSource", "label": "Source", "width": 100}, {"name": "dataTarget", "label": "Target", "width": 100}, {"name": "integrationStatus", "label": "Status", "width": 100}, {"name": "brand", "label": "Brand", "width": 100}, {"name": "recordCount", "label": "Record Count", "width": 100}, {"name": "inserted", "label": "Inserted", "width": 100}, {"name": "updated", "label": "Updated", "width": 100}, {"name": "failed", "label": "Failed", "width": 100}, {"name": "noAction", "label": "No Action", "width": 100}, {"name": "createdAt", "label": "Created At", "width": 100}, {"name": "updatedAt", "label": "Updated At", "width": 100} ], |
Kind Regards,
Will
Guriddo Support Team
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top