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
205
XamGrid display template when grid has no rows
posted

Hello!

How do could I display inside XamGrid an message indicating that no data was found in the search? Basically, an empty template or something like that

 

Thanks!

Parents
No Data
Reply
  • 21382
    Suggested Answer
    posted

    The XamGrid does not support an empty collection template.  You could do this in two ways.  

    1) Modify the Style of the XamGrid and add an extra element into it's visual tree and extra visual states to your tree and when you have zero elements in your collection toggle to this visual state to show your element.

    2) In a similar fashion , add an element in the same container to the XamGrid and when you have no elements toggle it's opacity or visibility to show it over the XamGrid.

Children
No Data