ClientNodeClicking + radconfirm

2 posts, 0 answers
  1. Eng.Bassel Samman
    Eng.Bassel Samman avatar
    25 posts
    Member since:
    Oct 2008

    Posted 02 Jun 2010 Link to this post


    I am using RadTree in my web page, I want to ask a user before moving from selected node to another
    "Do you want to save changes?"  and give hime the following button options: Yes, No, and Cancel. Becuase javascript confirm has only Ok and cancel button, I used radconfirm and change the template as the following:





    <div style="text-align: center">




    <br />



    <br />



    <input id="btnYes" type="button" value="Yes" onclick="$find('{0}').close(true);" />



    <input id="btnNo" type="button" value="No" onclick="$find('{0}').close(false);" />



    <input id="btnCancel" type="button" value="Cancel" onclick="$find('{0}').close(null);" />







    the radconfirm is ok, and it returns null when user click on "Cancel" button. but the problem is I have to call the radconfirm inside the treeview ClientNodeClicking event, and radconfirm has CallBackFunction, and in CallBackFunction I can not execute:



    becuase eventArgs is avilable only in ClientNodeClicking.
    So, could you please help me in that.
  2. Yana
    Yana avatar
    4937 posts

    Posted 03 Jun 2010 Link to this post

    Hello Bassel,

    Please check this kb article which explains how to achieve the needed approach.

    All the best,
    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.
Back to Top