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

[Solved] A client event for when the Page Index is clicked

2 Answers 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 17 Mar 2008, 11:14 PM
Hi

I found a post that related to the ASP.NET RadGrid to handle a situation where a client custom logic can be applied when a page index is clicked:

    http://www.telerik.com/community/forums/thread/b311D-bakdak.aspx


I was wondering what would be the best approach for the Prometheus RadGrid?

Basically what I want is that when a user clicks on a page index, client logic will determine if they are allowed to continue or not.


Kind regards

Mark Eaton

2 Answers, 1 is accepted

Sort by
0
Accepted
Konstantin Petkov
Telerik team
answered on 18 Mar 2008, 09:01 AM
Hello Mark,

A possible option seems to be to access the links in ItemCreated event server-side and attach onclick event handler containing JavaScript confirmation dialog. The following articles from the RadGrid documentation would be of help:
Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Mark
Top achievements
Rank 1
answered on 19 Mar 2008, 04:59 AM
Hi Konstantin

That pointed me in the right direction. I was able to implement client logic quite nicely to prevent postbacks on page indexing if necessary.

Kind regards

Mark Eaton
Tags
Grid
Asked by
Mark
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Mark
Top achievements
Rank 1
Share this question
or