AutoGeneratePropertyDefinitions

10 posts, 0 answers
  1. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 27 Sep 2012 Link to this post

    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


  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Sep 2012 Link to this post

    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.

  3. DevCraft banner
  4. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 28 Sep 2012 Link to this post

    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}"/>
  5. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 28 Sep 2012 Link to this post

    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.

  6. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 29 Sep 2012 Link to this post

    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
  7. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 29 Sep 2012 Link to this post

    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.

  8. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 29 Sep 2012 Link to this post

    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
  9. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 03 Oct 2012 Link to this post

    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.

  10. tomas
    tomas avatar
    139 posts
    Member since:
    Sep 2012

    Posted 10 Oct 2012 Link to this post

    Hi TElerik,

    Are there any news about the exceptions?

    Thank you Tom
  11. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 12 Oct 2012 Link to this post

    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.

Back to Top
DevCraft banner