Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Persist state issues

$
0
0

Hi,

I faced the same issue and I found this way to solve it:

                    $("#load").click(function (e) {
                        e.preventDefault();
                        var toolBar = $("#Grid .k-grid-toolbar").html();
                        
                        var options = localStorage["kendo-grid-options"];
                        if (options) {
                            grid.setOptions(JSON.parse(options));
                            $("#Grid .k-grid-toolbar").html(toolBar);
                            $("#Grid .k-grid-toolbar").addClass("k-grid-top");
                        }
                    }); 

Regards.


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>