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

RadGrid nested items tobe displayed in rows of single RadGrid.

11 Answers 94 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Harish
Top achievements
Rank 1
Harish asked on 26 Apr 2012, 09:52 AM
Hi Team,
                              I was exploring the Rad GridView Item for a requirement, where the gridview Items are compounded i.e. one with in other - nested to nth level(i.e. folder with in folder... folder so on ). I was looking for feature where on cliking the rowitem it should display the item nested with in it immediately below it rather in another GridviewItem or RadTabItem and the  nesteing  can be up  to nth level. Is this possible using RadGridview Item. Any suggestion/help on this would be of gr8 help.

Regards
HSR.

11 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 26 Apr 2012, 09:58 AM
Hello Harish,

You may check our RadTreeListView component which I believe may suite your requirement.

All the best,
Pavel Pavlov
the Telerik team

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

0
Harish
Top achievements
Rank 1
answered on 26 Apr 2012, 10:31 AM
Hi Pavel,
                    Thanks for your prompt response, well the requirement is specific to  GridView and cannot use TreeLIst can you please confirm if this is doable or not using GridView. To clarifiy to what I have mentioned attached is the screen shot.

0
Pavel Pavlov
Telerik team
answered on 26 Apr 2012, 11:44 AM
Hello Harish,

Our RadTreeListView is based on RadGridView. I confirm that the layout from the screenshot attached is achievable with RadTreeListView ( not RadTreeView).

Kind regards,
Pavel Pavlov
the Telerik team

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

0
Vlad
Telerik team
answered on 26 Apr 2012, 11:47 AM
Hello,

 Just a quick follow up!

You can use the approach from this post with RadGridView to simulate treelist like structure.  

Kind regards,
Vlad
the Telerik team

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

0
Harish
Top achievements
Rank 1
answered on 26 Apr 2012, 12:06 PM
Hi Pavel,
                   "I confirm that the layout from the screenshot attached is achievable with RadTreeListView"

The screenshot attached was not specific to RadTreeViewList it's a free source sample application code and has got some performance issues.

@Vlad : The link you provided is tied up with percormance issue not with what I have requested for.

Although, I had a look @ RadTreeListView it cannot be  used as it's lacking grouping functionality of items.
0
Harish
Top achievements
Rank 1
answered on 28 Apr 2012, 05:31 PM
Hi Team,
                        I managed to find a link http://www.telerik.com/community/forums/silverlight/gridview/multilevel-hirarchy-in-radgridview.aspx

  on this forum for what I have requested, but here the data is static when binding to the Radgrid are there any samples\link which shows a way to bind data to the child dynamically.

0
Pavel Pavlov
Telerik team
answered on 30 Apr 2012, 08:44 AM
Hello Harish ,

Please elaborate on what do you mean by adding the child dynamically ?


Kind regards,
Pavel Pavlov
the Telerik team

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

0
Harish
Top achievements
Rank 1
answered on 30 Apr 2012, 09:45 AM
Pavel,
                              The link pasted has sample that have child expanded using a fixed loop I was trying to achive the same using some source (RIA\WCF) although that seems ok now, but the other issue I noticed in the sample is that when the parent node does not have any child items I still get the + sysmbol beside that, is it possible to display progarmetically hide the same.
0
Pavel Pavlov
Telerik team
answered on 01 May 2012, 09:35 AM
Hi Harish,

In the context of your latest post - the GridViewRow has the IsExpandable property which controls whether to display the expander button or not . You may setting this in the RowLoaded event.

Kind regards,
Pavel Pavlov
the Telerik team

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

0
Harish
Top achievements
Rank 1
answered on 01 May 2012, 12:33 PM
Hi Pavel,
                      I tried your suggestion to implement but couldn't find the property IsExpandable in RadGrid  RowLoaded event. Am I missing something,  Attached is the screenshot for the same.
0
Pavel Pavlov
Telerik team
answered on 01 May 2012, 12:39 PM
Hello Harish ,

This event is fired for all rows  including headers and footers.  In the handler you need to check whether it is an instance of GridViewRow and if yes , you will get access to the property after casting it  to GridViewRow.
Let me know if I am unclear.

Regards,
Pavel Pavlov
the Telerik team

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

Tags
GridView
Asked by
Harish
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Harish
Top achievements
Rank 1
Vlad
Telerik team
Share this question
or