Grid Client Side API




Drag a column header and drop it here to group by that column
Id
Person
Food
Price
Date
Location
3675MaryShepherd's pie1811/19/2022Diner
3671JeremyPizza796/13/2010Tavern
3667JohnCheesecake1009/25/2015Restaurant
3663MichaelHot Beverage202/13/2012Visit
3659GabrielleFrench toast455/19/2016Tavern
3655LucyBig Salad704/3/2019Tavern
3651CheyenneBig Salad7011/1/2017Visit
3647JonahShepherd's pie234/27/2020Visit
3643FernandoSoup505/7/2010University
3639AudreyShepherd's pie705/17/2011University

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

  • .load({ reset: true }) - will bring the grid back to the initial state defined in the markup
  • .load({group, sort, params, oparams}) - 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

Events 




Comments