I have a RadDatePicker attached to a RequiredFieldValidator as part of a Template column.
I want the validation to fire whenever the grid attempts to page. Looks like, by default, this does not occur. Even if the RadDatePicker is empty, the validation does not fire when I page the grid.
Is there anyway I can force this?
I attempted to respond to the OnCommand client event when it is of type "Page", force the validation.
While the validation does fire and the grid's data does not refresh, the pager still moves to the next page. The set_cancel does not seem to take effect fully when paging.
Any help would be greatly appreciated.
I want the validation to fire whenever the grid attempts to page. Looks like, by default, this does not occur. Even if the RadDatePicker is empty, the validation does not fire when I page the grid.
Is there anyway I can force this?
I attempted to respond to the OnCommand client event when it is of type "Page", force the validation.
function
grid_OnCommand(sender, eventArgs) {
var
c = eventArgs.get_commandName();
if
(c ==
"Page"
) {
if
(!Page_ClientValidate()) {
eventArgs.set_cancel(
true
);
}
}
}
While the validation does fire and the grid's data does not refresh, the pager still moves to the next page. The set_cancel does not seem to take effect fully when paging.
Any help would be greatly appreciated.