This is a migrated thread and some comments may be shown as answers.
DataService fires on client event
1 Answer 24 Views
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 04 Jun 2010, 08:09 PM
Hello Telerik team,

I have a grid that is bound using a client side DataBinding service (ADO.Net data service)
One of the columns in the grid is a GridButtonColumn that has a CommandName property set to fire on the client.

The OnCommand handler for this event does a set_cancel(true) so there is no AJAX postback for this command
The OnCommand handler also return false just in case that helped my issue (it did not help)

The issue is that I see a request to my data service to retrieve the rows of currently displayed data and I do not want that network traffic hitting my server.

Why is the data service firing when a command is fired even if the command is not related to the grid's data?

Thanks
Bob

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 07 Jun 2010, 01:44 PM
Hello Bob,

I suspect that you are using declarative client-side binding. If you this is the case you cannot prevent hitting the service as  there is internal handler for RadGrid events.
An alternative approach is to use manual client-side binding.

Kind regards,
Nikolay
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.
Tags
Grid
Asked by
Bob
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or