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

a call from a Run button Radwindows

1 Answer 35 Views
Window
This is a migrated thread and some comments may be shown as answers.
ROJAS
Top achievements
Rank 1
ROJAS asked on 25 Jul 2011, 01:16 AM
telerik Hello friends would give me a help with this problem I have is that I have the paa RadMenu in them I have new, save, edit, modify, search, example

When I click the Save button checks if I have entered the relevant data if all data entry saves the save data but when I want to display a radwindows saying "successfully saved" as that radwindows designed it myself and call it a click of a button and when I call do not call it but if you click ago called when the other buttons I hope I can help



from already thank you very much here is my example I have developed

Here my example

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 26 Jul 2011, 03:42 PM
Hello Rojas,

I am not sure I understand you correctly, but I believe that you wish to execute a programmatic click on the RadButton. If so you would need to use the $find() method to get a correct reference to the RadWindow object and execute the script in the Sys.Application.Load event, as shown in this help article: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-javascript-from-server-side.html. Please note that you do not need this click (and, it should actually be attached as a separate function to the OnClientClicking event), but you can inject the script that opens the RadWindow in the same manner as you try to call the click, which will reduce the markup and calls as well (you could then remove the RadButton).

Another thing I notice in your code is that you have declared two RadWindowManagers on the page. This control is designed to work as a singleton (only one instance on the page) and you can declare the RadWindows outside of a RadWindowManager without issues.

On a side note - I would recommend using the CallBackFunction of the radconfirm instead of this cumbersome override, since it is outdated (it was developed many years ago as a workaround). You can find the easier approach in the end of this code library and in the first part of this online demo.  

 

All the best,
Marin
the Telerik team
TeamPulse R1 Officially Released!
Do you want to be able to directly talk to our professionals and ask questions about the things that interest you?
Reserve a seat for the TeamPulse Weekly Live Demo today!
Tags
Window
Asked by
ROJAS
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or