Issue with Opening RadWindow while trying Crosspage PostBack

5 posts, 0 answers
  1. Praba
    Praba avatar
    11 posts
    Member since:
    Nov 2006

    Posted 28 Jul 2008 Link to this post

    Hi,

    I've a Grid with 2 GridButtonColumn Which is fine and I set the ButtonType as LinkButton. I like to execute CrossPage PostBack so that I used 2 ButtonColumns as LinkButton.  If  I set the Url to PostBackURL property of converted LinkButton of GridButtonColumn in Item_DataBound is working fine.

    But When I try open my new page with RadWindow means I need to popup the Radwindow thru the javascript. If I called the javascript function using PostBackUrl It's not working.

    finally I try to add Attributes["Onclick"], It is working but I lot my Previous page Data.


    Pls Give me the Better Solution.

    Thanks for your needful assistance on time.
  2. Simon Kingaby
    Simon Kingaby avatar
    24 posts
    Member since:
    Apr 2008

    Posted 28 Jul 2008 Link to this post

    I have a similar problem.  I have a RadGrid with
    a templatecolumn that has a button in it.  The
    button needs to open a radWindow and pass in the
    datakeyvalue of the row in the grid that the button is in.
    The code looks like this:
        var oWnd=radopen("DealEntry.aspx?DealId=xxxx", null);
    Where xxxx would be the datakeyvalue from the row.
    Any suggestions on how I can get the key out of the row
    and into the URL?
    Thanks, Simon.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 29 Jul 2008 Link to this post

    Hello guys,

    I think that the following example (along with the KB article linked at the bottom of its Description section) will help you attain the functionality you are searching for:

    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Controls/Examples/Integration/GridAndWindow/DefaultCS.aspx?product=grid

    Best regards,
    Stephen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Praba
    Praba avatar
    11 posts
    Member since:
    Nov 2006

    Posted 29 Jul 2008 Link to this post

    Earlier I had seen that link but I already know how to popup a rad window from LinkButton [ Simply say Attributes.add("OnClick",  "yourJavascriptFun();" ] will give the same thing as Hyperlink. Along with this I need my Previous page Data from PreviousPage.Page  but It lost the While you call using this method.

    Problem is that I cant get a New Page in RadWindow with the Previous page Controls and Viewstate and All.

    To Simply Say, I need Cross Page PostBack Functionality with RadWindow.

    PreviousPage.Page + RadWindow

    Can U pls Assist me

    Thanks
  6. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 30 Jul 2008 Link to this post

    Hi Praba,

    Unfortunately there is no way to execute cross page postback in this scenario.

    The reason is because the content of RadWindow is actually an iframe in which the page is rendered. 
    You can use the argument attribute, or pass parameters as part of a URL to exchange arguments.

    I think that the following examples will be of a further help for you: 
    http://www.telerik.com/help/aspnet-ajax/window_programmingusingradwindowasadialog.html
    http://www.telerik.com/help/aspnet-ajax/window_programmingusingtheurlquerystring.html

    Best regards,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017