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

Decimal Column GridView

5 Answers 88 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brandon
Top achievements
Rank 1
Brandon asked on 02 Feb 2009, 03:31 PM

I have a grid with a decimal column in it. When i try to type a number with a decimal (ie 101.5), on press of the decimal key (period) the mouse cursor returns to the beginning of the column.

GridViewDataColumn

valueColumn = new GridViewDataColumn();

 

 

valueColumn.Name =

"Value";  

 

 

valueColumn.UniqueName =

"Value";  

 

 

valueColumn.HeaderText =

"Value";  

 

 

valueColumn.DataMemberPath =

"Value";  

 

 

valueColumn.Width =

new GridLength(80);  

 

 

valueColumn.DataType =

typeof(decimal);

 

 

valueColumn.IsSortable =

false;

Thanks for any help.
-Brandon

 

 

 

 

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Nedyalko Nikolov
Telerik team
answered on 04 Feb 2009, 04:13 PM
Hi Brandon,

It seems that you've hit a bug in RadGridView. The bug is already fixed, so if this is a showstopper for you I can send you an unofficial build with the fix.
Your telerik points have been updated accordingly.

Greetings,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Brandon
Top achievements
Rank 1
answered on 04 Feb 2009, 04:17 PM
Could you please send me an unofficial build. Also, could you inform me of when you think your next official release will be.

Thanks,
Brandon
0
Nedyalko Nikolov
Telerik team
answered on 05 Feb 2009, 10:02 AM
Hi Brandon,

I've just send the unofficial build as a reply of your related support ticket.
Next official release is scheduled for the early March.

Regards,
Nedyalko Nikolov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Tomas
Top achievements
Rank 1
answered on 20 Feb 2009, 12:17 PM
Will this fix also support localizations using comma (,) rather than point (.) for decmal-numbers (example: norwegian localization) ?

Currently, the editor clears the whole number while typing anything in a number with decimals (in addition to the other bug mentioned in this thread).

0
Hristo Deshev
Telerik team
answered on 24 Feb 2009, 09:38 AM
Hello Tomas,

The conversion logic uses the current culture when parsing the strings, so, yes, Norwegian decimal formats should work just fine.

Best wishes,
Hristo Deshev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Brandon
Top achievements
Rank 1
Answers by
Nedyalko Nikolov
Telerik team
Brandon
Top achievements
Rank 1
Tomas
Top achievements
Rank 1
Hristo Deshev
Telerik team
Share this question
or