RadWindow immediately closing after poping-out

7 posts, 0 answers
  1. Yuji
    Yuji avatar
    14 posts
    Member since:
    Jul 2009

    Posted 21 Jan 2010 Link to this post

    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");
                
            }
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jan 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Samantha
    Samantha  avatar
    18 posts
    Member since:
    Sep 2008

    Posted 12 Jun 2011 Link to this post

    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
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Jun 2011 Link to this post

    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.

  6. Samantha
    Samantha  avatar
    18 posts
    Member since:
    Sep 2008

    Posted 13 Jun 2011 Link to this post

    Hi Georgi,

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

    Regards,
    Samantha
  7. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 14 Jun 2011 Link to this post

    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.

  8. Samantha
    Samantha  avatar
    18 posts
    Member since:
    Sep 2008

    Posted 14 Jun 2011 Link to this post

    Hi Georgi,

    Thanks for your advise.

    Regards,
    Samantha
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017