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

Cell Validating Issues

1 Answer 48 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 23 May 2013, 02:06 PM
First off, I am on version 2010.3.1314.35 and cannot upgrade at this time.  When using a GridView with a column bound to a

System.Nullable<double> property, I have a couple issues.  One issue is that it allows the user to type anything in the field.  Not just decimal numbers.  I tried to solve this by using cell validating, but when I type a character and tab out of the field, before validating fires it tries to update the bound item (2 way binding is on) and throws a format exception because the character value cannot be put into the double? property. 

The other issue is, since it is nullable, I would also like to allow the user to leave the field blank and it assign null to the bound property.  Is this possible or am I going to have to unbind the column and manually update accordingly?

,

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 24 May 2013, 11:06 AM
Hi,

This is quite an old version. May I ask you to send us a demo project via a support thread? That way we can debug it locally and advise you better.
 

Regards,
Didie
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Joshua
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or