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

[Solved] Changing the 'Show more ...' text

2 Answers 172 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Cedric
Top achievements
Rank 1
Cedric asked on 29 Oct 2007, 06:11 PM
Good day.

When there are too much appointments on a particular day, in the MonthView, the text 'Show more ...' appears. Is there a way to change this text to something else?

Also, I just found out that I don't have the Culture attribute...

Thank you!

2 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 30 Oct 2007, 12:58 PM
Hello Cedric,

Thanks for your question. Actually, it turned out that we have missed to localize the "Show more..." text. We will take care of this for the next service pack and the localization list (see attached) will have a property which will allow you to customize this text.

As for the Culture property, I am not sure why you cannot find it. Did you try using the intellisense? Or, try to locate it from the properties window of RadScheduler at design-time


Cheers,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Cedric
Top achievements
Rank 1
answered on 30 Oct 2007, 05:37 PM
Good day,

maybe this will be useful to someone. If you want to change the 'Show more ...' text to something else, you can find the node, and change it's content. This can be done by using this code;
/*
Written by Jonathan Snook, http://www.snook.ca/jonathan
Add-ons by Robert Nyman, http://www.robertnyman.com
*/
<
script type="text/javascript">  
            function getElementsByClassName(oElm, strTagName, oClassNames){  
            var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);  
            var arrReturnElements = new Array();  
            var arrRegExpClassNames = new Array();  
            if(typeof oClassNames == "object")  
            {  
                for(var i=0; i<oClassNames.length; i++)  
                {  
                    arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames[i].replace(/\-/g, "\\-") + "(\\s|$)"));  
                }  
            }  
            else  
            {  
                arrRegExpClassNames.push(new RegExp("(^|\\s)" + oClassNames.replace(/\-/g, "\\-") + "(\\s|$)"));  
            }  
            var oElement;  
            var bMatchesAll;  
            for(var j=0; j<arrElements.length; j++){  
                oElement = arrElements[j];  
                bMatchesAll = true;  
                for(var k=0; k<arrRegExpClassNames.length; k++){  
                    if(!arrRegExpClassNames[k].test(oElement.className)){  
                        bMatchesAll = false;  
                        break;  
                    }  
                }  
                if(bMatchesAll){  
                    arrReturnElements.push(oElement);  
                }  
            }  
            return (arrReturnElements)  
            }  
              
        var liste;  
        liste = getElementsByClassName(document, "div", "rsShowMore rsWrap");  
          
        for (var i=0; i< liste.length;i++)  
            liste[0].lastChild.nodeValue = 'NEW TEXT HERE';           
        </script> 

The getElementsByClassName was created by Jonathan Snook and Robert Nyman, at http://www.robertnyman.com/2005/11/07/the-ultimate-getelementsbyclassname/

However, if you use his function, ask them about copyrights.
Tags
Scheduler
Asked by
Cedric
Top achievements
Rank 1
Answers by
Peter
Telerik team
Cedric
Top achievements
Rank 1
Share this question
or