This is a migrated thread and some comments may be shown as answers.
RadWindow and CSLA collections
1 Answer 19 Views
This is a migrated thread and some comments may be shown as answers.
B J
Top achievements
Rank 1
B J asked on 16 Jul 2009, 08:32 AM
Hi Telerik Team,

I am using CSLA as a framework for my library. I have managed to incorporate it with the telerik controls, but I have one issue now that I don't know how to solve and if my idea of a solution is possible.
I have an .aspx page, and I want to pass a collection csla object to the radwindow that I am opening, so I can display that collection within the window. In the window, I would like to be able to manipulate with the collection, add/remove items. The final part is returning the collection back from the window to the caller page.
NOTE: The collection belongs to the parent object of the caller page, and it gets saved within the main page. ONLY modifications to the collection are done within the rad window.

Please, any ideas?

Thanks a lot,
lektira

1 Answer, 1 is accepted

Sort by
0
HHalim
Top achievements
Rank 2
answered on 16 Jul 2009, 04:12 PM
Check this demo out:
http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx

This is one way to communicate between parent-child page on the client side. I'm not familiar with CSLA, but you can pass the collection as query string to the RadWindow. The radwindow is essentially an iframe, so think of your client communication between a page and an iFrame. Another way is after the radwindow is loaded (window.onload), call a javascript to the parent page that returns the collection, modify the collection and pass it back when closing the radwindow. The radwindow help document should detail how to get the parent page and do this.

I've heard that Telerik will have RadWindow feature without using iFrame, my assumption with this new feature you don't have to pass the collection around since it will all be in the same page, but don't know the detail, I'm not Telerik.

Good luck.




Asked by
B J
Top achievements
Rank 1
Answers by
HHalim
Top achievements
Rank 2
Share this question
or