This is a migrated thread and some comments may be shown as answers.

[Solved] localization loss when refreshing grid with Jquery

0 Answers 69 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Francesca
Top achievements
Rank 1
Francesca asked on 15 Feb 2012, 02:37 PM
Hi, I have a grid with .Localizable("sv-SE")

When I rebind grid data with following jQuery function it looses all formatting incl. localization. Is there a way to reset the localization settings thru jQuery?

  $.ajax({
                            type: "POST",
                            url: '@Url.Action("_ReloadSearchResults")',
                            data: JSON.stringify(search),        
                            contentType: "application/json; charset=utf-8",
                            dataType: "json",


                            success: function (data) {                                              
                                var grid = getGrid("LedgerGrid");                                             
                                        grid.dataBind(data);                                      
                                        grid.render();                          
                                },
                            error: function (xhr, ajaxOptions, thrownError) {                             
                                AjaxLoadDown();                               
                                }
                        });
Tags
Grid
Asked by
Francesca
Top achievements
Rank 1
Share this question
or