How to persist selection, data ordering, column order

QuestionsHow to persist selection, data ordering, column order
Cedric asked 12 months 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 12 months 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

3 Answers
Abu Ghufran Staff answered 12 months 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 12 months ago

worked fine thanks!

Avpman answered 2 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 2 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
 
Your Answer

4 + 18 =

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:

As you found this post useful...

Follow us on social media!

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

Let us improve this post!