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

[Solved] How to Change the Decimal Value .05 Entered in Filter Box of Telerik Control to 0.05 before selecting the Filter Criteria

2 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saurabh
Top achievements
Rank 1
Saurabh asked on 19 Aug 2013, 01:13 PM
Hello All,
I am using 2011.2.712.40 Telerik Product Version. The Code snippet for the Amount Field in Telerik Grid is as:

<telerik:GridBoundColumn FilterControlWidth="80%" DataField="requested_amount" HeaderText="Requested Amount"
                            SortExpression="requested_amount" UniqueName="requested_amount" ShowFilterIcon="true" DataFormatString="{0:c2}">
 </telerik:GridBoundColumn>
 <telerik:GridBoundColumn FilterControlWidth="80%" DataField="approved_amount" HeaderText="Approved Amount"
                            SortExpression="approved_amount" UniqueName="approved_amount" ShowFilterIcon="true" DataFormatString="{0:c2}">
</telerik:GridBoundColumn>

I am facing some issue when I try to enter some filter value for amount like '.05'. It is working fine if filter value starts with some numeric value.
So, it would be better if I make the Filter value form .05 to 0.05 before the Focus is lost and filter criteria is selected.
Please provide me a solution for the Issue which can be compatible with all browsers.
Also, please refer the Telerik Grid UI attached.

http://screencast.com/t/bvHEUFgJ

Thanks,
Saurabh

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 Aug 2013, 07:08 AM
Hello Saurabh,

This requirement is automatically achieved - you can refer to the Freight column in the following example:
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Saurabh
Top achievements
Rank 1
answered on 22 Aug 2013, 11:40 AM
Thanks Eyup.
I find this demo earlier and able to solve my Issue.

Regards,
Saurabh. 

Tags
Grid
Asked by
Saurabh
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Saurabh
Top achievements
Rank 1
Share this question
or