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

How to set the Header text 'HeaderDay,HeaderMonth' without using resx files

1 Answer 51 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
David Stacey
Top achievements
Rank 1
David Stacey asked on 01 Dec 2020, 02:01 PM

i would like to set the text of the the "Day/Week/Month/Year"-Buttons in the top right corner

Can this simple be done in code behind without using a resx file as I've already have a custom localization provider linked to a database

i.e. GanttChart.ToolbarButtons[0].text = "test"

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 04 Dec 2020, 09:24 AM

Hello David,

The header texts are controlled by the Localization setting of the Gantt and you can set the from the markup or the code behind:

<telerik:RadGantt RenderMode="Lightweight" ID="RadGantt1" runat="server" >
     <Localization HeaderDay="My Day" HeaderWeek="My Week" HeaderMonth="My Month" HeaderYear="My Year" />

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Gantt
Asked by
David Stacey
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or