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

[Solved] In cell edit with validation has some issues

0 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ben
Top achievements
Rank 1
Ben asked on 09 Apr 2012, 08:52 PM

Updated the code as I forgot to include the telerik dll in the bin for compilation. It's there now. Sorry, I don't know which of the two works and which doesn't. Tried to delete the first upload but don't see how. One of them compiles and one doesn't.



Seeing some issues and have prepared the attached project to display the issues.

 

  1. When using remote (server-side) validation (with the [Remote] attribute on one or more model fields), the additional parameters are always null (in this case OrderLineID). See Remote attribute on Quantity field and the associated validation routine in controller. This partially works,  but the incoming data is null except for the field being edited.
  2. With remote validation again, the cell with the error will cause the validation to fail, but if a user clicks in another cell in the same column, that next cell will get the error message. To see this,  click into a cell under Quantity, editing from the right remove digits one by one until a single digit remains (causing validation to fail, but you should have done this so no message shows until a blur), then click into another cell in Quantity column.
  3. Client side validation with custom validation does not work. See FutureDate implementation on the Date field. This will work server-side, but not client side.
  4. Jquery errors thrown on the built-in client side validation. Click into a field and view console output on Firefox Firebug to see errors.



5. The dirty flag goes dirty on cells in the Distance column even when the value has not changed. Click in the cell, then blur or click into another cell. Other cells in other columns act normally and don't dirty without changes.

6. The Order Date validation (required) acts improperly. Edit an Order Date by removing the value. Then click elsewhere. Then edit the faulty cell by entering some text like 'fff' and click away. This removes the error message and restores the field to it's almost original value but leaves it unviewable.

Tags
Grid
Asked by
Ben
Top achievements
Rank 1
Share this question
or