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

ClientNodeClicking + radconfirm

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Eng.Bassel Samman
Top achievements
Rank 2
Eng.Bassel Samman asked on 02 Jun 2010, 02:59 PM

Dears,

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:

 

<ConfirmTemplate>

 

 

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

 

{1}

 

<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);" />

 

 

</div>

 

 

</ConfirmTemplate>

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:

 

eventArgs.set_cancel(true);

becuase eventArgs is avilable only in ClientNodeClicking.
So, could you please help me in that.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 03 Jun 2010, 08:20 AM
Hello Bassel,

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

All the best,
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.
Tags
TreeView
Asked by
Eng.Bassel Samman
Top achievements
Rank 2
Answers by
Yana
Telerik team
Share this question
or