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

FilterDescriptor display rounded decimal ?

3 Answers 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Exo
Top achievements
Rank 1
Exo asked on 14 Oct 2011, 03:04 PM

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.

3 Answers, 1 is accepted

Sort by
0
Exo
Top achievements
Rank 1
answered on 19 Oct 2011, 09:18 AM

Hello,


Nobody can help me ?

 

Regards.

0
Accepted
Ivan Ivanov
Telerik team
answered on 19 Oct 2011, 11:20 AM
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 >>
0
Exo
Top achievements
Rank 1
answered on 19 Oct 2011, 02:52 PM

hello,

 

It's exactly what I wanted to do.

Thanks for your response and your example project.

 

kind regards,

Tags
GridView
Asked by
Exo
Top achievements
Rank 1
Answers by
Exo
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Share this question
or