Dynamically change Grid Datasource from local or remote

I am using EJ2 asp.net core Grid. 

I have 2 radio buttons. when user click on 

1 radio button - fetch local data only client side grid 

2 radio button - fetch remote data ajax call with server side pagination filtering and all. 


So now question is for 

1st radio button grid would have dataSource="viewbag.datasource".

2nd radio button grid would have e-data-manager url= and adapter=


so now how can i write both into one and dynamically switch local to remote or remote to local datasource ? without refreshing whole page.

Thanks. 


1 Reply

RR Rajapandi Ravi Syncfusion Team November 28, 2022 01:27 PM UTC

Hi Hiral,


Greetings from Syncfusion support


Before we start providing solution to your query, please share the below details that will be helpful for us to provide better solution.


1)          Please share your exact requirement scenario with detailed description.


2)          Please confirm for Local and Remote Grid, you are using same column name and datasource or different column and datasource.


3)          Share the details about what you like to switch the Grid from local to remote or remote to local.


4)          Share your use case scenario.


5)          Share your complete Grid rendering code for Local and remote data, we would like to check what are the features you are using in the Grid.


Regards,

Rajapandi R


Loader.
Up arrow icon