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

Converting from ListBox to DataBoundListBox

7 Answers 168 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.
Phil
Top achievements
Rank 1
Phil asked on 22 Mar 2011, 09:21 PM
I've got a plain ListBox and I wanted to convert it to a DataBoundListBox simply by changing the element name in the XAML - this almost worked, apparently DataBoundListBox does not have an ItemsPanel template property - how would I convert that template over to DataBoundListBox?

7 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 23 Mar 2011, 08:01 AM
Hello Phil,

Thanks for contacting us and for your question.

The RadDataBoundListBox control does not have the ItemsPanel property since it does not support this functionality. The idea of RadDataBoundListBox is to provide the functionality of the standard ListBox by significantly improving its performance and still providing UI virtualization capablities.

Could you please share with us some further details on your scenario so that we can consider similar cases for future releases? 

Best wishes,
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
Phil
Top achievements
Rank 1
answered on 24 Mar 2011, 03:30 AM
I'm mimicking the appearance of the start menu by overriding the ListBox ItemsPanel template to use a WrapPanel, and then the Item template is an accent-colored square.
0
Deyan
Telerik team
answered on 24 Mar 2011, 08:02 AM
Hello Phil,

Thanks for getting back to us and for the provided details.

For this scenario, you could use the standard ListBox control and RadWrapPanel as an items panel. RadDataBoundListBox currently uses only one layout strategy - the one of a vertical stack panel - and performs UI virtualization in this context. It is possible to extend the virtualization mechanism to support different layout strategies but I cannot give you an exact confirmation of whether or when we will implement this.

Do not hesitate to get back to us in case of further questions.

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
Matthew
Top achievements
Rank 1
answered on 12 Nov 2011, 05:16 PM
Well really the good reason to allow the 'WrapPanel' functionality in the RadDataBoundListBox is consistency. I think it would be nice to be able to choose just one type of list box in an app and stick with it. My reasons would be the EmptyContent functionality of Telerik version of the ListBox. I've mimicked it, yeah, with extra value converters and what-not, so that I can Wrap content. It would just be nice to have xaml that looks the same in each page instead of Rad here and List there on each page.

Maybe that makes sense. :-)
0
Deyan
Telerik team
answered on 14 Nov 2011, 08:23 AM
Hi Matthew,

Thanks for getting back to us and for your feedback.

Indeed, you're completely right. We will structure our development plans in this direction and I hope that we will be able to provide an out of the box support for virtualized wrap layout in RadDataBoundListBox very soon.

Do not hesitate to get back to us in case you have further questions or need assistance.

All the best,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Thomas
Top achievements
Rank 1
answered on 08 Jan 2012, 08:10 AM
The orientation is most likely what was needed to be changed from a top to bottom -> left to right.  While RadSlideView would be a good alternative that is already available, it is more for pictures and slideshow like information.  A list could have more than just a single middle item and a hint that there are more on the left and right.  To change a listbox's orientation, you set the stackpanel's orientation and alter the scrollbar modes.  With RadDataBoundListBox, you cannot change the orientation.  It would be nice to have a simple toggle for orientation that would take care of both of these steps for us in a future release.

Thomas Mullen
tjmullenpresents.com
0
Deyan
Telerik team
answered on 09 Jan 2012, 02:40 PM
Hi Thomas,

Thanks for writing and for your suggestion.

I would like to inform you that this feature (scrolling orientation support in DataBoundListBox) is already in the works and we hope that it will be available for Q1 2012.

Let me know if you have further questions or need assistance.

Regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
DataBoundListBox
Asked by
Phil
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Phil
Top achievements
Rank 1
Matthew
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Share this question
or