FilterDescriptor display rounded decimal ?

4 posts, 1 answers
  1. Exo
    Exo avatar
    12 posts
    Member since:
    Sep 2009

    Posted 14 Oct 2011 Link to this post

    Hello,

     

    I have got a question about the ColumnFilterDescriptor of a RADGridView.

     

    In this property, I dynamically assign by code behind a value in filter1.

    i.e ColumnFilterDescriptor.FieldFilter.Filter1.Value = myValue

     

    It's working perfectly if my value got 2 decimals (i.e 10,12). The display value will be 10,12.

    But if I got more decimals (i.e 10,1234), it displays a rounded value (10,12) but Filter1.Value is correct (10,1234).

     

    Is there some solutions to display the full decimal value ?

     

    Thank you.

  2. Exo
    Exo avatar
    12 posts
    Member since:
    Sep 2009

    Posted 19 Oct 2011 Link to this post

    Hello,


    Nobody can help me ?

     

    Regards.

  3. Answer
    Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1216 posts

    Posted 19 Oct 2011 Link to this post

    Hi Exopartners Exopartners,

    In order to override this default behavior, you may try changing RadMaskedTextBox's Mask. When non-integer numeric data type is used, It is set to "f", so that it displays only two digits after the floating point. I have prepared a simple example project that illustrates the recommended approach to customizing FilteringControl's editors. It is attached for your reference.

    Kind regards,
    Ivan Ivanov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  4. Exo
    Exo avatar
    12 posts
    Member since:
    Sep 2009

    Posted 19 Oct 2011 Link to this post

    hello,

     

    It's exactly what I wanted to do.

    Thanks for your response and your example project.

     

    kind regards,

Back to Top