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

OnClientCheckedChanged not working on RadButton

1 Answer 91 Views
Button
This is a migrated thread and some comments may be shown as answers.
Mattia
Top achievements
Rank 1
Mattia asked on 20 Jul 2011, 11:47 AM
Hello all,
Here the markup of my code.

<div class="search-filter-categories">
<asp:UpdatePanel runat="server" ID="updatePanelCategories" UpdateMode="Conditional">
<ContentTemplate>
<telerik:RadListView  ID="categoriesList" runat="server"  OnItemDataBound="CategoryDataBound"  >
    <ItemTemplate>    
        <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>        
    </ItemTemplate>
    <LayoutTemplate>
        <div class="search-filter-categories-columns"><div id="itemPlaceholder" runat="server"></div></div>
        <div class="cb"></div>
    </LayoutTemplate>
</telerik:RadListView>
</ContentTemplate>
</asp:UpdatePanel>
<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;"
        RenderInPageRoot="true">
</telerik:RadToolTipManager>
</div>

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?

Thanks,
Mattia

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 21 Jul 2011, 11:34 AM
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,
Slav
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!

Tags
Button
Asked by
Mattia
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or