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

Is there a way to implement "ConfirmText" on RadMenuItem?

4 Answers 55 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jeff McAlear
Top achievements
Rank 1
Jeff McAlear asked on 26 May 2010, 03:07 PM
Does anyone know of a way to reproduce the ConfirmText functionality that's available on GridButtonColumn controls for RadMenuItem controls?  I have a menu item that the user will click in order to delete something, but before proceeding with the delete operation I would like to ask the user to confirm in case they clicked the button by accident.  This is basic stuff, and I could use another means of doing this, but the menu item I want to use is the most convenient at this time.

Any ideas?

Thanks,
jeff

4 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 26 May 2010, 04:02 PM
Hello Jeff McAlear,

Check this kb article which demonstrates similar approach,

Best wishes,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
liu qingshui
Top achievements
Rank 1
answered on 24 Jun 2010, 04:07 AM
Is there a way to implement "ConfrimText" function on  telerik:GridTemplateColumn-asp:ImageButton?
Can Telerik give me some sample code?
The code is below:
<telerik:GridTemplateColumn HeaderText="operation" UniqueName="column" SortExpression="ID"
    <itemtemplate> 
    <href="javascript:return void(null);" onclick="TaskAssign('<%#Eval("ID") %>')"
        <asp:Image ID="imgAssign" runat="server" ImageUrl="../../images/assign.gif" /> 
    </a> 
    <href="javascript:return void(null);" onclick="TaskProcess('<%#Eval("ID") %>')"
        <asp:Image ID="imgTaskFinish" runat="server" ImageUrl="../../images/FinishTask.gif" /> 
    </a> 
    <asp:ImageButton ID="imgBtnDelete" runat="server" ToolTip="deleteTask"  //This imgeBotton,I want implete the same function like "ConfrimText" 
     CommandName="Delete"   
        ImageUrl="../../images/delete.gif" /> 
   <href="javascript:return void(null);" 
            onclick="TaskAssignHis('<%#Eval("ID") %>')"
            <asp:Image ID="imgTaskHis" ToolTip="checkHistory" runat="server" ImageUrl="../../images/reports.gif" /> 
    </a> 
</itemtemplate> 
    <itemstyle cssclass="gridCellCursor" horizontalalign="Center" /> 
    <headerstyle width="108" horizontalalign="Center" /> 
</telerik:GridTemplateColumn> 


 
0
Shinu
Top achievements
Rank 2
answered on 24 Jun 2010, 06:02 AM
Hello,

You can try the technique described in the following code library to achieve the functionality.
Block the execution thread with radconfirm


-Shinu.
0
liu qingshui
Top achievements
Rank 1
answered on 24 Jun 2010, 07:17 AM
Thank you,your information really help me out!
Tags
Menu
Asked by
Jeff McAlear
Top achievements
Rank 1
Answers by
Yana
Telerik team
liu qingshui
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or