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

dynamic readonly properties

5 Answers 300 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 1
Grant asked on 31 Oct 2011, 08:08 AM
Hi there,

I want to be able to do the following and don't seem to be able to:

Let's say I have property A, B and C.

  • A is a Boolean (checkbox).
  • If I choose A as checked option C is editable, otherwise option C is readonly.

Where/how do I override the enabled/readonly properties of the property definition based on another property's value/state?

I have disabled autopropertygeneration and am binding using my own xaml and model.

5 Answers, 1 is accepted

Sort by
0
Grant
Top achievements
Rank 1
answered on 02 Nov 2011, 09:54 AM
The closest I have come to a solution ( which is not ideal ) is by binding a wrapping element around it and binding to it:
                     <DataTemplate>
                                <Grid IsEnabled="{Binding HorizontalStartIsEnabled}">
                                    <Controls:RadNumericUpDown Value="{Binding HorizontalStart}" />
                                </Grid>
                            </DataTemplate>
0
Ivan Ivanov
Telerik team
answered on 03 Nov 2011, 08:51 AM
Hi Grant,

We plan to introduce a read-only mode for RadPropertyGrid in the near future. It will be available with the Q3 release. Please do not hesitate to contact us if any further inquiries related to RadControls occur.

Regards,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
David
Top achievements
Rank 1
answered on 01 Apr 2012, 03:15 PM
Any progress on a read only version of the property grid? I am using Q1 2012 and can't find anything.
0
Ivan Ivanov
Telerik team
answered on 02 Apr 2012, 09:12 AM
Hi David,

We have introduced an IsReadOnly property for both RadPropertyGrid and PropertyDefinition. Would you please test it and confirm whether this feature meets your requirements?

Kind regards,
Ivan Ivanov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
David
Top achievements
Rank 1
answered on 02 Apr 2012, 03:19 PM
My Bad :) Even though I had uninstalled the previous version of the controls and installed the Q1 2012 release I had forgotten to change all my references and my application was still picking up the older dlls from my build folder. As soon as I updated the refereces I found the IsReadOnly attribute exactly where I expected it and it worked fine.
Thanks
David Goughnour
Tags
PropertyGrid
Asked by
Grant
Top achievements
Rank 1
Answers by
Grant
Top achievements
Rank 1
Ivan Ivanov
Telerik team
David
Top achievements
Rank 1
Share this question
or