Please is it normal that when
AutoGeneratePropertyDefinitions = true
then property grid is not working?
Try to set the item property to form example your RadGridView - crashing at once. Even such a basich control like Button is not working. The Content property is not updated like many other properties. It seems to me, that the only way, how to solve this is to create all property definitions manually which will be really horrible. I would like to build something like FORM BUILDER.
Am I wrong? Thank you very much.
tom
PS sorry for the red color, I dont know how to change it
9 Answers, 1 is accepted
Generally, there should be no problems to work with AutoGeneratePropertyDefinitions = "True". Will it be possible to provide a bit more information on your exact scenario ? Is it similar to the one in our demos ? Is there anything more specific that you do ? Which version of RadControls are you working with ?
Maya
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
My version is 2012.2.725.1050
Try something like this: It is crashing (not loading at all). I have also problem with this editor. For example I cannot place carret bellow the source code.
Thank you very much.
Tom
Telerik:RadGridView
Grid.Row
=
"0"
x:Name
=
"MyTelerikGrid"
/>
<
telerik:RadPropertyGrid
x:Name
=
"MyPropertyGrid"
Grid.Row
=
"1"
Grid.Column
=
"1"
AutoGeneratePropertyDefinitions
=
"True"
AutoGenerateBindingPaths
=
"True"
Item
=
"{Binding ElementName=MyTelerikGrid}"
/>
Indeed, I managed to reproduce the issue when binding RadPropertyGrid Item property to an instance of RadGridView. I will investigate the issue and let you know once I have more information.
In the meantime, you could try setting the Item once the grid is loaded. For example:
private void MyTelerikGrid_Loaded(object sender, RoutedEventArgs e)
{
this.MyPropertyGrid.Item = this.MyTelerikGrid;
}
Greetings,
Maya
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
I dont believe, that you have tested your hint, it is not working too.
Anyway, you did not answer me, why the Content property of the Button control cannot be set using your property grid, when
AutoGeneratePropertyDefinitions = true.
Thank you.
Tom
I retested the scenario I suggested with RadGridView and indeed it results in exception as well. I will make further investigation on the issue to check what is going on.
Considering binding property grid to button, I was not able to reproduce any errors. Please take a look at the sample attached and let me know whether I am missing something.
Maya
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
No, it is stil not working.
Just try It. You can change the content property, leave the content row and the button is stil heaving Button content. Some properties are working, some do not.
For example, you can change for example Height, FontSize, the effect is visible, but when you change BorderThicknes, Content, FontStyle, FontWeight, ... it has no effect.
It seems to me, AutoGeneratePropertyDefinisions is not working for updating the properties, so it is useless.
:-(
Thank you.
Tom
The case with updating Content property of a button is an expected one. The reason is that Content is of type object with can be anything - image, TextBlock, RadGridView, simple string value, etc.. That is why it is considered as non-editable and the binding for it is OneWay.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
Are there any news about the exceptions?
Thank you Tom
I have found the cause of the problem and the fix will be available most probably in our next internal build.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.