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

How do i get in which column the particular "TileViewItem" is?

1 Answer 58 Views
TileView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 06 Nov 2009, 03:26 AM
Hi There,

Thank you for the Q3 release.

I was waiting for the official release of the "TileView" control, and with this Q3 release I have started using it in our application.

I was wondering, how do i get the column number of the "TileViewItem"?

I add the "TileViewItem" dynamically into the "TileView" control, and TileViewControl adds the "TileViewItem" into the next column in the queue.
Now, I need to know which "TileViewItem" is in which column.

Is there any way i can achieve with the current available version?

Thanks,
Bhavin

1 Answer, 1 is accepted

Sort by
0
Accepted
Tihomir Petkov
Telerik team
answered on 06 Nov 2009, 10:01 AM
Hi James,

You can get the current column of the item in the following way:

// In case you added RadtileViewItem objects in the TileView
Grid.GetColumn(tileViewName.Items[0] as RadTileViewItem);

// Alternatively, in case you populated the TileView from a data source
Grid.GetColumn(tileViewName.ItemContainerGenerator.ContainerFromItem(dataItem) as RadTileViewItem);


Of course, the above code makes sense only when all items are in Restored state - otherwise there is a Maximized item and the rest are in the same column or row depending on where the minimized items are docked.

I hope I was able to help. Let me know if you have any other questions.

Greetings,
Tihomir Petkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TileView
Asked by
James
Top achievements
Rank 1
Answers by
Tihomir Petkov
Telerik team
Share this question
or