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

[Solved] Do you have working example for toolbar?

8 Answers 118 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ifdev02
Top achievements
Rank 1
Ifdev02 asked on 08 Apr 2009, 03:24 PM
Hello do you have any working example for rad toolbar, combobox, toolbarbutton that has some handlers.

I am kind of new here, you example only show interface but not really link to codebehind (I prefer in vb) to complete the job.

For instance it took me alot of time to find out about .findcontrol and .findcontrol button in template to modify some control at run time.
Now i really need to do some action for each buttons but have not many example for it.

If you can will help a lot.

8 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 08 Apr 2009, 03:33 PM

Hello Ifdev02,

When you install RadControls, our online examples projects are automatically installed on your computer and you can not only examine their full source code, but also extend them further in order to meet your requirements.

You can open the demos from here:

Start\Programs\Telerik\RadControls for ASPNET AJAX\Open Sample WebSite In VisualStudio

The actual location on your hard disk is the following one:

C:\Program Files\Telerik\RadControls for ASPNET AJAX \Live Demos

I hope that this information is helpful.

Kind regards,

Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Ifdev02
Top achievements
Rank 1
answered on 08 Apr 2009, 04:16 PM
Svetlina

I looked all demo in radtoolbar there is no codebehide action only UI...
Really that what I mean.
I want a small example adding some function like click in the menu. An empty function would be fine.

e.g.

 

<telerik:RadToolBarSplitButton runat="server" Text="Save Setting" CommandName="saveconfig"

 

 

ToolTip="Save chart setting" EnableDefaultButton="False" PostBack="true"

 

 

ImageUrl="~/Portals/icons/save1/Gear.png" >

 

 

<Buttons>

 

 

<telerik:RadToolBarButton runat="server" Text="Save image"

 

 

ToolTip="Save image to your PC" ImageUrl="~/Portals/icons/save1/Save.png">

 

 

</telerik:RadToolBarButton>

 


How do i add action to my SaveSetting button in code behide?

Thanks,
0
Atanas Korchev
Telerik team
answered on 08 Apr 2009, 04:51 PM
Hello Ifdev02,

You can check this example which shows how to add buttons from server side code.

Regards,
Albert
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Ifdev02
Top achievements
Rank 1
answered on 08 Apr 2009, 05:20 PM
I appreciated you quick response. I really dont want to be stubborn, but as you mention the example is adding/deleting UI...

So it has no example action from the buttons in these UIs...

for instance in your example

<asp:Button ID="btnAddDropDown" runat="server" CssClass="qsfButtonBigger" OnClick="btnAddDropDown_Click" Text="Add new DropDown" />

What is action command in your Rad.. e.g. the splitbutton?
0
Ifdev02
Top achievements
Rank 1
answered on 08 Apr 2009, 08:18 PM
I am looking at your control document.

It seems like all the actions (onclick etc) are the member of radtoolbar.
So the next thing is how do i know which buttons, submenu, combo in the toolbar is being interacted?

Does anyone can give some example to use onclientbuttonclicked / onclientcheckedstatechanged / onbuttonclick....
0
Accepted
Princy
Top achievements
Rank 2
answered on 09 Apr 2009, 08:01 AM
Hello,

You can refer to the following online demos which demonstrate on how to attach client side and server side events to your ToolBar:
Client-side Events
Server-side Events

Thanks
Princy.
0
Ifdev02
Top achievements
Rank 1
answered on 09 Apr 2009, 08:12 AM
Thanks Princy. Look like it is what I am looking for. Dummy me.

Just little more question, after done with these action for the toolbar.

I can use Ajax later to make sure that the whole page will not refresh on every click? I am right on the idea? 
0
Princy
Top achievements
Rank 2
answered on 15 Apr 2009, 08:15 AM
Hi,

Yes, you are right. You can either use a RadAjaxManager or a RadAjaxPanel to ajaxify your RadToolBar so as to avoid postback on button click.

Thanks
Princy.


Tags
General Discussions
Asked by
Ifdev02
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Ifdev02
Top achievements
Rank 1
Atanas Korchev
Telerik team
Princy
Top achievements
Rank 2
Share this question
or