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

showgrouppanel for child table delete

5 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ranu
Top achievements
Rank 1
ranu asked on 16 Oct 2008, 09:11 AM
Hi team,

1)showgroup panel should be delete from child table and should appear in parent table.( gridview hierarchy)
2)change header column fontfamily only not for column's data(i.e in rows) in
parent table as well as child table in gridview hierarchy.
3)to have child table to child table in gridview hierarchy.


Thank you

5 Answers, 1 is accepted

Sort by
0
Dimitar Dobrev
Telerik team
answered on 17 Oct 2008, 12:23 PM
Hi Ranu,

Please refer to this thread.

All the best,
Dimitar Dobrev,
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
ranu
Top achievements
Rank 1
answered on 17 Oct 2008, 04:37 PM
Hi team,
Please reply
1)i want rows in expandable for parent .i.e when i run my application 
rad gridview should display it child table also without my selection at parent node.

2)how to iterate each row in radgridview hierarchy.

Thankyou.
0
Atanas
Telerik team
answered on 20 Oct 2008, 12:46 PM
Hello ranu,

As far as I understand, you want to show hierarchical RadGridView with expanded rows, and also a simple way to iterate RadGridView rows.

To show RadGridView in expanded mode I made a simple style with a EventSetter:

<Style TargetType="{x:Type telerik:GridViewExpandableRow}"
                <EventSetter Event="Loaded" Handler="GridViewExpandableRow_Loaded"/> 
            </Style> 





The GridViewExpandableRow_Loaded event hanlder is called every time a GridViewExpandableRow is loaded, so all I need to do is to implement the logic responsible for expanding the rows in the handler:

GridViewExpandableRow row = (GridViewExpandableRow) e.OriginalSource; 
            row.IsExpanded = true

About your second problem about iterating the rows, i wrote a simple recursive method, take a closer look at this:

private void IterateRows(IList<Record> records) 
        { 
            foreach (Record record in records) 
            { 
                if (record is ExpandableDataRecord) 
                { 
                    ExpandableDataRecord expandableRecord = (ExpandableDataRecord) record; 
                    IterateRows(expandableRecord.ChildRecordManagers[0].Records); 
                } 
 
                rows++; 
            } 
        } 


I'm attaching you a sample project.

Sincerely yours,
Atanas
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
venkateshwarreddy
Top achievements
Rank 1
answered on 22 Oct 2008, 10:26 AM
Hi Team,

I want to retrieve record ID of child table under particular parent record ID
  without using

ChildGridViewControl_Loaded --   event

Waiting for reply thank you.

0
Atanas
Telerik team
answered on 24 Oct 2008, 03:43 PM
Hi venkateshwarreddy,

I am not sure I understand your scenario. Our GridViewExpandableRecord does not contain a child table, it Records collection contains a subset of DataRecords. You can use the Data property of the DataRecord to retrieve the object particular record is bind to.

If this does not help you to solve your issue, please give me more details or send a sample project and I will do my best to help you.

All the best,
Atanas
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
GridView
Asked by
ranu
Top achievements
Rank 1
Answers by
Dimitar Dobrev
Telerik team
ranu
Top achievements
Rank 1
Atanas
Telerik team
venkateshwarreddy
Top achievements
Rank 1
Share this question
or