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

set_Content not working

1 Answer 122 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Larkin Young
Top achievements
Rank 2
Larkin Young asked on 25 Aug 2007, 12:01 PM
Is this client method not implemented in the current build? I have a client-side function like the following:

function DisplayUploadToolTip(targetControlId)  
        {  
            window.setTimeout(function()  
                    {                         
                        var tooltip = $find('<%=FileUploadToolTipForm.ClientID %>');                              
                        tooltip.set_TargetControlID(targetControlId);                        
                        tooltip.set_Content("<span>Testing</span>");  
                        tooltip.show();                                                                            
                    }, 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?

Thanks,
Larkin

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 28 Aug 2007, 11:55 AM
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';  
    tooltip.set_ContentElement(contentElement);  
 

Greetings,
Tsvetie
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ToolTip
Asked by
Larkin Young
Top achievements
Rank 2
Answers by
Tsvetie
Telerik team
Share this question
or