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

LinkButton with params - RadConfirm not working

1 Answer 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Peter Landis
Top achievements
Rank 1
Peter Landis asked on 25 Jul 2009, 04:39 PM
I have a linkbutton in which I need to add a radconfirm to it.  The behavior of the LinkButton is the postback is triggered and the page is refreshed and adding a return false with customizing the radconfirm resolves this and works great.

The issue I am having is if you need to customize the LinkButton with CSS such as having a link button with the tags <b> used.  (My real example uses more css to create a css compliant button) this causes an issue with RadConfirm.

I followed the example from the link attachment and just added the tag "<b>"
http://www.telerik.com/community/forums/aspnet-ajax/window/radconfirm-closes-immediately-after-popup.aspx

asp:LinkButton ID="linkBtn" runat="Server" OnClientClick="return radconfirm('Are you sure?', event, 400, 200,'','Custom title');" Text="Delete Item" OnClick="linkBtn_Click"><b>This does not</b></asp:LinkButton>

Taking the attachment and just adding the tags <b> in the example causes the RadConfirm to not work.  The issue is the caller object being sent to the radconfirm is not the LinkButton "<A>" tag but the "<b>" tag so this results in no post back via the href call.

How can this be fixed or what's a work around with the javascript radconfirm function?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 27 Jul 2009, 10:09 AM
Hi Peter,

Have you tried wrapping the whole link instead of just wrapping the text in a bold tag?
e.g.

<b><asp:LinkButton ID="linkBtn" runat="Server" OnClientClick="return radconfirm('Are you sure?', event, 400, 200,'','Custom title');" Text="Delete Item" OnClick="linkBtn_Click">This does not</asp:LinkButton></b


I hope this helps.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Peter Landis
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or