Sunday, October 16, 2016

how to conditionally hide a DevExpress grid if the model bound (a collection) has no records

settings.ClientVisible = Model.Any();
settings.ClientSideEvents.EndCallback = "function(s,e) { s.SetVisible (
      s.GetVisibleRowsOnPage() > 0 ); }";

No comments:

Post a Comment