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

[Solved] Sending values from server to client

1 Answer 114 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Andrew M
Top achievements
Rank 1
Andrew M asked on 10 Jun 2009, 03:09 PM
I want to get new values from a database every 30 seconds. I've setup an ajax panel and put a timer in it. It fires every 30 seconds and updates labels on my aspx page.

Now i want to move images on the page based on the new database values. I aim to do this using DIV tags and by setting the left and top properties. For this i need the values from the server side.

How do i send values from the server to client?

Kind regards
Andrew

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 15 Jun 2009, 07:19 AM
Hi Andrew M,

When rebinding RadGrid, if the values you need for the images are already contained in RadGrid's displayed data, you can reference these values directly from RadGrid's client-side object. An example would be to update your images in RadGrid's client-side OnGridCreated event where your senderobject (your first parameter from the method) is a RadGrid client-side object.

If your data values are not contained in RadGrid itself, you can easily store them in a hidden input on the page and reference them on the client, maybe again in RadGrid's OnGridCreated client-side event.

Sincerely yours,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Ajax
Asked by
Andrew M
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or