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

Personalize Grouping By Expressions

3 Answers 59 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alessandro
Top achievements
Rank 1
Alessandro asked on 30 Oct 2011, 04:55 PM
I need to customize the groupings in a grid.
In my case, I group by a column 'GridDropDownColumn' which has as public properties 'DataField = "ID"' and 'ListTextField = "description"', so in group shows a number instead of the description provided in the 'DropDown'.

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 30 Oct 2011, 07:39 PM
Hello,

<telerik:GridBoundColumn GroupByExpression="Description Group By Description" >


Thanks,
Jayesh Goyani
0
Alessandro
Top achievements
Rank 1
answered on 30 Oct 2011, 09:11 PM

If I use your suggestion is an error: "Can not find the Description column."
Let me explain, my Column is:

<telerik:GridDropDownColumn DataField="ID" DataSourceID="LinqDataSourceConto"
 
 HeaderText="Cont" ListTextField="Description" ListValueField="ID" UniqueName="ID"
 
 ColumnEditorID="GridDropDownColumnEditor1" AllowFiltering="false">
 
 </telerik:GridDropDownColumn>

with his datasource:

<asp:LinqDataSource ID="LinqDataSourceConto" runat="server" ContextTypeName="LinqDataSourceDataContext"
EnableDelete="True" EnableInsert="True" EnableUpdate="True" TableName="CONT">
</asp:LinqDataSource>

 

The grid uses the identifier value ID, but I would rather see a description that is inside of another "datasource" described in the 'GridDropDownColumn', obviously I can not use Vista because in this case I could not use the grid to online editing.

 

 

 

 

 

0
Accepted
Radoslav
Telerik team
answered on 02 Nov 2011, 08:15 AM
Hi Alessandro,

Please check out the following forum thread which elaborate on the same matter:
http://www.telerik.com/community/forums/aspnet-ajax/grid/grouping-with-griddropdowncolumn.aspx

I hope this helps.

Kind regards,
Radoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Alessandro
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Alessandro
Top achievements
Rank 1
Radoslav
Telerik team
Share this question
or