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

Can't get values out of return object

1 Answer 40 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 05 Aug 2013, 07:26 PM
I am using Q1 2011 RadWindow. The value being returned from the RadWindow is a string array. However, the ajaxRequest method being called on the parent page is changing the string array to [object Object] as the argument of the AjaxRequestEventArgs in the c# code.

This used to work fine when using the Q1 2008 version when using ClientCallBackFunction, but have now had to change to OnClientClose.

How do I get my values out of this object in my c# code?

Thanks

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 06 Aug 2013, 01:18 PM
Hello Ron,

Could you explain the case in more details? From what I can gather you are having issues with passing the data to the server which is not a task related to the RadWindow control. Getting the object from the argument should not differ from the logic from this demo and should work fine both in the latest and in the Q1 2011 versions: http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx.
For your convenience I am adding here a simple page that shows one way data can be passed and edited like this. I hope you find it helpful.

Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Window
Asked by
Ron
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or