Toolbar and windows

6 posts, 1 answers
  1. Rhys
    Rhys avatar
    16 posts
    Member since:
    May 2008

    Posted 17 Jul 2008 Link to this post

    I want to use the toolbar to open a window, I have DLed the code form the site and I have a question on that code.  In the code it says if 

    if(sender.CommandName == "newCustomer")

    Can I not just put 

    radopen(

    null, sender.CommandName )

    Or are you looking at potential isues here?

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Jul 2008 Link to this post

    Hello Rhys,

    Which example do you have in mind? Can you send us its url so we can review it?

    Regards,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rhys
    Rhys avatar
    16 posts
    Member since:
    May 2008

    Posted 17 Jul 2008 Link to this post

    Hi Peter, I am not sure what you mean by example.

    Cheers
  5. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Jul 2008 Link to this post


    I thought you are referring to one of the online examples for either RadToolBar or RadWindow. If that's not the case, then send us the complete code of the sample that you are interested in. You can paste code here or you can open a support ticket and attach files there.   


    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Rhys
    Rhys avatar
    16 posts
    Member since:
    May 2008

    Posted 17 Jul 2008 Link to this post

    Hi Peter my code is

    radopen(null, sender.CommandName )

    I want to use that instead of the IF satetment that is listed in the Open a window form toolbar code example.

    Thanx

  7. Answer
    Peter
    Admin
    Peter avatar
    6637 posts

    Posted 17 Jul 2008 Link to this post


    Here is a an example which you can try. Is this what you need?

    <script type="text/javascript">    
          function OnClientButtonClickingHandler(sender, eventArgs)  
          {  
            var url = eventArgs.get_item().get_commandName() + ".aspx";  
            window.radopen(url);  
          }    
        </script> 
        <telerik:RadToolBar ID="RadToolBar1" OnClientButtonClicking="OnClientButtonClickingHandler" 
            runat="server">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            <Items> 
                <telerik:RadToolBarButton runat="server" CommandName="one" Text="Button 0">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" CommandName="two" Text="Button 2">  
                </telerik:RadToolBarButton> 
                <telerik:RadToolBarButton runat="server" CommandName="three" Text="Button 4">  
                </telerik:RadToolBarButton> 
            </Items> 
        </telerik:RadToolBar> 
        <telerik:RadWindowManager runat="server" ID="RadWindowManager1">  
        </telerik:RadWindowManager> 



    Best wishes,
    Peter
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017