NewRowPosition hidden in HierarchyChildTemplate

6 posts, 0 answers
  1. luc
    luc avatar
    24 posts
    Member since:
    Aug 2011

    Posted 28 Apr 2014 Link to this post

    Hi,

    (I'm using the Telerik version 2014.1.331.45)

    I define a RadGridView with an another RadGridView Inside its HierarchyChildTemplate, like this :
    <telerik:RadGridView ItemsSource="{Binding Customers}" GroupRenderMode="Flat" AutoGenerateColumns="False" NewRowPosition="Bottom">
        <telerik:RadGridView.ChildTableDefinitions>
            <telerik:GridViewTableDefinition/>
        </telerik:RadGridView.ChildTableDefinitions>
        <telerik:RadGridView.HierarchyChildTemplate>
            <DataTemplate>
                <Grid>
                <!-- If NewRowPosition = Top the row appear, otherwise hidden-->
                <telerik:RadGridView ItemsSource="{Binding Orders}" GroupRenderMode="Flat" NewRowPosition="Bottom">
                     
                </telerik:RadGridView>
                </Grid>
            </DataTemplate>
        </telerik:RadGridView.HierarchyChildTemplate>
        <telerik:RadGridView.Columns>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName}" Header="Prenom"/>
            <telerik:GridViewDataColumn DataMemberBinding="{Binding LastName}" Header="Nom"/>
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>

    If the NewRowPosition is set to bottom the "Click to add a new item" don't appear, if set to Top its work.
    Do you have a workaround to be able to use bottom instead Top ?

    Thanks,

    Luc 
  2. Yoan
    Admin
    Yoan avatar
    1215 posts

    Posted 28 Apr 2014 Link to this post

    Hi Luc,

    I've tried to reproduce the problem you report, but to no avail. I have prepared a sample project based on the code snippet you provided. You can find it attached. Please give it a try and let me know how it works on our side.

    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. luc
    luc avatar
    24 posts
    Member since:
    Aug 2011

    Posted 28 Apr 2014 in reply to Yoan Link to this post

    Hi Yoan,

    It's worked with your sample, so it's link with the telerik dll used. I'm using NoXaml dll with Office2013 theme.
    You can found a sample here

    Thanks
    Luc
  4. Yoan
    Admin
    Yoan avatar
    1215 posts

    Posted 28 Apr 2014 Link to this post

    Hi Luc,

    I've also tried to reproduce the problem with Office2013 theme and our latest official version - 2014.1.0331.45 (NoXAML) but to no avail. Please check the updated sample project for a reference. 

    Would it be possible to let me know what exactly version of RadGridView you are using?

    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  5. luc
    luc avatar
    24 posts
    Member since:
    Aug 2011

    Posted 28 Apr 2014 in reply to Yoan Link to this post

    Hi Yoan,

    In fact, it's occurs only when they are no childs in one main row, please in your sample comment all players in Liverpool club (GetClubs function) and you will see that the "Add new player item" disappear for this club. For others clubs where the list is not empty the "Add new item" is correct.

    Regards
    Luc
  6. Yoan
    Admin
    Yoan avatar
    1215 posts

    Posted 29 Apr 2014 Link to this post

    Hi Luc,

    As it turns out, this is known issue. It is logged into our Feedback portal as a bug report. You can track its status: here.

    Regards,
    Yoan
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top