Change Title for View

3 posts, 0 answers
  1. Keith Avery
    Keith Avery avatar
    11 posts
    Member since:
    Jun 2007

    Posted 04 Apr 2012 Link to this post

    I have a view with a listview showing some menu items generated from a web service data source.

    Each menu item has an onclick which causes the listview to be rebinded with new menu items.

    At this point I also want to change the title of the view. How do I do this?

    I tried:
    document.getElementById("myView").setAttribute("data-title", myNewTitle)
    but this only works when the page is first displayed.

    Thanks
    Keith
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 05 Apr 2012 Link to this post

    Hello Keith,

     
    The title of the view is located in the NavBar widget. You will need to change the title of the navbar using the title method.

    All the best,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Keith Avery
    Keith Avery avatar
    11 posts
    Member since:
    Jun 2007

    Posted 05 Apr 2012 Link to this post

    Thanks for info.

    Obvious when you know how!
Back to Top