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

Issue with Opening RadWindow while trying Crosspage PostBack

4 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Praba
Top achievements
Rank 1
Praba asked on 28 Jul 2008, 02:30 PM
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.

4 Answers, 1 is accepted

Sort by
0
Simon Kingaby
Top achievements
Rank 2
answered on 28 Jul 2008, 10:29 PM
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.
0
Sebastian
Telerik team
answered on 29 Jul 2008, 06:02 AM
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.
0
Praba
Top achievements
Rank 1
answered on 29 Jul 2008, 06:13 AM
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
0
Nikolay Rusev
Telerik team
answered on 30 Jul 2008, 02:09 PM
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.
Tags
Grid
Asked by
Praba
Top achievements
Rank 1
Answers by
Simon Kingaby
Top achievements
Rank 2
Sebastian
Telerik team
Praba
Top achievements
Rank 1
Nikolay Rusev
Telerik team
Share this question
or