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

Mixed One RAD Grid + RAD Window

2 Answers 40 Views
Window
This is a migrated thread and some comments may be shown as answers.
sadiqabbas
Top achievements
Rank 1
sadiqabbas asked on 20 Mar 2009, 07:26 PM

Dear,

Actually I was confused where to post this problem...

I am making a search page whose details are as follows

textbox , button

button click

{

         dataset ds = getdata("select id,desc_hort,desc_long from my_db where id='" + textbox.text + "';");

         radgrid.datasource = ds;

         radgrid.databind();

}

radgrid

..........     <telerik:GridTemplateColumn UniqueName="tempcol">
<ItemTemplate>
<tr>
<td>
<a href="details.aspx?id='<%#Eval("id") %>' " target=_blank> <%#Eval("desc_short")%></a><br>
<%#Eval("desc_long")%> 
</td>
</tr>
</ItemTemplate>
</telerik:GridTemplateColumn>

all is going well but i felt to implement a new concept of radwindow

now problem with me is that insted of opening details in new page with target=_blank i want to open link in

radwindow

i reffered example

http://demos.telerik.com/aspnet-ajax/window/examples/demoemail/defaultcs.aspx

but as i am a newbie i am unable to understand where to make changes to open that link in radwindow

thanks in advance

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 23 Mar 2009, 01:34 PM
Hello sadiqabbas,

In the E-mail System demo that you have checked, we are using RadGrid's OnRowSelected eventhandler to call a JavaScript function called ShowMessage() for showing the RadWindow.

For your scenario, I would suggest to check the Using the URL for Server Arguments demo where RadWindow is opened by clicking a hyperlink. The idea is to use the onclick event of the link to call a JavaScript function with the corresponding arguments.


All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
sadiqabbas
Top achievements
Rank 1
answered on 24 Mar 2009, 10:52 AM

Thanks,

I always found telerik to be helpful

Tags
Window
Asked by
sadiqabbas
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
sadiqabbas
Top achievements
Rank 1
Share this question
or