Disable Selection for Some of the dropdown items

3 posts, 0 answers
  1. Shengwei
    Shengwei avatar
    12 posts
    Member since:
    Sep 2012

    Posted 13 Jun 2013 Link to this post


    I want to know if there is anyway i can DISABLE a selection for a particular item in the dropdown list?

    i have a list of objects bind to the dropdown list, and i want to disable some of the items from selection using data trigger based on one of the object's property.

  2. Kalin
    Kalin avatar
    1208 posts

    Posted 18 Jun 2013 Link to this post

    Hi Shengwei,

    I'm afraid that currently there isn't a straightforward approach to achieve the described scenario.

    Thank you for your feedback, we will consider this particular case for the future releases of the control.


    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Shengwei
    Shengwei avatar
    12 posts
    Member since:
    Sep 2012

    Posted 20 Jun 2013 Link to this post

    Thank you for your reply.

    Currently i had a "half" working solution which is to set the styling of RadListBoxItem since the dropdown is a radlistbox

    <modules:AutoCompleteItemToFocusableConverter x:Key="ac2fConverter"/>
    <Style TargetType="telerik:RadListBoxItem">
            <DataTrigger Binding="{Binding Converter={StaticResource ac2fConverter}}" Value="False">
                <Setter Property="IsHitTestVisible" Value="False"/>

    but the above doesnot prevent the keydown selection however it does prevent cursor selection.

    or we can using 

    <Setter Property="IsEnabled" Value="False"/>

    however the styling of the individual item will be gone since it is disabled, i need to overwrite the default style for the disalbed.

    but thanks for your reply 

Back to Top