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

Radgrid in Radtab

3 Answers 92 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rizwan Ansari
Top achievements
Rank 1
Rizwan Ansari asked on 15 Dec 2010, 07:06 AM
Hello sir,
i have two user control..1st user control has radgrid and user can select a row to see the details..the details rad grid on another usercontrol.
i placed two user contol on two radtab..now how can i redirect to another radtab to see the details.
please help me to solve this.
thanks.

3 Answers, 1 is accepted

Sort by
0
Craig Mellon
Top achievements
Rank 1
answered on 15 Dec 2010, 09:48 AM
Use the RadGrid_ItemCommand then find the tab to redirect to - example VB code below.

Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
    If e.CommandName = "RowClick" Then
       RadTabStrip1.FindTabByText("YourTabName").Selected = True
    End If
End Sub
0
Shinu
Top achievements
Rank 2
answered on 15 Dec 2010, 12:46 PM
Hello Rizwan,


I believe, you can access the RadTabStrip control using NamingContainer property of RadGrid in the ItemCommand event. Get access to the RadTabStrip control (in the controls hierarchy) and set the corresponding tab as selected.


-Shinu.
0
Rizwan Ansari
Top achievements
Rank 1
answered on 15 Dec 2010, 02:20 PM
Hi Shinu
Thanks for reply.
the situation is when i am selectinn a row in grid i am storing values in session and i want to redirect to that tab and show the grid where i am binding the grid with this session values and also when user not select anyrow and visit that tab then nothing should be display..

can you help me to solve this.
thanks
Tags
Grid
Asked by
Rizwan Ansari
Top achievements
Rank 1
Answers by
Craig Mellon
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Rizwan Ansari
Top achievements
Rank 1
Share this question
or