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

Grouping with GridDropDownColumn

7 Answers 134 Views
Grid
This is a migrated thread and some comments may be shown as answers.
yerlan
Top achievements
Rank 1
yerlan asked on 18 Jul 2010, 07:36 AM

Hi.

I'm using GridDropDownColumn to display and edit values in grid:

1.<telerik:GridDropDownColumn DataField="MYFIELD" HeaderText="Entity" UniqueName="MYFIELD"
2.    DataSourceID="EntityDataSource" ListValueField="ID" ListTextField="NAME"
          EnableEmptyListItem="true">
4.</telerik:GridDropDownColumn>

and ObjectDataSource for show human-readable value of "MY_FIELD" column:
1.<asp:ObjectDataSource ID="EntityDataSource" runat="server" SelectMethod="GetEntityList" 
2.TypeName="..."/>

When i;n group grid by this column - in grid headers shown "ID" value:
"MYFIELD: 45".
How i may to show "NAME" field in groups header?

7 Answers, 1 is accepted

Sort by
0
yerlan
Top achievements
Rank 1
answered on 19 Jul 2010, 09:56 AM
Anybody knows solution for this problem? Without retreiving additional column with human-readable value of dictionary?
0
Accepted
Pavlina
Telerik team
answered on 19 Jul 2010, 12:31 PM
Hi Yerlan,

You can have complete control over the display of the fields in a GridGroupHeaderItem and even perform calculations and display the results in the group header.

Additional information is available here:
http://www.telerik.com/help/aspnet-ajax/grdcustomizegridgroupheaderitem.html

Best wishes,
Pavlina
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
yerlan
Top achievements
Rank 1
answered on 19 Jul 2010, 06:40 PM

Pavlina, thanks for response.

I'm readed links - adding dummy column to dataset looks easier, cause to my little coding expirience:)

0
Jason
Top achievements
Rank 1
answered on 17 Aug 2010, 06:49 PM
Yerlan,

I'm having the exact same problem, and the link provided is no help.  How did you solve this issue? I guess what I need to know is how to grab the "ListTextField" in  ItemDataBound.

Thanks,
J
0
Pavlina
Telerik team
answered on 20 Aug 2010, 02:17 PM
Hi Jason,

I suggest that you review Customizing GridGroupHeaderItem help article which elaborates on this subject and see if it helps to achieve your goal.

Kind regards,
Pavlina
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
Jason
Top achievements
Rank 1
answered on 22 Aug 2010, 01:35 AM
Pavlina,

I've seen that. but that method assumes that I want my grid grouped on page load, and i dont.  What i'd like to know is how i can grab the listtextfield property?
0
Pavlina
Telerik team
answered on 25 Aug 2010, 03:24 PM
Hello Jason,

Please refer to the below help article for more information about the mechanism which RadGrid uses to present values for GridDropDownColumn:
Customize/Configure GridDropDownColumn

Sincerely yours,
Pavlina
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
Grid
Asked by
yerlan
Top achievements
Rank 1
Answers by
yerlan
Top achievements
Rank 1
Pavlina
Telerik team
Jason
Top achievements
Rank 1
Share this question
or