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

UserControl and Grid

3 Answers 145 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 14 Mar 2010, 02:09 PM
I like the way Chart control is displayed in the grid. here.
http://dotnetslackers.com/CSharp/re-231250_Multiple_child_views_with_RadGridView_for_WinForms.aspx

This gives me a thought.   Can i display a userControl in a Grid.    Maybe in a column or any other alternative .

Regards
Lee

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 15 Mar 2010, 10:05 AM
Hello Lee,

In this example we display actually a bitmap that is generated by our charting tool. Placing a real control inside a grid cell is possible, however it will slow down scrolling and will cause visual glitches. Please, describe in more details the exact behavior that you want to achieve and I will try to find the best option. I am looking forward to your reply.

Best wishes,
Jack
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Lee
Top achievements
Rank 1
answered on 16 Mar 2010, 01:58 PM
Hi

At the moment is more of a thought process only.   but if that is possible then.. I would like to do something like
as seens in attached images.
More like of a ASP.NEt's FormView or DataList Style.   because at times this style makes more readaibility  then pure simple horizontial column style.

As seen from image. "More informaion" could come from same table columns or if there are multipe addresses, it could come from a child table.    This is where i visualize it as " ASP.NEt's FormView or DataList Style", respectively.

I feel adding a Usercontrol should satisfy the need.

Regards
Lee.
0
Jack
Telerik team
answered on 18 Mar 2010, 05:00 PM
Hi Lee,

I understand. The best option in this case is to use hierarchy just like in the example from our Examples application. Then, you can create a custom editor. It will hide when scrolling and will be shown only when clicking inside the child view. There is an example on how to create a custom editor in our Examples application. More details are available in our online help. You should host the user control inside a RadHostItem. We plan to improve the API and will make it easier to implement this scenario in one of our upcoming releases.

Sincerely yours,
Jack
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Lee
Top achievements
Rank 1
Answers by
Jack
Telerik team
Lee
Top achievements
Rank 1
Share this question
or