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

[Solved] Data Binbing RowHeader Text

1 Answer 64 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Sheng Xu
Top achievements
Rank 1
Sheng Xu asked on 22 Oct 2009, 02:21 PM
I can change text using OnHeaderCellRender but the client side script change it back to default. How can I do it then? 

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 27 Oct 2009, 07:36 AM
Hello Sheng,

Those values are re-evaluated on client initialization of RadCalendar and this might be the reason for loosing them. One possible solution could be by overriding the following function:
01.<script type="text/javascript"
02.    Telerik.Web.UI.Calendar.CalendarView.prototype.isNumber = function(a) {
03.        if (typeof a == "string")
04.            return false;
05.   
06.        if (isNaN(parseInt(a)))
07.            return false;
08.        else
09.            return true;
10.    }
11.</script>


Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Calendar
Asked by
Sheng Xu
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or