Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
190
igGrid DataSource to Model
posted

I have MVC model Customer and it include IEnumerable Addresses property.
I also specify in @Model Customer


Is any way that i can specify .DataSource = "Addresses" or i have to have a method with attribute [GridDataSourceAction]. If so, how can i pass key to that method to pull Customer addresses?

  • 190
    posted

    Fixed by

    .DataSourceUrl(Url.Action("action", "controller",new { id = Model.Id }))

    Not sure if its correct way