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

Refresh grid after cookie value changes

1 Answer 73 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 31 Aug 2009, 09:12 AM
Hi

I think I may be trying to do something that cannot work... can someone tell me how to do it if not?

I have a grid with a price column where the value displayed can be in £, $ or Euro depending
on the value of a cookie.

The visitor can change the display currency cookie in a RadWindow, and I want this change to be effective
when the window is closed.

Currently I have javascript to do a complete page refresh, but it would be much smoother to
only have to refresh the grid. How can this be done?  Is there an event that can retrieve the new cookie value?
Or does the whole page have to be reloaded to get the the new cookie value?

Thanks lot!

Clive

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 03 Sep 2009, 07:42 AM
Hi Clive,

You can actually use RadWindow's client-side OnClientClose event in the parent page. This event will be fired every time you close RadWindow and you can read the cookie value in it. If you, however, need to rebind RadGrid to refresh the price column, you will still have to postback.

Best wishes,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or