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

Do not allow user to select item

2 Answers 126 Views
ComboBox and ListBox (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Slade
Top achievements
Rank 2
Richard Slade asked on 17 Aug 2009, 02:47 PM
Hello,

I would like to not allow the user to select an item in my radListBox. I have set the selection mode to none, but this still places a border around the edge of the item. How can I ensure that items do not show as selected in any visible way?

Thanks

Richard

2 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 18 Aug 2009, 11:26 AM
Hi Richard Slade,

Thank you for contacting us. As far as I understand the issue is about the visual part of the selection in RadListBox. In order to remove the selection border that appears you should customize the theme that you are using. Here is a step by step tutorial:

     1. Select the RadListBox, click on the Smart Tag and select Open Theme Builder.

     2. Now click on one of the items, so that the item border is painted in red. You can also navigate the TreeView that appears on the left of the screen using the following path: RootRadElement-> RadListBoxElement-> RadScrollBarLayoutPanel-> RadVirtualizesStackViewport-> RadListBoxItem-> BorderPrimitive

     3. Delete all the states of the BorderPrimitive by removing the tabs that appear in the bottom part of Visual Style Builder. Further, Save your theme (Please, note that the name of the theme that appears in the upper right corner should be the same as the name of the theme you want to use in your application)

     4. Now you can apply your custom theme to the RadListBox via RadThemeManager

For your convenience, I have already customized the ControlDefault theme. If you encounter any difficulties customizing your own theme, please, let me know which theme you are using. I will be glad to customize it for you.

Greetings,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Richard Slade
Top achievements
Rank 2
answered on 20 Aug 2009, 08:52 AM
Many thanks. Great
Tags
ComboBox and ListBox (obsolete as of Q2 2010)
Asked by
Richard Slade
Top achievements
Rank 2
Answers by
Boryana
Telerik team
Richard Slade
Top achievements
Rank 2
Share this question
or