DataSet Model binding in kendo mvc grid

1 Answer 47 Views
Grid
Todd
Top achievements
Rank 1
Todd asked on 24 Apr 2024, 08:58 PM

Hi,

I have a requirement where backend will send a dataset with multiple datatables as model to UI and I need to display grids for each table of dataset. I am not able to find any solution to use server binding with the datable to the grid.

Any help/suggestions would be appreciated..

1 Answer, 1 is accepted

Sort by
0
Alexander
Telerik team
answered on 29 Apr 2024, 01:29 PM

Hi Todd,

Based on my initial research I gathered that the DataSet abstraction is essentially a list of DataTables. Thus, for handling this scenario my personal recommendation would be to decompose each of the DataTables as standalone units and transpose them to existing Grid representations:

I have had a similar discussion in another public forum where I demonstrate an approach to how a singular DataTable instance can be bound to the Grid which you might find helpful in this regard:

"Although the sample showcases a scenario for one singular DataTable, the same principles apply if multiple DataTable are to be introduced."

I hope this information proves helpful.

Kind Regards,
Alexander
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages. If you're new to the Telerik family, be sure to check out our getting started resources, as well as the only REPL playground for creating, saving, running, and sharing server-side code.
Todd
Top achievements
Rank 1
commented on 29 Apr 2024, 06:41 PM

Hi Alexander,

I already went through the answer but that is not helping our requirements.

Here is  the exact scenario.
From UI, user selects a procedure name and we need to display the results of it in UI.  each proc may have different number of data tables as output. So I can't go with ajax binding and needed only model binding(server side binding).

Alexander
Telerik team
commented on 30 Apr 2024, 04:29 PM

I'm afraid that using local binding with DataTables is not supported in the Telerik UI for ASP.NET Core. In Core, you'll have to use the approach with the Ajax request.

More discussion on an identical topic has been discussed within the following forum post:

The main reason is that the UI for ASP.NET Core Grid does not have server rendering, which is used with UI for ASP.NET MVC to render local data, for example. 

Tags
Grid
Asked by
Todd
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Share this question
or