How to persist selection, data ordering, column order

QuestionsHow to persist selection, data ordering, column order
Cedric asked 2 years ago

Hello,
I have tried to follow the FAQ to allow persistance on selection, order, and column, but it does not work.
When looking at the debug, I can see that all included js have been blocked due to mime incomptaibility.
 
 
 

Cedric replied 2 years ago

SEC7112: Le script de https://bitbucket.org/rpgkaiser/jqgridstate/raw/5e813d0b6c7241705848c37dc068239aac53e3b9/jqGrid.state.js a été bloqué à cause d’une incompatibilité de type mime

5 Answers
Abu Ghufran Staff answered 2 years ago

Use these external files. Faqs links are outdated and will be updated soon.
<!– library for persistance storage –>
<script src=”//cdn.jsdelivr.net/jstorage/0.1/jstorage.min.js” type=”text/javascript”></script>
<script src=”//cdn.jsdelivr.net/json2/0.1/json2.min.js” type=”text/javascript”></script>
<script src=”//cdn.rawgit.com/gridphp/jqGridState/63904a57244ef89fa58ca0fa146da8e2e6e4d395/jqGrid.state.js” type=”text/javascript”></script>

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Cedric replied 2 years ago

worked fine thanks!

Avpman answered 10 months ago

Hi,

Where are the persistence settings stored? In cookies or other file on the local PC? Or remotely somewhere?

Thanks!

 

Abu Ghufran Staff answered 10 months ago

They are currently stored in browser local storage.

If you want to store it in database, you can get serialized data and save/load it from db.

Refer demos/misc/persist-settings.php code.

_________________________
Abu Ghufran - Dev Team
PHP Grid Framework
 
Melissa answered 1 month ago

Hi,

the persist-setttings demo is broken. I have a similar question in that I want to persist filter values e.g. text fields and dropdown after grid reload. I think setting session variables should work but not sure how to go about it. Thanks.

https://imgur.com/a/20dI0fv

Abu answered 1 month ago
Your Answer

16 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating / 5. Vote count:

We are sorry that this post was not useful for you!

Let us improve this post!