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

Can I use Telerik's JS library?

2 Answers 71 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sunsystem
Top achievements
Rank 1
sunsystem asked on 30 Aug 2008, 10:40 PM
For example: I want to hide any HTML element by using fade out animation in Telerik Websource Javasctip library. Following code block is giving a Javascript  error.

<form id="form1" runat="server"
    <telerik:RadScriptManager ID="scriptManager" runat="server"
    </telerik:RadScriptManager> 
    <div> 
        <asp:Label ID="lbl" runat="server" Text="Deneme deneme test deneme" BackColor="#CCFFCC" 
            BorderColor="#33CC33" BorderStyle="Solid" BorderWidth="1px" Font-Bold="True" 
            Font-Overline="False" Font-Size="XX-Large"></asp:Label> 
    </div> 
    <script language="javascript" type="text/javascript"
     
    $telerik.addExternalHandler(window,"load",function(){ 
         
        $TWA.FadeOutAnimation("<%=lbl.ClientID %>",5000,12,0,100,false); 
         
    });     
     
    </script> 
    </form> 

[Exception... "'Sys.ArgumentTypeException: Sys.ArgumentTypeException: Object of type 'Object' cannot be converted to type 'Telerik.Web.Animation.Animation'.
Parameter name: instance' when calling method: [nsIDOMEventListener::handleEvent]"  nsresult: "0x8057001c (NS_ERROR_XPC_JS_THREW_JS_OBJECT)"  location: "<unknown>"  data: no]
http://localhost/test/ScriptResource.axd?d=xaFaZSmTqsDtn6RXGPYEctl5heZz2bXadFYPgQtWAk8ViMG9nWQU_wdUuNvUR01T_jvUqe2AegLMn6_E0rdmjj7dhQUGW3XwIyQHc95wbiU1&t=51124636
Line 6342

2 Answers, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 01 Sep 2008, 02:39 PM
Hello,

The use of internal JavaScript methods from our client-side library is currently not supported and we do not provide any documentation resources for using it outside of RadControls.

All the best,
Ivo
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
sunsystem
Top achievements
Rank 1
answered on 02 Sep 2008, 07:04 AM
I did with following code. It's working very good.

    <script language="javascript" type="text/javascript"
     
    $telerik.addExternalHandler(window,"load",function(){ 
        setTimeout("FadeOut('<%=lbl.ClientID %>')",5000) 
    }); 
     
    function FadeOut(objName){ 
        var xyz=new Telerik.Web.Animation.FadeInAnimation($get(objName),1,25,1,0,false); 
        xyz.play(true); 
    } 
     
    </script> 
 

Thank you anyway...

Bahatar
The Last Rad Bender...
Tags
General Discussions
Asked by
sunsystem
Top achievements
Rank 1
Answers by
Ivo
Telerik team
sunsystem
Top achievements
Rank 1
Share this question
or