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

Radwindow not opening in RadGrid button column click event

6 Answers 322 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dilip
Top achievements
Rank 1
Dilip asked on 02 Dec 2009, 07:58 PM
Hi Telerik Team,
  This problem is related with opening a RadWindow. I have a RadGrid with a button column and need to open an Radwindow within its click event (command event). So far, this has not been a problem for me, since I had call the RadWindow mostly in
button click event of a button. (I did it like -- > RadWindow1.VisibleOnPageLoad=true ). 
But when I try to do the same thing the window is not shown (pop-up). Can you please tell me the reason? 

Note: The reason for me to open/show  the RadWindow in code behind using "RadWindow1.VisibleOnPageLoad=true" is, I need to 
to do some validations to get the decision whether to open it or do another operation. 


Thanks,
Dilip Nilanka

6 Answers, 1 is accepted

Sort by
0
Dilip
Top achievements
Rank 1
answered on 03 Dec 2009, 05:51 AM
Hi Team,
              This is not a poblem with the ItemCommand event of the RadGrid as I understood. The RadWindow is not working with ajax.
I have applied ajax to my grid. The window is called within Item_Command event of the gridview button. Do you know the reason why
radwindow1.showOnPageLoad =true is not working with ajax.


Thanks,
Dilip Nilanka
0
Accepted
Georgi Tunev
Telerik team
answered on 03 Dec 2009, 09:04 AM
Hi Dilip,

The correct name of the property is VIsibleOnPageLoad. RadWindow is working with Ajax, but for this you need to have that RadWindow ajaxified as well, e.g. if you are using RadAjaxPanel, the window must be in that panel as well, or if you are using RadAjaxManager, the manager should update the RadWindow control.

Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dilip
Top achievements
Rank 1
answered on 03 Dec 2009, 11:44 AM
Hi,
   Thanks a lot! That solved my problem.
Thanks,
Dilip
0
Smiely
Top achievements
Rank 1
answered on 31 Jan 2011, 04:03 PM
Hi I am having a similar problem. Window is opening but needs to click it twice. First click radgrid shows that ajax process then second click it opens the window.
function viewQualsClick(id) {
                window.open("RES_MQ_new.aspx?empid=" + id, "", "width=550,height=700,resizable=yes,scrollbars=yes");
            }
How do I fix this ?

Please help.
Smiely
0
Georgi Tunev
Telerik team
answered on 03 Feb 2011, 02:33 PM
Hello Smiely,

Your code is using standard browser's popup and is not related to the RadWindow control. To be able to help, we need to get a better view over your exact setup. Please open a support ticket and send us a sample project that isolates the problem - we will check it and get back to you right away.

Regards,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Smiely
Top achievements
Rank 1
answered on 07 Feb 2011, 04:57 PM
Hi Georgi Tunev, thanks for replying. I changed the approch for that problem. And it got solved.
Thanks again
Smiely
Tags
Window
Asked by
Dilip
Top achievements
Rank 1
Answers by
Dilip
Top achievements
Rank 1
Georgi Tunev
Telerik team
Smiely
Top achievements
Rank 1
Share this question
or