This is a migrated thread and some comments may be shown as answers.

Delaying Empty Content message until after first databind

3 Answers 52 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jon
Top achievements
Rank 1
Jon asked on 08 Jun 2011, 10:42 PM
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.

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 09 Jun 2011, 07:13 AM
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>>
0
Manuel Felício
Top achievements
Rank 1
answered on 09 Jun 2011, 05:32 PM
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.
0
Deyan
Telerik team
answered on 10 Jun 2011, 07:46 AM
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>>
Tags
DataBoundListBox
Asked by
Jon
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Manuel Felício
Top achievements
Rank 1
Share this question
or