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

Is there anything accessible like ItemsTemplate?

1 Answer 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
István
Top achievements
Rank 1
István asked on 04 Apr 2011, 02:27 PM

Hi All!

 

I've created a DataGrid in "regular" WPF that supports groups and the items within a group are shown in a wrappanel. For this I could use the code below:

 

<DataGrid.ItemsPanel>
        <ItemsPanelTemplate>
               <WrapPanel IsItemsHost="True"/>
        </ItemsPanelTemplate>
</DataGrid.ItemsPanel>
Unfortunately it is way too slow for us. We would like to handle about a 1000 items and we are evaluating Telerik grid for that but I could not find a way to reproduce what I need. Each item should be represented with an image on the left, three lines of text on the right and a progress bar in the background. Grouping, sorting and filtering of items should be available (or at least not too complex to implement), hence the items source is a ListCollectionView. I did this in the original approach with a cell template and this works fine in both the "regular" DataGrid and in Telerik's GridView, but in the Telerik version I can't make the cell items appear next to each other.

 

 

The result should look something like this:

 

Group one:

  Item1 Item2 Item3 Item4

  Item5 Item6

Group two:

  Item7 Item8 Item9 Item10

Group three:

  Item11

 

So my questions:

Is there a way to access the gridview's ItemsPanel to do something similar, or are there any alternativse in the gridview?

 - OR -

Is there a more suitable control for this that can handle this many items and the result can look like the same?

 

Thanks in advance,

Istvan

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Apr 2011, 06:35 AM
Hi István,

 There is no such direct property available however you can redefine the grid row (or group row) template with Blend similar to this demo

Regards,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
István
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or