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

How To Sort Decimal Number with % as post fix in Radgrid

2 Answers 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rahul Khinvasara
Top achievements
Rank 1
Rahul Khinvasara asked on 14 Jan 2009, 06:30 AM
Hello,
I am using Radgrid one of it's coulmn havivg value in decimal with % as post fix for example 99.22%,When I m trying
to Sort this collumn it is not sorting Correctly.... I used 

DataType

="System.Decimal" DataFormatString="{0:###.###%}"  in property of that column then also it's not working properly.
Please  let me know what to do?

 Hope I'll get solutions soon.

Thanks

 

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Jan 2009, 09:57 AM
Hello Rahul,

Try setting the DataFormatString for the Column as shown in the code below:
aspx:
<telerik:GridBoundColumn DataField="Percentage" HeaderText="Percentage" ReadOnly="True" SortExpression="Percentage" UniqueName="Percentage" DataType="System.Decimal" DataFormatString="{0:###.###}%">   
</telerik:GridBoundColumn>  
  

Hope this helps.
Princy.
0
Rahul Khinvasara
Top achievements
Rank 1
answered on 14 Jan 2009, 01:54 PM
Hi,
I already have used same code...But it does not work,Plz give me another solution.

Thanks
Tags
Grid
Asked by
Rahul Khinvasara
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Rahul Khinvasara
Top achievements
Rank 1
Share this question
or