RadCard OnClick Event

1 Answer 193 Views
Ajax Card
Joan
Top achievements
Rank 1
Joan asked on 12 May 2021, 09:30 PM

I am unable to call the OnClick event when selecting a CardAction.  Any help would be appreciated.

<telerik:CardActionsContainerComponent runat="server" CardActionsAlignment="Stretched" Orientation="Horizontal">
     <telerik:CardActionComponent runat="server" AutoPostBack="true">
          <telerik:RadButton ID="btnAgree" runat="server" AutoPostBack="true" RenderMode="Lightweight" 
                                        CssClass="k-button k-flat k-primary" Font-Size="14px" Text="I Agree" OnClick="btnAgree_Click" />
     </telerik:CardActionComponent>
</telerik:CardActionsContainerComponent>

1 Answer, 1 is accepted

Sort by
0
Accepted
Vessy
Telerik team
answered on 17 May 2021, 03:08 PM
Hi Joan,

Can you, please, confirm, that there are no any JavaScript errors when the problem occurs?

I tested the provided setup, but the OnClick event of the button is triggered successfully at my end. You can find my test page attached to this reply - are you facing the same behavior with it?

 

Regards,
Vessy
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Joan
Top achievements
Rank 1
commented on 17 May 2021, 03:20 PM

Vessy,
Thanks you for the reply. I resolved the issue this morning. The problem was with the required validation on the screen which was failing. The validation is not required for this action so I set CausesValidation to False for the button.
Vessy
Telerik team
commented on 17 May 2021, 04:52 PM

Thanks a lot for the update, Joan! I am you have found the root of the problem and the button behaves as desired now.

Vessy

Tags
Ajax Card
Asked by
Joan
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or