Grid MVC Databinding

2 posts, 0 answers
  1. Stefan
    Stefan avatar
    1 posts
    Member since:
    May 2015

    Posted 18 May 2015 Link to this post

    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?




    Kind regards,




  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2311 posts

    Posted 20 May 2015 Link to this post

    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.

    Dimiter Madjarov
    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
Back to Top