This question is locked. New answers and comments are not allowed.
Brad Sumner
Top achievements
Rank 1
Brad Sumner
asked on 13 May 2010, 10:27 PM
I'm getting an error ‘The [Column Name] field is required.’ when I try to update a non nullable bit field using the grid edit form. I can get it to work using a template column but it seems like using the standard Bound column method should allow you to check or un-check a checkbox without throwing the error. The error is getting thrown using client validation but I can’t figure out how to disable it and setting the bit column as nullable in the database will automatically use a dropdown list with the options of No Selection, True and False.
This method shows the error
columns.Bound(i => i.RegisterLargeTicket);
This method works
columns.Template(c => {
%>
<%=Html.CheckBox("RegisterLargeTicket", c.RegisterLargeTicket)%>
<%
});
Is there a way to disable the validation using columns.Bound so the checkbox either sends true or false or at least null so it can be handled server side? I tried using DataAnnotations and setting a default value for the property to false but that didn't work either.
Thanks for the hard work on developing the controls and making them open source!
Thanks,
Brad
7 Answers, 1 is accepted
0
Hello Brad Sumner,
I think this has been fixed in the current official release 2010.1.416. Which version are you using?
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I think this has been fixed in the current official release 2010.1.416. Which version are you using?
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Brad Sumner
Top achievements
Rank 1
answered on 14 May 2010, 02:15 PM
I'm using 2010.1.309.235. I just downloaded the files over the last few days. Do I download them again or is there another location for the newer builds?
Thanks,
Brad
Thanks,
Brad
0
Hello Brad Sumner,
You need 2010.1.416 which is the assembly version of Q1 2010 SP1. However since service packs are available only for commercial licenses you don't see that version in the web site. You can download it from here.
Kind regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
You need 2010.1.416 which is the assembly version of Q1 2010 SP1. However since service packs are available only for commercial licenses you don't see that version in the web site. You can download it from here.
Kind regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Brad Sumner
Top achievements
Rank 1
answered on 14 May 2010, 04:03 PM
Thanks for the updated version. I'm still getting the validation error when using server binding and the format columns.Bound(i => i.RegisterLargeTicket); to bind the column.
In edit mode the following validation script is loaded on the page.
{"FieldName":"RegisterLargeTicket","ReplaceValidationMessageContents":true,"ValidationMessageId":"RegisterLargeTicket_validationMessage","ValidationRules":[{"ErrorMessage":"The RegisterLargeTicket field is required.","ValidationParameters":{}
Am I missing something that will turn off the client validation script for SQL bit/checkbox fields?
Thanks,
Brad
In edit mode the following validation script is loaded on the page.
{"FieldName":"RegisterLargeTicket","ReplaceValidationMessageContents":true,"ValidationMessageId":"RegisterLargeTicket_validationMessage","ValidationRules":[{"ErrorMessage":"The RegisterLargeTicket field is required.","ValidationParameters":{}
Am I missing something that will turn off the client validation script for SQL bit/checkbox fields?
Thanks,
Brad
0
Hi Brad Sumner,
Please verify you have correctly performed the upgrade. Check the assembly version in the references of your project.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Please verify you have correctly performed the upgrade. Check the assembly version in the references of your project.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Brad Sumner
Top achievements
Rank 1
answered on 14 May 2010, 04:31 PM
I'm showing version 2010.1.416.235.
Thanks,
Brad
Thanks,
Brad
0
Brad Sumner
Top achievements
Rank 1
answered on 14 May 2010, 05:43 PM
I forgot to update the javascript files - telerik.grid.editing.min.js seems to have fixed the problem. I was thinking it would be more of a server rendering fix but the validation script is still there it's just that telerik.grid.editing.min.js ignores the boolean fields.
Thanks for your help with this!
Brad
Thanks for your help with this!
Brad