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

A Few Newbie Questions on GridView

2 Answers 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
yonadav
Top achievements
Rank 1
yonadav asked on 29 Oct 2009, 11:51 AM
Hi Everyone,

First of all - I'm new to telerik's controls, and I like what I see so far... great job!

I've started using the RadGridView control for a project of mine and encountered the following questions. I would greatly appreciate your help here:

1. How do I remove the left-most column (not a data column, whenever a row is selected it has a little right arrow in it)?
2. I've added a Combo column which works great, except for one little thing --- it is impossible to know that the column's cell is a combo box until the user actually double clicks on it. Is there a way to make it appear and respond as a combo box straight off?
3. Whenever a row is selected, I would like to display a set of content below it (description on the item, a list of other relevant items, etc.). How do I do this?
4. I've used a GroupDescription which works well, however, the value by which the rows are grouped does not appear in the group's title. What am I doing wrong?

Thank you for your help!
yonadav

2 Answers, 1 is accepted

Sort by
0
Accepted
Rossen Hristov
Telerik team
answered on 02 Nov 2009, 09:55 AM
Hello yonadav,

1. Set the RowIndicatorVisibility property of the grid to Collapsed.

2. There are two modes of a cell -- normal and edit mode. The combo you are seeing is when the cell is in edit mode. If you would like to change its normal appearance, you will need to redefine the CellTemplate of the column. Another option is to inherit from GridViewDataColumn, override CreateCellElement and/or CreateCellEditElement and return your desired control. Please, take a look at this forum post for more information. You can also take a look at the "CellTemplate and CellEditTemplate" example from our QSF.

3. There is a feature called Row Details. This is just the thing you are looking for. You can also take a look at the "Row Details" example from our QSF.

4. The GroupDescription is obsolete. Use GroupDescriptor. Take a look at the Aggregates example for more info.

We would recommend upgrading to the latest version of our controls, which you can find in your Client.Net.

NOTE: The links to the examples I have sent you are for Silverlight, but since our WPF and Silverlight controls share a common code-base they are the same. You can find the WPF examples from your local RadControls for WPF installation.

Please, do not hesitate to drop us a line if you have any problems with the four points above. We would be glad to help.

All the best,
Ross
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
yonadav
Top achievements
Rank 1
answered on 03 Nov 2009, 02:27 PM
Hi Ross,

Thank you for your help! Each point was helpful!

yonadav
Tags
GridView
Asked by
yonadav
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
yonadav
Top achievements
Rank 1
Share this question
or