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

radwindowmanager shows last message not current

2 Answers 40 Views
Window
This is a migrated thread and some comments may be shown as answers.
luis molina
Top achievements
Rank 1
luis molina asked on 29 Jun 2016, 06:17 AM

Hi, I have two grids with ajax and one function that opens a window with a windowmanager, when using the function in the first grid (with a button and in the updatecommand) it works ok and it shows a message I put with the current time, but If I try to use that function from an event in the second grid it shows the last message not current. I'll try to explain:

 

- the new window has a label when I put the next message: current time + "bla bla" before opening it

- if I use it from the first grid it shows the current time but from the second grid it shows the last message not the current time...

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 29 Jun 2016, 08:13 AM

Hello,

The most likely reason for such behavior is that the AJAX setup on the page is not configured properly.

I first advise that you review the following article on using RadWindow with AJAX: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/how-to/how-to-use-radwindow-with-ajax.

Then, if you are using the ContentTemplate, you should move the RadWindow out of the RadWindowManager: http://docs.telerik.com/devtools/aspnet-ajax/controls/window/getting-started/using-radwindow-as-controls-container.

Finally, you need to make sure the AJAX request from the second grid also updates the RadWindow contents, just like the first grid does.

Regards,

Marin Bratanov
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
luis molina
Top achievements
Rank 1
answered on 30 Jun 2016, 10:34 PM

You are right

 

Tags
Window
Asked by
luis molina
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
luis molina
Top achievements
Rank 1
Share this question
or