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

Is it possible to cancel an OnCommand event

1 Answer 33 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 13 Sep 2012, 05:13 PM
Hi

I have a requirement to prevent moving to the next page in my Custom paging code if the current data isn't 'valid'.

Is this even possible.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 18 Sep 2012, 02:23 PM
Hello Tim,

I am afraid the requested behaviour is not supported out-of-box. You could try to hook a client side click event to your Pager buttons and cancel the event if the command does not meet the required condition.

Thank you for your understanding and sorry for any inconvenience cause.

Greetings,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
DataPager
Asked by
Tim
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or