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

AutoGeneratePropertyDefinitions

9 Answers 148 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
tomas
Top achievements
Rank 1
tomas asked on 27 Sep 2012, 11:12 PM
Hi Telerik,

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

Sort by
0
Maya
Telerik team
answered on 28 Sep 2012, 06:53 AM
Hello Tomas,

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 ?   

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.

0
tomas
Top achievements
Rank 1
answered on 28 Sep 2012, 09:19 AM
Hi Maya,

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}"/>
0
Maya
Telerik team
answered on 28 Sep 2012, 01:30 PM
Hi Tomas,

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.

0
tomas
Top achievements
Rank 1
answered on 29 Sep 2012, 03:17 PM
Hi Maya,
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
0
Maya
Telerik team
answered on 29 Sep 2012, 03:43 PM
Hi Tomas,

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. 

All the best,
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.

0
tomas
Top achievements
Rank 1
answered on 29 Sep 2012, 05:35 PM
Hello Maya,

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
0
Maya
Telerik team
answered on 03 Oct 2012, 03:13 PM
Hi Tomas,

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.  

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
tomas
Top achievements
Rank 1
answered on 10 Oct 2012, 11:21 AM
Hi TElerik,

Are there any news about the exceptions?

Thank you Tom
0
Maya
Telerik team
answered on 12 Oct 2012, 02:34 PM
Hello Tomas,

I have found the cause of the problem and the fix will be available most probably in our next internal build. 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PropertyGrid
Asked by
tomas
Top achievements
Rank 1
Answers by
Maya
Telerik team
tomas
Top achievements
Rank 1
Share this question
or