Mixed One RAD Grid + RAD Window

3 posts, 1 answers
  1. sadiqabbas
    sadiqabbas avatar
    21 posts
    Member since:
    Mar 2009

    Posted 20 Mar 2009 Link to this post

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

    Posted 23 Mar 2009 Link to this post

    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.
  3. sadiqabbas
    sadiqabbas avatar
    21 posts
    Member since:
    Mar 2009

    Posted 24 Mar 2009 Link to this post

    Thanks,

    I always found telerik to be helpful

Back to Top