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

[Solved] multiple commands in toolbar?

7 Answers 238 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kyle Pike
Top achievements
Rank 1
Kyle Pike asked on 08 Apr 2010, 06:51 PM
Hi,

from the examples i see how to add one button to the toolbar with a custom command attached. what is the syntax to add multiple buttons?

7 Answers, 1 is accepted

Sort by
0
IQworks
Top achievements
Rank 1
answered on 09 Apr 2010, 01:49 AM
Hi,
   Did you mean to enter this post in the toolbar forum topic ? if not, please excuse me.
   http://www.telerik.com/community/forums/aspnet-ajax/toolbar.aspx
thanks
0
nachid
Top achievements
Rank 1
answered on 13 Sep 2011, 07:39 AM
.ToolBar(toolBar => {
              toolBar.Custom().Text("Export to CSV").Action("Action", "Controller");
              toolBar.Custom().Text("Import from CSV").Action("Action", "Controller");
              toolBar.Insert();
             }

0
Ryan
Top achievements
Rank 1
answered on 11 Nov 2011, 11:58 AM
Thanks nachid - just what I needed.
0
Rick
Top achievements
Rank 2
answered on 25 Jan 2012, 02:04 AM
This does not work if I've used toolBar.Tempate(...)
Any idea how to add toolbar.Insert()?
0
Daniel
Telerik team
answered on 26 Jan 2012, 11:18 AM
Hi Rick,

Using Toolbar template and commands are currently not supported at the same time. We plan to add this functionality in our next official release. As a workaround for now, I suggest to include the HTML of the command inside the template. For example, to use the Add command with the toolbar template:

.ToolBar(tools =>
    {           
        tools.Template(
        @<text>
        <a class="t-button t-grid-add" >Add new record</a>
        ...


Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Rick
Top achievements
Rank 2
answered on 26 Jan 2012, 08:18 PM
Thank you. Works nicely.
0
Mahesh
Top achievements
Rank 1
answered on 01 Mar 2012, 12:22 PM
If I provide paging in both sides then that is appearing in other toolbar But I want to merge them into single toolbar..How can I overcome this problem?
Tags
Grid
Asked by
Kyle Pike
Top achievements
Rank 1
Answers by
IQworks
Top achievements
Rank 1
nachid
Top achievements
Rank 1
Ryan
Top achievements
Rank 1
Rick
Top achievements
Rank 2
Daniel
Telerik team
Mahesh
Top achievements
Rank 1
Share this question
or