AfterClientCheck and AfterClientClick not firing/hitting correct js function

2 posts, 0 answers
  1. Eric Carlson
    Eric Carlson avatar
    12 posts
    Member since:
    Nov 2005

    Posted 12 Oct 2011 Link to this post

    I'm trying to use the AfterClientCheck javascript event on a simple test page in a VS2008 test project, but it's not working.  OnClientMouseOver is working just fine, so javascript is working.

    Any thoughts?

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="myNamespace.WebForm1" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <head runat="server">
        <script type="text/javascript">
            function test(input, args) {
            function AfterCheckHandler(node) {
                alert("You have checked " + node.Text + " which is now " + node.Checked);
            } function AfterClickHandler(node) {
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <telerik:RadTextBox ID="RadTextBox1" runat="server" ClientEvents-OnKeyPress="test">
            <telerik:RadTreeView ID="RadTreeView1" CheckBoxes="True" runat="server" AfterClientClick="AfterClickHandler"
     AfterClientCheck="AfterCheckHandler" OnClientMouseOver = "test">
                        <telerik:RadTreeNode runat="server" Text="Books" ExpandMode="ClientSide">
                                <telerik:RadTreeNode runat="server" Text="Fiction">
                                <telerik:RadTreeNode runat="server" Text="Non-Fiction">

    As you can see, I used one of the simple samples and only added the events I was interested in to test them.
  2. Eric Carlson
    Eric Carlson avatar
    12 posts
    Member since:
    Nov 2005

    Posted 13 Oct 2011 Link to this post

    This was resolved.  I was using an event and event handler from an obsolete demo.  Updating to the current demo solved the problem.
Back to Top