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

RadWindow immediately closing after poping-out

6 Answers 173 Views
Window
This is a migrated thread and some comments may be shown as answers.
Yuji
Top achievements
Rank 1
Yuji asked on 22 Jan 2010, 12:40 AM
Hi,

I need help regarding my scenario. I have a link button inside the Radgrid that opens a RadWindow. At first I have problem regarding the passing of value (primarykey) of the selected row to the new page inside the RadWindow but I manage to fix it. But now my Radwindow is immediately closing after poping out.
Here's my code:

HTML
<telerik:GridTemplateColumn>
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkEdit" runat="server" CssClass="styleMain" OnClientClick='<%#Eval("BillingID", "return editbilling({0})") %>'>Edit</asp:LinkButton>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

<telerik:RadWindowManager ID="Singleton" runat="server"
        Behavior="Close, Reload" Height="250px" InitialBehavior="None"
        KeepInScreenBounds="true" Modal="true" Skin="Outlook" VisibleStatusbar="False"
        Width="450px">
        <Windows>
            <telerik:RadWindow ID="frm2" runat="server" InitialBehavior="None"
                OnClientClose="closeRadwindow" Title="Edit Billing">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

JAVASCRIPT

function editbilling(BillingID) {
            var oWnd
            oWnd = radopen("addbilling.aspx?je=" + BillingID, "frm2");
            //oWnd.center();
            //response.redirect in javascript
            //window.open("addbilling.aspx?je=" + BillingID, "frm2");
            
        }

6 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Jan 2010, 12:52 PM
Hi Yuji,

The link button is a postback control - you need to cancel the postback.
e.g.
function editbilling(BillingID)
{
    var oWnd
    oWnd = radopen("addbilling.aspx?je=" + BillingID, "frm2");
    return false;
}


Sincerely yours,
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
Samantha
Top achievements
Rank 1
answered on 13 Jun 2011, 03:53 AM
Hi,

has this got anything to do with IE setting?  May i know the setting?
as there is only one of my user having this problem.

Regards,
Samantha
0
Georgi Tunev
Telerik team
answered on 13 Jun 2011, 01:43 PM
Hello Samantha ,

This logic is not browser's setting dependent - if you return false after the name of a JavaScript function in in the OnClientClick (onclick in HTML), there should be no postback.

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
Samantha
Top achievements
Rank 1
answered on 14 Jun 2011, 12:42 AM
Hi Georgi,

the weirdest part is it only happened on one machine.  is it because of some IE setting not there?

Regards,
Samantha
0
Georgi Tunev
Telerik team
answered on 14 Jun 2011, 01:19 PM
Hi Samantha ,

I would suggest to make sure that the browser has its JavaScript enabled - I assume this could be a reason for such behavior.


All the best,
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
Samantha
Top achievements
Rank 1
answered on 15 Jun 2011, 12:16 AM
Hi Georgi,

Thanks for your advise.

Regards,
Samantha
Tags
Window
Asked by
Yuji
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Samantha
Top achievements
Rank 1
Share this question
or