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

Radpropertygrid and AutoBindBehavior

2 Answers 141 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
rohith
Top achievements
Rank 1
rohith asked on 01 Jul 2018, 01:13 PM

Hi, 

I am using RadPropertyGrid in one of my projects. I have a set of dynamic values coming to the RadPropertyGrid. And I am using "PropertyGridDataTemplateSelector" to define datatemplate for each fields of the propertygrid based on the incoming data.

I am able to use Togglebutton and AutoBindBehavior.UpdateBindingOnElementLoaded="IsChecked" on the DataTemplate for boolean Types.

Similarly I want to use a customized usercontrol for a user-defined datatype. So I created a dependency property in the usercontrol and tried to do AutoBindBehavior.UpdateBindingOnElementLoaded="<dependencyProperty>". But it is not working. 

The Datatemplate is working but AutoBindBehavior.UpdateBindingOnElementLoaded="<dependencyProperty>" is not setting anything to the dependencyProperty of the usercontrol.

 

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
rohith
Top achievements
Rank 1
answered on 02 Jul 2018, 04:20 PM
Hi,
I am totally stuck here. Please provide some tips.

Thanks,
Rohith Mathew
0
Stefan
Telerik team
answered on 04 Jul 2018, 04:01 PM
Hi Rohith,

Although I am not familiar with your exact setup, most probably this behavior is due to a binding failure. You can verify this by running the application in debug mode in Visual Studio and observing the Output window. Can you please check this out? Can you please clarify what is the exact requirement that you are trying to achieve? What control are you defining in the custom UserControl?

Regards,
Stefan
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
PropertyGrid
Asked by
rohith
Top achievements
Rank 1
Answers by
rohith
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or