Delaying Empty Content message until after first databind

4 posts, 0 answers
  1. Jon
    Jon avatar
    2 posts
    Member since:
    May 2011

    Posted 08 Jun 2011 Link to this post

    We define EmptyContent and it shows even before the ListBox has been bound to the datasource. Is there any easy declarative way (without having to use code behind if possible) to tell the list box to show the empty content only after a databinding. 

    The default behaviour is annoying because it shows the empty content when the app first loads up.
  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 09 Jun 2011 Link to this post

    Hello Jon,

    Thanks for contacting us and for your question.

    The EmptyContent is shown when the control is not bound to a data source or when there is a data source which is empty. This is the behavior by design. Could you please share some more details on the way you would like to have this content shown so that we can better understand it and possibly improve it?

    Thanks for your time.

    Regards,
    Deyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft banner
  4. Manuel Felício
    Manuel Felício avatar
    64 posts
    Member since:
    Oct 2009

    Posted 09 Jun 2011 Link to this post

    How about adding an IsBusy property?

    The listbox should only display EmptyContent when it has no data to show or isn't bound to anything and IsBusy=false. This way we don't have to set Visibility Collapsed until we have data to show.
  5. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 10 Jun 2011 Link to this post

    Hello Manuel,

    There is an IsBusy property and also a BusyContent and BusyContentTemplate property which define what will be displayed when the IsBusy property is set to true. This functionality is in RadControls for Windows Phone 7 Q2 2011 Beta.

    This version is available for download from your account, you can take a look at them and do not hesitate to share any feedback you might have.

    All the best,
    Deyan
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top