Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8337207
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:14:06+00:00 2026-06-09T04:14:06+00:00

<%: Html.Telerik().TreeView() .Name(ZebTree) .ExpandAll(false) .ClientEvents(events => events.OnSelect(TreeView_onSelect)) .BindTo(Model , map => { map.For<TreeViewBind.Models.Category>(bind =>

  • 0
<%:
    Html.Telerik().TreeView()
    .Name("ZebTree")
    .ExpandAll(false)
    .ClientEvents(events => events.OnSelect("TreeView_onSelect"))
    .BindTo(Model , map =>
            {
                map.For<TreeViewBind.Models.Category>(bind => bind.ItemDataBound((item, category) => { item.Text = category.CategoryName; }).Children(category => category.Products));
                map.For<TreeViewBind.Models.Product>(bind => bind.ItemDataBound((item, product) => { item.Text = product.ProductName;}));
            }        
    )
%>

Above is the code for generating tree in telerik mvc. I want to perform action by selecting the node. When somebody click on specific node i want it to navigate to about page and passing the text of that node as argument to about page.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T04:14:08+00:00Added an answer on June 9, 2026 at 4:14 am

    Yo guys,

    Actually there is a method called Action which you can use to specify the action which you want your item to point to. You probably don’t see it because the intellisence is quite confused. You can be a bit more specific like this:

    .BindTo(Model,(NavigationBindingFactory<TreeViewItem> mappings) =>
        {
            mappings.For<Category>(binding => binding
                    .ItemDataBound((item, category) =>
                    {
                        item.Action("Test", "Home", new{text=category.CategoryName});//here you can assign the action method , the last parameter is the route values
                        item.Text = category.CategoryName;
                    })
         }
    

    I hope this is what you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using this code in my view: @(Html.Telerik().TreeView() .Name(AjaxTreeView) .BindTo(Model, (item, category) =>
I'm using grid that looks like that: Html.Telerik().Grid(Model).Name(preciousGrid). ... bla bla bla.. .ClientEvents(events =>
Using telerik Panel Bar Html.Telerik().PanelBar() .Name(PanelBar) .BindTo(Model, mappings => { mappings.For<Category>(binding => binding .ItemDataBound((item,
I have an editor that built as follows: EditorBuilder builder = context.Html.Telerik().Editor() .Name(ID) .Encode(false)
I could create a grid with telerik mvc <% Html.Telerik().Grid(Model) .Name(ProductGrid) .Columns(columns => {
I have the following markup. @(Html.Telerik().Grid(Model) .Name(Grid) .DataKeys(keys => keys.Add(key => key.Id)) .Columns(columns =>
I am using the following script to make a treeview: <% Html.Telerik().TreeView() .Name(TreeView) .Items(treeview
I have this in my code: @model Tuple<IEnumerable<dynamic>, IEnumerable<dynamic>, IEnumerable<dynamic>> @(Html.Telerik().Grid(Model.Item3) .Name(Grid) .DataKeys(keys =>
My grid: @( Html.Telerik().Grid<eGate.BackOffice.Core.Model.UI.EgateMenuRevisionViewData>() .Name(Grid) .Columns(columns => { columns.Bound(c => c.ParentId) .Aggregate(a => a.Count()).ClientGroupHeaderTemplate(Html.ActionLink(Create
Look at this example code, from a Telerik MVC grid: <% Html.Telerik().Grid(Model.InstallerList) .Name(InstallerGrid) .DataKeys(key

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.