RadWindow and CSLA collections

2 posts, 0 answers
  1. B J
    B J avatar
    1 posts
    Member since:
    Jul 2009

    Posted 16 Jul 2009 Link to this post

    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
  2. HHalim
    HHalim avatar
    69 posts
    Member since:
    Aug 2005

    Posted 16 Jul 2009 Link to this post

    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.




Back to Top