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

Grid MVC Databinding

1 Answer 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 18 May 2015, 08:08 PM

Hello everyone,

 

I'm currently testing the Kendo Ui, especially the Grid, in an ASP.NET MVC - Environment and I'm a bit confused by the AJAX-Databinding.

The grid is constructed with the Kendo MVC GridBuilder in a razor-view.

There are multiple columns that are set to visible / invisible dynamically.

Everything was working like a charm until I've inspected the network-traffic that showed me, that the JSON-Result contains every column of the IEnumerable the grid is bound to, also the ones that are not even mentioned in the Columns-section.

Is there a way to turn this off and only download the data that is actually needed?

 

Thanks.

 

Kind regards,

 

Stefan

 

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 20 May 2015, 07:49 AM

Hello Stefan,

The Grid will retrieve all properties of the Model that it is currently bound to. If this is not required, you could construct a viewModel, bind the Grid to it and extract only the needed data. This is demonstrated on the following documentation page.

Regards,
Dimiter Madjarov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
Stefan
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Share this question
or