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

Outlook bar Clear

1 Answer 44 Views
OutlookBar
This is a migrated thread and some comments may be shown as answers.
Syed Danish
Top achievements
Rank 1
Syed Danish asked on 05 Jan 2011, 06:30 AM
Hi,

I am using your outlookbar control for Silverlight 4. Our requirement is to clear the items in the outlookbar from time to time. We are using the items.clear method. It is working fine sometimes and clearing the items but sometimes it is not working. Please do let me know what is the best way to clear the items in the outlookbar.  We are working with Silverlight 4.

Thanks and Regards,
Syed Danish

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 05 Jan 2011, 06:24 PM
Hello Syed Danish,

Supposing your RadOutlookBar is named "outlookBar" and it is populated declaratively, you should clear its Items with :   
this.outlookBar.Items.Clear(); 
But you cannot use this approach if your outlookbar is databound. In this case you can use:
this.outlookBar.ItemsSource = null;
If this doesn`t fit in your scenario we would highly appreciate if you send us a runnable sample showing the issue you have come up with. Thank you in advance.




Kind regards,
Petar Mladenov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
OutlookBar
Asked by
Syed Danish
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or