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

NewRowPosition hidden in HierarchyChildTemplate

5 Answers 117 Views
GridView
This is a migrated thread and some comments may be shown as answers.
luc
Top achievements
Rank 1
luc asked on 28 Apr 2014, 09:14 AM
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 

5 Answers, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 28 Apr 2014, 11:07 AM
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.
 
0
luc
Top achievements
Rank 1
answered on 28 Apr 2014, 01:11 PM
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
0
Yoan
Telerik team
answered on 28 Apr 2014, 02:36 PM
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.
 
0
luc
Top achievements
Rank 1
answered on 28 Apr 2014, 03:03 PM
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
0
Yoan
Telerik team
answered on 29 Apr 2014, 08:42 AM
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.
 
Tags
GridView
Asked by
luc
Top achievements
Rank 1
Answers by
Yoan
Telerik team
luc
Top achievements
Rank 1
Share this question
or