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

Radwindow Open Serverside specified URL

8 Answers 193 Views
Window
This is a migrated thread and some comments may be shown as answers.
Leon
Top achievements
Rank 1
Leon asked on 08 Apr 2008, 11:24 PM
First of all, Prometheus is a great product that will change how the world works, well done.
I have resolved most of the problems in using the product though past posts, however, there are still a small problem that couldn't be seems to solve easily.

i have managed to show the dialog with a simple JS
function showDialog(Arg)  
{                      
 var oWnd = window.radopen(Arg, "TaskDialog");  
}  
 
onclientclick="showDialog('../Task/NewEdit.aspx?Mode=1');return false; 

however, when i actually want to post selected ref number from the grid
i use a server side js injection
ScriptPlaceholder.Text = "showDialog('../Task/NewEdit.aspx?Mode=1&ActNo=" + DirectCast(GridAct.SelectedItems(0), GridDataItem)("ActID").Text + "');" 

And the browser shows "_1c has no properites" after postback
do you have an idea?

8 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 09 Apr 2008, 08:13 AM
Hi Leon,

I believe that the following forum thread will be of help:
http://www.telerik.com/community/forums/thread/b311D-bbhddc.aspx




Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Leon
Top achievements
Rank 1
answered on 10 Apr 2008, 01:24 AM
is there anyway to pop-up window without page refreash?
I am currently using the ajaxmanager and handles all other window open callback event.
i know in your example that you've actually put a link inside the grid, that'll solve the problem, however, i want a button to edit select record(s) in the grid.
0
Georgi Tunev
Telerik team
answered on 10 Apr 2008, 12:48 PM
Hello Leon,

You can use RadAjax or the ASP.NET AJAX framework to update only part of the page. More information on how to do that is available in the RadAjax's documentation and on http://asp.net/ajax/


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Leon
Top achievements
Rank 1
answered on 10 Apr 2008, 09:51 PM
yes I am already using radajax
I can now handle ajax event in Radwindow Callback
the problem is as i stated, i cannot open a window when select a grid item and click a button (note i don't want to have a "edit" next to each row)
0
Georgi Tunev
Telerik team
answered on 11 Apr 2008, 03:45 PM
Hi Leon,

As I understand it, you want to open the RadWindow on the client-side, e.g. with radopen(). Since I am not familiar with your exact setup, I suggest to implement the desired logic not by using RadWindow but with a standard browser's popup (window.open()). Once you have your code working as expected, you will easilly replace the browser popup with RadWindow.
If your code is working fine with a popup, but you have problems using the RadWindow control, please send us the working project and we will rework it for you.



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Leon
Top achievements
Rank 1
answered on 14 Apr 2008, 05:46 AM
thanks a lot for your reply!
my problem is very similar to this one
http://www.telerik.com/community/forums/thread/b311D-mbeed.aspx
except I am trying to open a RADwindow and which has a paramter of Grid select row.

now most of the problem's been solved, there is a very very simple one
how do we get selected row from Radgrid using clientSide javascript?

it will solve my problem :)
0
Georgi Tunev
Telerik team
answered on 14 Apr 2008, 08:52 AM
Hi Leon,

Please check the following demo:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Client/Keys/DefaultCS.aspx
which shows how to hook to the OnRowSelected client event and get the needed information.


I hope this helps.



Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Leon
Top achievements
Rank 1
answered on 15 Apr 2008, 05:44 AM
thanks a lot, it solve my problem :)
Tags
Window
Asked by
Leon
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Leon
Top achievements
Rank 1
Share this question
or