Advanced Dashboard with Rad Windows

7 posts, 1 answers
  1. Arindam
    Arindam avatar
    28 posts
    Member since:
    Mar 2009

    Posted 30 Mar 2009 Link to this post

    Well before I put up the questions, thanks a lot to telerik teams and members, you people rocks..

    I am having 2 problems

    1. I need to make interactions between my RadWindows.
    Suppose I am having a treeview and now I drag and dropped 3 or 4 radwindows in my div or zone. Now whenever I change some thing in one of my window then other radwindows should reflect the changes as per 1st one. Is that any possible way to track those things?

    2. Track Reload event in RadWindows.
    I need to track the Reload event of RadWindow. what exactly I want to achive is this. Suppose I dragged and dropped radwindow in my zone, I given the link as www.telerik.com, suppose I click reload button in top right corner is their any chances that I redirect the page to www.google.com i.e at load of radwindow (i.e. whenever I am dragging and dropping the radwindows ) it should open www.telerik.com but after hitting reload button it will redirect to www.google.com. Is this possible to do?

    Reply awaited.
    Thanks in advance!!!
    Arindam Roy
  2. Arindam
    Arindam avatar
    28 posts
    Member since:
    Mar 2009

    Posted 31 Mar 2009 Link to this post

    Can I have some replies!!!
    Do I need to explain my queries in more details?
  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 01 Apr 2009 Link to this post

    Hi Arindam,

    As I noted in my previous reply  you could restrict the movement of RadWindow by using the RestrictionZone feature. I am not quite sure however, that RadWindow is suitable for your scenario. Note that RadWindow is based on an IFRAME and behaves just like one. Like the IFRAME and the standard browser's popup (window.open()), RadWindow is simply a container that displays a content page, different from the parent one. In such environment, the communication between the parent and the content is done on the client with JavaScript.

    This being said, you could check the RadDock control, which might be more appropriate for scenarios like yours. If you insist on using RadWindow, I suggest to implement the desired functionality by using a standard IFRAME or a browser's popup. Once you have your logic working as expected, send us the runnable project and we will rework it for you so it uses RadWindow.


    Greetings,
    Georgi Tunev
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  4. Arindam
    Arindam avatar
    28 posts
    Member since:
    Mar 2009

    Posted 01 Apr 2009 Link to this post

    Hi

    Thanks for your reply.
    Could you please tell me is it possible to track the Reload event of the Radwindow?

    Regards
    Arindam Roy
  5. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Apr 2009 Link to this post

    Hi Arindam,

    I found one forum thread discussing about "Hooking into window Reload ",
    Hope this helps you

    -shinu.
  6. Arindam
    Arindam avatar
    28 posts
    Member since:
    Mar 2009

    Posted 02 Apr 2009 Link to this post

    Hi Shinu -

    Thanks for your reply. It help me somewhat but got stuck in javascript:-

    <script type="text/javascript">
            function oCCWindow(sender, eventArgs)  
            {  
                window.alert("1");
                alert("Window with ID " + sender.get_id() + ". Command is " + eventArgs.get_commandName());   
            }
             
            function openDashboards(sender, eventArgs)
            {
                    //get the clicked node
                    var title = eventArgs.get_node(sender, eventArgs).get_text();
                    var link = eventArgs.get_node(sender, eventArgs).get_value();
                    var oWnd = radopen(link,null);
                    oWnd.OnClientCommand = 'oCCWindow';
                    oWnd.set_title(title);
                    
            }
            </script>

    So when I am calling openDashboards from javascript oCCWindow function is not getting invoked. Now if you say how I am calling openDashboards, then its basically drag and drop event of treeview, OnClientNodeDragging I am calling openDashboards function, so when I am clicking the Refresh event of Radwindow I should get the alert message, could you please tell me where I am going wrong?

    Reply awaited!!!



  7. Arindam
    Arindam avatar
    28 posts
    Member since:
    Mar 2009

    Posted 02 Apr 2009 Link to this post

    Hey I got it.. thanks for your help...
    Cheers to Admin & Shinu for your help!!!
Back to Top