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

5 posts, 0 answers
  1. Jeff McAlear
    Jeff McAlear avatar
    1 posts
    Member since:
    May 2010

    Posted 26 May 2010 Link to this post

    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
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 26 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. liu qingshui
    liu qingshui avatar
    27 posts
    Member since:
    Mar 2010

    Posted 23 Jun 2010 Link to this post

    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> 


     
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 24 Jun 2010 Link to this post

    Hello,

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


    -Shinu.
  6. liu qingshui
    liu qingshui avatar
    27 posts
    Member since:
    Mar 2010

    Posted 24 Jun 2010 Link to this post

    Thank you,your information really help me out!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017