Revenant
Posts: 1
|
Posted: 01/11/2006, 5:15 AM |
|
I want to reactivate a thread written by jplanet:
It seems I've done this dozens of times, so I don't know what's different now.
I created an editable grid, very simple, just maps directly to a single table. With the default 3 empty rows now, if let's say you just edit one exiting record and submit, it returns an error message for each of the blank rows that a required value wasn't entered....
Very bizzarre...does anyone know what conditions might cause this to happen? I've made sure that there are no default values in any of the items. Each row consists of one checkbox and two listboxes...
should be a bug in CCS?
|
|
|
Walter Kempees
|
Posted: 01/11/2006, 6:14 AM |
|
check your database table->fields are they NULLs allowed ?
"Revenant" <Revenant@forum.codecharge> schreef in bericht
news:843c5050f10945@news.codecharge.com...
> I want to reactivate a thread written by jplanet:
>
> It seems I've done this dozens of times, so I don't know what's different
> now.
>
>
> I created an editable grid, very simple, just maps directly to a single
> table.
> With the default 3 empty rows now, if let's say you just edit one exiting
> record and submit, it returns an error message for each of the blank rows
> that
> a required value wasn't entered....
>
> Very bizzarre...does anyone know what conditions might cause this to
> happen?
> I've made sure that there are no default values in any of the items. Each
> row
> consists of one checkbox and two listboxes...
>
> should be a bug in CCS?
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
Stan
|
Posted: 01/11/2006, 6:42 AM |
|
The problem is bound to the checkbox. Checkbox in HTTP doesn't have "empty" state. In result, editable grid thinks that some values is entered into the insert row, and will try to validate and insert it to the database.
|
|
|
peterr
Posts: 5971
|
Posted: 01/11/2006, 12:39 PM |
|
This is actually not related to .NET and would happen with any application. There is no such thing as empty checkbox (it can only be True or False), therefore your application has no way of knowing which rows are empty. All rows have values, therefore are not empty and are validated. You may need to remove the checkbox or use some custom solution.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
dragoon
Posts: 173
|
Posted: 01/29/2006, 11:57 AM |
|
it would be possible only if the checkbox won't be visible n the new rows (rows for inserting new content)
|
|
|
dragoon
Posts: 173
|
Posted: 01/29/2006, 1:14 PM |
|
anyone accomplished this?
I can't figure out in .NET how you can stop a checkbox from showing in the new rows....
|
|
|
|
|
|
|
|