Show details in ajax panel on Row Select event

4 posts, 1 answers
  1. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 14 Dec 2011 Link to this post

    Hello,

    I have a Rad Grid to the left of my page and a ajax panel to the right, I basically want the user to be able to select any row in my grid which in turn will pass an ID and refresh the ajax panel showing the selected row details.

    I'm pretty sure you used to have an online example of this scenerio, if so could please link it (I've looked everywhere for it to no avail).

    Thank you.

  2. Answer
    Mira
    Admin
    Mira avatar
    1124 posts

    Posted 14 Dec 2011 Link to this post

    Hello Craig,

    Please examine this demo to see how a similar scenario is implemented.

    I hope this helps.

    Regards,
    Mira
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 16 Dec 2011 Link to this post

    Thanks for the reply.

    What if I want to simplify this more and remove alot of markup that comes with your example? eg I don't need to edit details or feel the need to use RAD Window.

    Say for example I have a simple RAD Grid with 2 columns, one of these columns is Name. On row select would it be as simple as I'm thinking to extract the selected rows data and display it in a label like so?

    Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
     
        If e.CommandName = "RowSelect" Then
     
            Dim Name As String = (e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("Name"))
     
            Label1.Text = Name.ToString
     
        End If
     
    End Sub

    I tried the above with no luck, any suggestions?

    Many thanks.

  5. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 16 Dec 2011 Link to this post

    Ok fixed now using "RowClick" command name.

    Thanks anyway.
Back to Top