Awesome ASP.net Core and MVC Controls

Grid client side API





Client side api is called by doing $('#gridId').data('api') and an api method

  • .reset() - will bring the grid back to the initial state defined in the markup
  • .load({group, sort, params}) - loads the grid with the specified grouping rules, sorting and additional parameters, if a property is omitted than the grid won't change it's state for that property; for example calling .load({group: ['Food', 'Location']}) will change the grouping but won't affect the current sorting rules
  • .clearpersist() - clears the persistence data
Html.Source("GridDemo/ClientSideApi.cshtml")
Html.Code("Awesome/Grid/LunchGridController.cs")

Events




Comments