Grid datasource depends on sessionStorage

Hi!

I have a grid which loads like this:

 @(Html.EJ().Grid<object>("ResourcesGrid" + i)
                        .Datasource(ds => ds.URL(Url.Action("CustomResourcesDataSource", "Resource", new {requestSource = "home", resTypeId = Model[i].Id})).Adaptor(AdaptorType.UrlAdaptor))


See, behind the scenes, in that CustomResourcesDataSource I am sending some values that are loaded (in document ready) from sessionStorage.

problem is that grid seems to be loading BEFORE those variables are initialized from sessionStorage (doc ready)

what are my options here?

2 Replies

CR Catalin Radoi May 28, 2020 10:29 AM UTC

OK I found the solution meanwhile.

I used the .ActionBegin("begin"))


MP Manivannan Padmanaban Syncfusion Team May 29, 2020 05:18 AM UTC

Hi Catalin, 

Greetings from Syncfusion Support. 

We are happy to hear that the reported problem has been resolved.  

Kindly get back to us, if you need further assistance. We will be happy to assist you. 

Regards, 
Manivannan Padmanaban  


Loader.
Up arrow icon