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

how to make web service/server ask the client what items are displayed in a control?

1 Answer 22 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 01 Oct 2008, 09:05 PM
Dear Telerik,

I have two Grids among a few other controls on the page. When an item is double-clicked in Grid1, I would like the server to perform some action, and then to inform Grid2 and the other controls if the action was successful or not. However, in order to perform this action, the server has to know Grid2's (or another Tree control) state. In other words, before the server can perform this action, it has to know what items are currently displaying in Grid2, or in another Tree control. What do you suggest is the best way to go about doing this?  I am currently calling a web service to get data back from the server to populate my grids and other controls, as suggested by Nikita Gourme.
(Reference: http://www.telerik.com/community/forums/thread/b311D-bgbmad.aspx).  Is there a way for the web service/server to ask the client what items are displaying in Grid2 ?

Best Regards,
Alex

1 Answer, 1 is accepted

Sort by
0
Nikita Gourme
Top achievements
Rank 1
answered on 06 Oct 2008, 02:49 PM
Alex, let me share my opinion in this thread once again.

I am not sure whether such disconnected handling through web service can determine the state of other controls on the page. After all, the web service result is returned through a function which is invoked asynchronously on the client and its purpose is to return data source only.

Thus I conclude that if you want to check the state of the other grid or the treeview, you have to abandon the client binding and populate the first grid with ajax request from RadAjaxManager which ajaxifies the other two controls, too.

Just my 2 cents here

Nikita
Tags
Grid
Asked by
Alex
Top achievements
Rank 1
Answers by
Nikita Gourme
Top achievements
Rank 1
Share this question
or