Welcome Guest Search | Active Topics | Sign In | Register

ClientSideBeforeExecute Not Fired For Gridview Sort Options
PThompson
Posted: Friday, September 11, 2009 11:33:57 AM
Rank: Advanced Member
Groups: Member

Joined: 10/31/2007
Posts: 51
Hi

I have a page which has a a gridview inside a callbackpanel.

On the callbackpanel I have a client script set for ClientSideBeforeExecute, as well as the server side execute method.

When the callback is triggered by the gridview on a row select, the ClientSideBeforeExecute script is executed.

However when the gridview sort is triggered by clicking a header column a full postabck is fired and scripts form the Masterpage are run before performing the callback ClientSideBeforeExecute script.

Can you tell me how to ensure the gridview sort is captured by the callbackpanel first as in a row select .

Thanks
eo_support
Posted: Friday, September 11, 2009 1:44:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Can you post a test page that demonstrates this problem? We will try to run it here and see if we can see the same problem.

Thanks!
PThompson
Posted: Monday, September 14, 2009 12:16:02 PM
Rank: Advanced Member
Groups: Member

Joined: 10/31/2007
Posts: 51
Hi

I've applied a work around by building a custom sort procedure within the callbackpanel.

In the databind of the grid header row I have applied an eo_callback to the click attribute of each column of the header row, passing the sort expression for the column. Then apply the sort in the callback execute. Full postback on a hyperlink avoided.

Thanks Anyway

eo_support
Posted: Monday, September 14, 2009 1:06:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great that it worked out for you. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.