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

[Solved] All RabItems Shows the same data in RadGridView

3 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
soms
Top achievements
Rank 1
soms asked on 02 Mar 2011, 11:24 AM
Hi,

I am using Rad TabControl as child Template for the Rad Gridview.

My problem is when i am clicking on First Row RadTab changed event is fired and data is loaded into radtabitem Grid.

if i am clicking on the second Row then both first and second row tab items grid shows the same information.

if i am cllicking the third row all three rows shows same values.

Please help me to get the different values in diffenrent rows.

Thanks & Regards

Somu

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 Mar 2011, 12:03 PM
Hi soms,

Generally, the correct implementation here depends entirely on your particular settings and requirements. Do you want to display a RadTabControl in the RowDetails ? How do you load the data for the RadTabControl ? Any relevant information and code-snippets that you provide in addition might be helpful. 

 

Best wishes,
Maya
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
soms
Top achievements
Rank 1
answered on 04 Mar 2011, 05:23 AM
hi,

Ya i want to insert the RadTab Control in GridView Row Details. I have 3 Rad Tab Items for Different Purpose and when i am selecting a row based on that row id the values in the Rad Tab item should be filled. I have used the user Controls in the RadTabItem and i have written the code in UserControl Loaded Event.

The Problem is when i am selecting first row it shows the perfect result and when i am selecting the second row, the first and second row tad items shows the same results. 

i need to display seperate results for each row tab items.

for that what i need to do and in which even i need to write the code? I am using MVVM pattern for this. 
 
i am attaching the image which gives a clear understanding of my problem. please find the image. 

Thanks & Regards

Somu
0
Rossen Hristov
Telerik team
answered on 04 Mar 2011, 11:00 AM
Hello soms,

When using row details, the data item (i.e. OfficeKiosk, etc.) of the parent row will automatically become the DataContext of the element that resides inside the row details. So the row details element in the first row will have the OfficeKiosk object as its DataContext, the row details element in the second row will have vonet0002 as its DataContext and so on.

Inside the row details, you can data bind various controls to the properties of this master data item. You should use Binding's. You really don't need events.

Please, take a look at my blog post and at the help article. I am sure that you will find a lot of useful ideas there.

I hope this helps.

Greetings,
Ross
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
soms
Top achievements
Rank 1
Answers by
Maya
Telerik team
soms
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or