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

Remove trailing zeros from grid view column

2 Answers 275 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jippy
Top achievements
Rank 1
Jippy asked on 26 Oct 2012, 10:56 AM
Hi,
   I have decimal values in telerik grid view data column, i formatted it and showing properly but when i try to edit the value and double click on it, it displays a bunch of zeros after the decimal point.Now i want to remove all those zeros when i double click for editing.Can anybody please help me out on this as soon as possible?

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 Oct 2012, 08:44 AM
Hello,

You could predefine the CellEditTemplate for the Column with decimal values. Then apply appropriate formatting for the editor you will use (by default it is a TextBox).  

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jippy
Top achievements
Rank 1
answered on 22 Nov 2012, 06:05 AM
Hi Didie, thank you very much for the reply.
Tags
General Discussions
Asked by
Jippy
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Jippy
Top achievements
Rank 1
Share this question
or