Rad Context Menu PostBack

4 posts, 0 answers
  1. Moustafa
    Moustafa avatar
    70 posts
    Member since:
    Jul 2008

    Posted 01 Aug 2008 Link to this post

    I just created a RadContextMenu that has the following items:


     the menu has  the following properties:

    - server side event handler  as a handler for the context menu item click event.
    -Enable postback.

    becuase i created this menu as a context menu for a RadGrid Control I need to create a client side Confirm message  when the user click the delete  item.

    I do the following in the page load event


    "onclick","return ConfirmDelete()");

    where GridMenu is my RadContextMenu ID.

    this is the client side java script code for the ConfirmDelete() function

    function ConfirmDelete()




    if (result==true)

    return true;


    return false;


    the senario: when I click the Delete menu item it really pop up the Confirm message but

    either i clicked Ok or Cancel It do postback

    what  really I need do the postback only when the user click ok,if not no postback occurs.

    so please provide me with the help

    Note: i'm using RadControls for Asp.net AJAX 2008-Q2.

  2. Peter
    Peter avatar
    6637 posts

    Posted 02 Aug 2008 Link to this post

    Hello Moustafa,

    Please, use the approach from this KB article and let us know if you have any further questions.

    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Moustafa
    Moustafa avatar
    70 posts
    Member since:
    Jul 2008

    Posted 02 Aug 2008 Link to this post

    Thank you very much

    this solvee my problem
  4. senthil
    senthil avatar
    23 posts
    Member since:
    Dec 2008

    Posted 03 Dec 2008 Link to this post

    can u tell how do that pls? I also have the same problem even I click the cancel button it goes to server side?pls help
Back to Top