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

sort with template column

3 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 02 Nov 2012, 06:45 PM
I have 3 columns and a template column the gets the percent of the other 3. I want to sort the template column highest to lowest. How can this be done?

3 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Nov 2012, 04:03 AM
Hello,

Please assign DataField in Templatecolumn.

<telerik:GridTemplateColumn DataField="Name" SortExpression="Name">
                      <ItemTemplate>
                          <asp:Label ID="Label1" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                      </ItemTemplate>
                  </telerik:GridTemplateColumn>


//OR

You can also manage by Custom sorting facility in RadGrid.


Thanks,
Jayesh Goyani
0
Michael
Top achievements
Rank 1
answered on 03 Nov 2012, 05:45 AM
Your custom sort link is broke.
0
Jayesh Goyani
Top achievements
Rank 2
answered on 03 Nov 2012, 06:43 AM
Hello,

Sorry for that i have updated my last post.


Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Michael
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Share this question
or