OnClientCheckedChanged not working on RadButton

2 posts, 0 answers
  1. Mattia
    Mattia avatar
    11 posts
    Member since:
    Jun 2011

    Posted 20 Jul 2011 Link to this post

    Hello all,
    Here the markup of my code.

    <div class="search-filter-categories">
    <asp:UpdatePanel runat="server" ID="updatePanelCategories" UpdateMode="Conditional">
    <telerik:RadListView  ID="categoriesList" runat="server"  OnItemDataBound="CategoryDataBound"  >
            <div class="search-filter-categories-item">
                <telerik:RadButton AutoPostBack="false" ButtonType="ToggleButton" ToggleType="CheckBox" CommandArgument='<%# Eval("Id") %>' runat="server" ID="chkOption" OnClientCheckedChanged="showMyToolTip" Text='<%# Eval("Name") %>' /><div class="cb"></div>
            <div class="search-filter-categories-columns"><div id="itemPlaceholder" runat="server"></div></div>
            <div class="cb"></div>
    <telerik:RadToolTipManager ID="toolTipManager" ShowEvent="FromCode" HideEvent="FromCode" runat="server" EnableShadow="true"
            Position="BottomCenter" Modal="true" Animation="Fade" AutoTooltipify="false" OnAjaxUpdate="OnAjaxUpdate" RelativeTo="Mouse"
            Width="180px" Height="150px" Style="font-size: 18px; text-align: center; font-family: Arial;"

    i have a javascript function called showMyTooltip(sender, args).
    The function is correctly called when check/uncheck the checkbox but sender is just the ClientID of the control and args is alwais null.
    So i can't use args.get_checked() to see if is checked or not.
    Why args is always null?

  2. Slav
    Slav avatar
    1351 posts

    Posted 21 Jul 2011 Link to this post

    Hello Mattia,

    I tried recreating your scenario, but was not able to reproduce the problem that you mentioned. You can find my test project attached. Please compare it with yours and check if you set up the client-side event handler showMyToolTip properly. You can also try modifying the provided sample, so that it matches your case.

    If you are still unable to resolve your difficulties, please open a regular support ticket and send us the modified test project or sample, runnable project that displays your issue so that we can examine it locally and provide a more to the point answer.

    All the best,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  3. DevCraft R3 2016 release webinar banner
Back to Top