Toolbar template

4 posts, 1 answers
  1. Ronald
    Ronald avatar
    21 posts
    Member since:
    Dec 2007

    Posted 09 Jul 2015 Link to this post

    Hi,

    I was wondering if there is a way to accomplish the toolbar functionality in a TreeList as shown for this example in a Grid: Grid / Toolbar template

    We need a filtering textbox in the toolbar, that filters the items when the input has changed.

     In the pages with Grid's I use buttons with icons from Font Awesome in the Toolbar, in the TreeList I only seem to be able to add buttons via Custom:

     

    .Toolbar(toolbar =>
        {
            toolbar.Custom().Name("addfieldbutton").Text("Veld toevoegen");
            toolbar.Custom().Name("addfolderbutton").Text("Folder toevoegen");
        })

     

    It would be nice to keep the design the same when using a TreeList.

     Here's my Toolbar for a grid.

     

    .ToolBar(toolbar =>
    {
        toolbar.Template(
            @<text>
                @(Html.Kendo().Button()
                    .Name("ButtonAddProperty")
                    .HtmlAttributes(new { type = "k-button" })
                    .Content("Property toevoegen")
                    .SpriteCssClass("fa fa-plus")
                    .Events(e => e.Click("onCreateProperty"))
                )
            </text>);
    })

     

    Best regards,

    Ronald

     

  2. Answer
    Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2272 posts

    Posted 13 Jul 2015 Link to this post

    Hello Ronald,

    Currently the UI for ASP.NET MVC TreeList does not have an option to define a toolbar template. I have logged this issue for fixing. Please excuse us for the inconvenience.

    Regards,
    Dimiter Madjarov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Bryon
    Bryon avatar
    8 posts
    Member since:
    Mar 2015

    Posted 12 Nov 2018 in reply to Dimiter Madjarov Link to this post

    Is there any word about this being a possibility now, or any way to apply a TemplateId at least, like on the cells?
  4. Tsvetina
    Admin
    Tsvetina avatar
    2374 posts

    Posted 14 Nov 2018 Link to this post

    Hi Bryon,

    Such setting has not been added yet to the MVC TreeList. There is a feature request opened in the feedback portal that you can vote for:
    TreeList ToolBar Template

    The more highly demanded features like client-side paging, multi-column headers and in-cell editing were added with the last release.

    Regards,
    Tsvetina
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top