How to persist selection, data ordering, column order

QuestionsHow to persist selection, data ordering, column order
Cedric asked 6 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 6 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 6 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
Grid 4 PHP Framework
 
Cedric replied 6 years ago

worked fine thanks!

Avpman answered 6 years 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 6 years 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
Grid 4 PHP Framework
 
Melissa answered 5 years 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 5 years ago
Your Answer

11 + 19 =

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 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

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

Let us improve this post!

Tell us how we can improve this post?