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

We use cookies to improve your online experience. By accessing this site, you agree to the use of cookies and other technologies to process your personal data (e.g. IP address) to enhance and personalise your experience across our websites. Additionally, third-party companies, may store cookies on your device and use similar technologies to collect and use certain information. For more information, refer to our privacy policy and cookie policy.