This question is locked. New answers and comments are not allowed.
I know I can tie into the standard MVC validations while editing a grid but I don't think that will work or is even needed here.
What I want to do is validate that a value entered into a column is unique in that grid. This grid will have a small number of rows that will always be in the client. Also, since they can add multiple rows at a time I can't use for example a remote validation and verify that the field is not in the db since it might not be even if they entered it in another row.
I tried to use the OnEdit event. But, that seems to fire when I click into the field to edit rather than after the user edits it.
I also tried to use jQuery delegate for the blur even of the input fields. But that never fires. I expect it is because the input tag is added/removed on the fly during batch editing.
I really need some type of OnChanged event or something.
thanks,
BOb
What I want to do is validate that a value entered into a column is unique in that grid. This grid will have a small number of rows that will always be in the client. Also, since they can add multiple rows at a time I can't use for example a remote validation and verify that the field is not in the db since it might not be even if they entered it in another row.
I tried to use the OnEdit event. But, that seems to fire when I click into the field to edit rather than after the user edits it.
I also tried to use jQuery delegate for the blur even of the input fields. But that never fires. I expect it is because the input tag is added/removed on the fly during batch editing.
I really need some type of OnChanged event or something.
thanks,
BOb