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

3 posts, 0 answers
  1. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 14 Jan 2009 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Jan 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rahul Khinvasara
    Rahul Khinvasara avatar
    303 posts
    Member since:
    Aug 2007

    Posted 14 Jan 2009 Link to this post

    Hi,
    I already have used same code...But it does not work,Plz give me another solution.

    Thanks
Back to Top