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

Disable Expander if no Content to Expand

1 Answer 90 Views
ExpanderControl
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dean
Top achievements
Rank 1
Dean asked on 21 Feb 2014, 07:28 AM
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.

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 24 Feb 2014, 08:13 AM
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.
Tags
ExpanderControl
Asked by
Dean
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or