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

Updating tab text

1 Answer 103 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 09 Jan 2018, 07:20 PM

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 

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 12 Jan 2018, 02:26 PM
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.
Tags
TabStrip
Asked by
Ed
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or