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

Adding Button in Footer of RadGridView

3 Answers 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Shashank
Top achievements
Rank 1
Shashank asked on 02 Dec 2011, 06:22 AM
hi all,

I want to add Button in Footer of Rad Grid View.I want to Know whether it is possible or not??and Second issue is I want to bind a list to HierarchyChildTemplate  radgridview of another radgridview.is dis possible?

Regards,
Shashank

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Dec 2011, 08:00 AM
Hello Shashank,

I would recommend you to run through this demo for a reference. Considering the hierarchy, I would suggest to look at our online documentation for additional information.

Best wishes,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Shashank
Top achievements
Rank 1
answered on 02 Dec 2011, 10:22 AM
Hi maya,
thnx fr reply..but i have already seen tese demo.I want to use one add button in footer.can we use button inside aggregate functions..??
0
Shashank
Top achievements
Rank 1
answered on 02 Dec 2011, 11:19 AM
Thnx..., i got my solution,in every column,v cn provide footer using this code:
 
<telerik:RadGridView x:Name="radGridView2" ShowColumnFooters="True" CanUserInsertRows="True" BorderThickness="0,1,0,1" GridLinesVisibility="None" CanUserFreezeColumns="False" AutoGenerateColumns="False" ItemsSource="{Binding lstOperationProfile}"  ShowGroupPanel="False" IsReadOnly="False">
                           <telerik:RadGridView.Columns>
                               <telerik:GridViewDataColumn IsReadOnly="False" Width="200" Header="OperationID" DataMemberBinding="{Binding Operation}">
                                   <telerik:GridViewColumn.Footer>
                                       <telerik:RadButton x:Name="Add"  Content="AddNewRow" Command="telerikGrid:RadGridViewCommands.BeginInsert" CommandTarget="{Binding ElementName=radGridView1}"  />
                                   </telerik:GridViewColumn.Footer>      
                               </telerik:GridViewDataColumn>
                               <telerik:GridViewDataColumn IsReadOnly="False" Width="200" Header="OperationName" DataMemberBinding="{Binding TimeHrs}"   />
                               <telerik:GridViewDataColumn IsReadOnly="False" Width="200" Header="OperationTime" DataMemberBinding="{Binding TimePercen}" />
                               <telerik:GridViewDataColumn IsReadOnly="False" Width="200" Header="LoadOnGensets" DataMemberBinding="{Binding LoadOnGensets}"/>
                               <telerik:GridViewDataColumn IsReadOnly="False" Width="200" Header="Total" DataMemberBinding="{Binding Total}"  />
                           </telerik:RadGridView.Columns>
                       </telerik:RadGridView>
Tags
GridView
Asked by
Shashank
Top achievements
Rank 1
Answers by
Maya
Telerik team
Shashank
Top achievements
Rank 1
Share this question
or