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

Which client event after server side filter?

2 Answers 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mark leavesley
Top achievements
Rank 1
mark leavesley asked on 04 May 2010, 03:49 PM
Hello,

I have a RadGrid which uses the NeedDataSource event to allow the built in filtering to work. I need some client side code to run when the grid reloads with the filtered results, or, as each row is removed/added. The description of the events is pretty vague, for example, http://www.telerik.com/help/aspnet-ajax/grid_onrowcreated.html, does not specify if the event is only meaningful for client-side data binding, whereas I know some methods do.

So the question is, how can I respond to a grid in javascript when it has been or is being filtered? The end result is to update an image gallery that corresponds to the grid, any rows that get filtered out have their images in the gallery hidden and vice-versa.


Regards,
Mark Leavesley

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 05 May 2010, 01:07 PM
Hello mark,

You can safely use the client OnRowCreated event with server-side binding for that purpose.

Hope this information helps.

Regards,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
mark leavesley
Top achievements
Rank 1
answered on 05 May 2010, 02:12 PM
Hello,

I did try that but it only works for rows that are created in the page you are looking at. I found a server side solution instead using the grid ItemCommand and NeedDataSource events.

Thanks anyway


Regards,
Mark Leavesley
Tags
Grid
Asked by
mark leavesley
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
mark leavesley
Top achievements
Rank 1
Share this question
or