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

Toolbar and windows

5 Answers 79 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Rhys
Top achievements
Rank 1
Rhys asked on 17 Jul 2008, 10:14 AM
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?

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 17 Jul 2008, 11:53 AM
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
0
Rhys
Top achievements
Rank 1
answered on 17 Jul 2008, 12:12 PM
Hi Peter, I am not sure what you mean by example.

Cheers
0
Peter
Telerik team
answered on 17 Jul 2008, 12:34 PM

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
0
Rhys
Top achievements
Rank 1
answered on 17 Jul 2008, 12:45 PM
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

0
Accepted
Peter
Telerik team
answered on 17 Jul 2008, 01:48 PM

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
Tags
ToolBar
Asked by
Rhys
Top achievements
Rank 1
Answers by
Peter
Telerik team
Rhys
Top achievements
Rank 1
Share this question
or