Disable Expander if no Content to Expand

2 posts, 0 answers
  1. Dean
    Dean avatar
    4 posts
    Member since:
    Jan 2014

    Posted 21 Feb 2014 Link to this post

    Hello,

    I have an ExpanderControl in an ItemTemplate of a RadDataBoundListBox, all with data binding. I am using the default 'arrow' expander button.

    When expanding, I display some additional text content. It all works fine.

    However, in the case where this text content is empty, I would like to disable the expander button to disallow expansion since it is not relevant.

    Any suggestion how to do this?
                                   
    Thanks,
    Dean.

  2. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 24 Feb 2014 Link to this post

    Hello Dean,

    You can try using the IsEnabled or IsHitTestVisible properties. They control whether the user input is process by a given element or not.

    Regards,
    Deyan
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
  3. DevCraft banner
Back to Top