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 putradopen(
null, sender.CommandName )
Or are you looking at potential isues here?
5 Answers, 1 is accepted
0
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
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
Cheers
0
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
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