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

Disable postback on paging

2 Answers 431 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mohammad sadegh
Top achievements
Rank 1
Mohammad sadegh asked on 12 Dec 2011, 10:05 AM
Hi,

When paging is enable on grid,and user click on page number or arrows, page will be refreshed and posting back.
On SEO page will be refresh too.

I want just a js function fire and grid send page number as a parameter to it.
I want make a full client grid paging.

Best regards.
mohammad

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 12 Dec 2011, 10:18 AM
Hello Mohammed,

As far as I know, you cannot prevent the grid from doing a post-back or an ajax request as it needs to rebind itself in order for those operations to be completed. You can use ajax to achieve a seamless updating of the user interface by wrapping the grid in a RadAjaxPanel or using the RadAjaxManager control. One suggestion is you can use client side binding as explained in the following demo.
Grid / Declarative Binding

Thanks,
Princy.
0
Mohammad sadegh
Top achievements
Rank 1
answered on 12 Dec 2011, 10:38 AM
that's ok my friend.
but my GetData has some custom parameters, and this like this:

public static Dictionary<string, object> GetData(int departmentID, bool SelectSubNodesPersonels, int WPID, int startIndex, int maximumRows)

I think this is a reason for grid don't fire my GetData procedure.
Can i change the parameters and pass my favorite parameters?





Tags
Grid
Asked by
Mohammad sadegh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Mohammad sadegh
Top achievements
Rank 1
Share this question
or