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

Change Title for View

2 Answers 292 Views
ListView (Mobile)
This is a migrated thread and some comments may be shown as answers.
Keith Avery
Top achievements
Rank 1
Keith Avery asked on 04 Apr 2012, 10:28 AM
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 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 05 Apr 2012, 03:40 PM
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!
0
Keith Avery
Top achievements
Rank 1
answered on 05 Apr 2012, 03:48 PM
Thanks for info.

Obvious when you know how!
Tags
ListView (Mobile)
Asked by
Keith Avery
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Keith Avery
Top achievements
Rank 1
Share this question
or