4 Answers, 1 is accepted
Try the following code snippet to achieve your scenario.
Hope this helps.
It Worked Perfectly,Thank You.
I am created radwindow dynamically, so i dont know the radwindow id. i am getting button client id when button click event like "ctl14_rwNotes_2_C_rbNotesConfirm". how to get radwindow id from this one. i dont like to replace button id is empty, because i am using this radwindow as user control. Please help how to get radwindow id from button onclint click event. this button inside that radwindow. i remove the cancel button based on our requirement. when click that button i save the data into database after that i want close that together. Please give your suggestions
Thanks in advance,
This article shows how to get a reference to the RadWIndow from inside its content template: http://www.telerik.com/help/aspnet-ajax/window-client-side-basics.html#referece-from-content-template.
Other options you have are to traverse the DOM tree until you find the div.RadWindow that, so you can get its id attribute and remove the RadWindowWrapper_ prefix, so you can get the actual ID of the script control that you can use for $find().
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.