manually change navbar title

4 posts, 0 answers
  1. Ahmad
    Ahmad avatar
    7 posts
    Member since:
    Jul 2012

    Posted 06 Jul 2012 Link to this post

    Hi

    I'm calling a function everytime user switch to a new view (using "data-show") part of the function is to change the title based on user input

    my problem is that even when I change the title using jquery with the title span id, I can see Kendo will reset it back to data-title


    Note: I'm changing the title using :
    $('#view-title').html(q);
    $('#view-search').attr('data-title',q);
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2593 posts

    Posted 11 Jul 2012 Link to this post

    Hi Ahmad,

    I have replied to your support ticket on the same subject, however I am pasting my reply here as well: 

    I am not sure if I understand your scenario correctly. Could you please provide more detailed information and preferably a sample runnable project that replicates the problem? Thus way I would be able to investigate your case in details and do my best to provide you with an accurate solution. Thank you in advance.   
     

    Regards,
    Iliana Nikolova
    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. Josh
    Josh avatar
    50 posts
    Member since:
    Jul 2009

    Posted 09 Aug 2012 Link to this post

    If you are trying to change the header of a mobile view  (data-role="header"):

    Using jquery to change any html content within the header will not work.


    I was able to do it by referencing the header from the view object itself:

    $(view.header[0]).find("selector").html("CUSTOM TEXT HERE");
    

    where

    view = the mobile view you are trying to change
  5. Josh
    Josh avatar
    50 posts
    Member since:
    Jul 2009

    Posted 22 Aug 2012 Link to this post

    In addition to the method I outlined above, if you remove the HTML element that has the content you want to change then set it back using jquery HTML it works as well.
Back to Top
Kendo UI is VS 2017 Ready