This is a migrated thread and some comments may be shown as answers.
Customizing ListControl
3 Answers 64 Views
This is a migrated thread and some comments may be shown as answers.
Juergen Holzer
Top achievements
Rank 2
Juergen Holzer asked on 08 Sep 2010, 05:32 PM

Hello!

I wanted to customize a listcontrol, so the items are shown horizontally side by side, without a scrollbarthumb and the scrollbuttons on the left/right side of the items.

 

I already customized the element with the ElementDesigner (removed the ScrollbarThumb and set the orientation of RadListElement/StackContainer to horizontal). But at runtime there is no difference (whole Scrollbar available and orientation vertical)

 

Maybe someone can tell me how to accomplish this. Maybe there is another control/way to realize this.

 

Thanks for any help!

Regards

Juergen

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Sep 2010, 08:20 AM
Hello Juergen Holzer,

Thank you for contacting us.

RadListControl does not support this mode. However, you can set the AngleTransform property of RadListElement to 90 degrees (refer to the attached screenshot) and after that, you should set the visibility of the vertical scroll bar on FormShown event. To do this, set the Visibility to Collapsed through the Edit UI Elements dialog and copy the serialized code from the InitializeComponent method to FormShown.

I hope this helps.

Regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Juergen Holzer
Top achievements
Rank 2
answered on 14 Sep 2010, 09:46 AM
Hello Peter!

Thanks for your great tip! I just added some more things to get my result:

AngleTransform set to 270
RightToLeft set true
TextOrientation set to Vertical
ItemHeight set to 100

So I have sort order left to right, text shown horizontal.

But scrolling with thumb doesn't work properly. I have to use the buttons. Maybe you have also an answer for this.

Thanks again!
Best regards
Juergen
0
Peter
Telerik team
answered on 17 Sep 2010, 03:46 PM
Hello Juergen Holzer,

Thanks for writing back.

I am afraid that this issue cannot be addressed. The scrollbar element has to swap the mouse coordinates in this case, but this cannot be managed with external code. Correct handling of this scenario should be implemented in a new scrollbar element with custom logic.

Do not hesitate to contact us if you have other questions.

All the best,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Asked by
Juergen Holzer
Top achievements
Rank 2
Answers by
Peter
Telerik team
Juergen Holzer
Top achievements
Rank 2
Share this question
or