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

how to get hierarichal grid view using rad windows controls

11 Answers 124 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sahil Gulati
Top achievements
Rank 1
Sahil Gulati asked on 09 Nov 2009, 01:34 PM
It is possible to get the hierarchical structure in the rad grid view in ASP.NET web application, but my application is windows application. So any1 plz tell me how can i have the same hierarical structure in the grid view used in the windows application.

11 Answers, 1 is accepted

Sort by
0
Robert
Top achievements
Rank 1
answered on 09 Nov 2009, 08:15 PM
Hello Sahil Gulati,

It is possible to have a hierarchical structure in a RadGridView for WinForms. This help topic covers how you can set it up:

Also, the demo application included with the RadControls for WinForms installation contains an example of using a hierarchical gridview. You can access the demo application on your computer at, Start -> All Programs -> Telerik -> RadControls for WinForms -> Run Demos.

The hierarchy example is accessible in the demo application at:
GridView -> Hierarchy -> Hierarchy

- Robert
0
Sahil Gulati
Top achievements
Rank 1
answered on 29 Dec 2009, 05:58 AM
Hello Sir,

Thanks for your input. I have been able to get a hierachial grid. It shows the Parent rows and then child row with child coumns. My requirement is to keep the column headers only at the top of the grid once like a normal grid view. The child rows will not have their own column names. The data for child rows will appear under the same columns as that of parent row columns. 

Can we create such a hierarchial grid where we just add data for child rows using ChildGridViewTemplates or something but without the separate column headers for child rows.

Regards,
Sahil
0
Jack
Telerik team
answered on 29 Dec 2009, 08:34 AM
Hi Sahil Gulati,

As I understand you request, this is a self referencing hierarchy. Currently RadGridView doesn't support it. We plan to implement it in one of our upcoming releases. We will appreciate to hear more about your project. We will take into consideration your feedback when developing self-referencing hierarchy feature. I am looking forward to your reply.

Regards,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sahil Gulati
Top achievements
Rank 1
answered on 29 Dec 2009, 09:19 AM
Hello Sir,

Thanks for your reply. Please let me know whenever you launch the upgradation of your product.
Well there is one more query i would like to ask from you. is it possible to add a column in the datagrid that contains multiple radio buttons which provide the user with the functionality to choose one of the radiobutton among all.

I would like to add this column in my ChildGridViewTemplates.

Waiting for your response.

Regards:
SAHIL
0
Jack
Telerik team
answered on 29 Dec 2009, 09:53 AM
Hello Sahil Gulati,

Thank you for writing me back. Maybe the following KB article is exactly what you want. Please take a look.
 
Greetings,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sahil Gulati
Top achievements
Rank 1
answered on 29 Dec 2009, 11:40 AM
hello Sir,

thanks For your reply, I will workout with the code with the data which is present in my database. and try to implement the same functionality in the hierarchical grid view structure by binding the data through database. i had 1 more query to ask from you.

Is it possible to get the rollback functionality in the colums of the datagrid

For eg. i have three tables category, sub category and product i will prepare the hierarchical tree structure in the datagrid form the three tables. suppose under 1 category there are 2 subcategories and under each subcategory there are 4 products.

I want to show that under category-name column (2) will be shown and under each subcategory-name (4) will be shown. further products can be of any numbers that too will get highlighted.

Plz provide me with the sample application at which i can able to achieve the hierarchy at three levels

 

0
Sahil Gulati
Top achievements
Rank 1
answered on 30 Dec 2009, 04:43 AM
Hello Sir,

Is it possible to get the rollback functionality in the columns of the datagrid.

Waiting for a response
0
Sahil Gulati
Top achievements
Rank 1
answered on 30 Dec 2009, 07:00 AM
Hello  Sir,

thanks for sending the article i am able to achieve the task of showing the column containing the radio button inside the column of the datagrid.Can you plz tell me how i can able to achieve the hierarical grid while using three tables in which category table is the parent table its child is subcategory table and subcategory table child is product table programatically as i only want to list selected column from my tables. plz provide me with the sample applcation containing code for obtaining the required task.

sir i want to know that how i can able to add the column in any of the table at run time. for eg if i want to add the column containing the radio button in product table  with specific options for the user can i able to achieve this . plz tell me the procedure.

It will be very grateful of you.


Regards:
SAHIL

 
0
Jack
Telerik team
answered on 30 Dec 2009, 10:20 AM
Hello Sahil Gulati,

Thank you for writing me back. I understand what you want to achieve. However this layout is not possible when using the hierarchy feature of RadGridView. It is more like grouping. You should use a single table containing all your data. Then apply grouping on the following columns: category, sub-category and product-name. You can find a grouping example in our demo application. For more details on how to customize the group header text check this blog article. Should you have any other questions, don't hesitate to contact me back.

Regards,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Sahil Gulati
Top achievements
Rank 1
answered on 30 Dec 2009, 11:40 AM
Hello Jack,

Can you plz provide me the sample application by which i can able to achieve the functionality of grouping.
Moreover jack i want to add the column at run time in my hierarchical grid structure.
How can i able to achieve this feature.

Sorry for disturbing you

Waiting for your response

Regards:
SAHIL
0
Jack
Telerik team
answered on 30 Dec 2009, 12:55 PM
Hi Sahil Gulati,

You can find a grouping example in our demo application. Please check Grid View -> Grouping -> Grouping example. You can show the source code by clicking on the "C# Code" tab. The following code groups RadGridView based on the Country column:

this.radGridView1.MasterGridViewTemplate.GroupByExpressions.Add("Country GroupBy Country");

Adding columns is easy. Just add the desired column type to the Columns collection:

GridViewTextBoxColumn column = new GridViewTextBoxColumn("MyColummUniqueName", "MyFieldName");
column.TextAlignment = ContentAlignment.MiddleCenter;           
this.radGridView1.Columns.Add(column);

Find more about columns in Grid View -> Columns -> Column Types example.

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Sahil Gulati
Top achievements
Rank 1
Answers by
Robert
Top achievements
Rank 1
Sahil Gulati
Top achievements
Rank 1
Jack
Telerik team
Share this question
or