set_Content not working

2 posts, 0 answers
  1. Larkin Young
    Larkin Young avatar
    141 posts
    Member since:
    Feb 2005

    Posted 25 Aug 2007 Link to this post

    Is this client method not implemented in the current build? I have a client-side function like the following:

    1 function DisplayUploadToolTip(targetControlId)  
    2         {  
    3             window.setTimeout(function()  
    4                     {                         
    5                         var tooltip = $find('<%=FileUploadToolTipForm.ClientID %>');                              
    6                         tooltip.set_TargetControlID(targetControlId);                        
    7                         tooltip.set_Content("<span>Testing</span>");  
    8               ;                                                                            
    9                     }, 10);  
    10         } 

    In the code snippet above, I tried the code in line 7 where it is shown, but I get a javascript exception that content_cell is null. If i place that same code after line 8, nothing happens.

    Am I doing this wrong or is this function not yet implemented?

  2. Tsvetie
    Tsvetie avatar
    1517 posts

    Posted 28 Aug 2007 Link to this post

    Hi Larkin Young,
    Yes, the set_Content method is not yet implemented to be used in scenarios as yours. This is on our TODO list and we will fix it. For the time being please use the set_ContentElement:

        var contentElement = document.createElement('SPAN');  
        contentElement.innerHTML = 'Testing';  

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. DevCraft R3 2016 release webinar banner
Back to Top