Updating tab text

2 posts, 0 answers
  1. Ed
    Ed avatar
    4 posts
    Member since:
    Sep 2013

    Posted 09 Jan Link to this post

    A user has the power to select their language and on save, updates every control on the screen. 

    I am not seeing the text within a RadTabStrip is being updated. 

    My code is simialr to below:

    I locate the tab in question, and assign the text within Page_Load. 

                Dim myTab As RadTab = WindowTabs.Tabs.FindTabByValue("SomeTab")
                myTab.Text = GetLabelBasedOnSelectedLanguage(myTab) ' this returns the proper value 

    I can see myTab.Text now holding the proper value BUT on the screen there is no change. 

    Is there a way to update the text on the fly via server side?

    thank you 

     

  2. Vessy
    Admin
    Vessy avatar
    1848 posts

    Posted 12 Jan Link to this post

    Hi Ed,

    I tested the provided configuration and the tab text is changed successfully at my end. I am changing the values on Postback, inside the Page_Load handler - I am attaching my test page tot his reply so you can examine it at your end.

    A possible thing that can prevent the tabs to be updated properly in the described way is if the update is made in Ajax request (or a Callback) and the Tabstrap is not updated, respectively. Are you using Ajax updates on your page? Can you attach a simplified version of it where we can examine the problematc configuration see what causes the issue?

    Regards,
    Vessy
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top