I tried to follow your guide, but I'm not able to figure out what step I skipped...
The problem is that when I group my items, they all get into a single group with the FQDN of the object in BindingList. For the same reason (I think), the ordering doesn't work.
I set up a RadListView whith those parameters (ViewType cannot be changed):
dtoList is a BindingList of:
when I group items, I've:
The problem is that when I group my items, they all get into a single group with the FQDN of the object in BindingList. For the same reason (I think), the ordering doesn't work.
I set up a RadListView whith those parameters (ViewType cannot be changed):
radListView1.DataSource = dtoList;
oDtoList = dtoList;
radListView1.DisplayMember =
"Title"
;
radListView1.ValueMember =
"PictureId"
;
radListView1.ViewType = ListViewType.IconsView;
radListView1.Padding =
new
Padding(10, 48, 10, 10);
this
.radListView1.ItemSize =
new
Size(300, 110);
this
.radListView1.ItemSpacing = 5;
this
.radListView1.AllowArbitraryItemHeight =
false
;
dtoList is a BindingList of:
public
class
DTOimage
{
public
Int64 PictureId;
public
String Path;
public
String Author;
public
String Title;
public
DTOimage(){}
public
DTOimage(Int64 pictureId, String path, String author, String title)
{
PictureId = pictureId;
Path = path;
Author = author;
Title = title;
}
}
when I group items, I've:
private
void
commandBarDropDownList2_SelectedIndexChanged(
object
sender, Telerik.WinControls.UI.Data.PositionChangedEventArgs e)
{
this
.radListView1.GroupDescriptors.Clear();
switch
(
this
.commandBarDropDownList2.Text)
{
case
"Nessuno"
:
this
.radListView1.EnableGrouping =
false
;
this
.radListView1.ShowGroups =
false
;
break
;
case
"Nome"
:
this
.radListView1.GroupDescriptors.Add(
new
GroupDescriptor(
new
SortDescriptor[] {
new
SortDescriptor(
"Title"
, ListSortDirection.Ascending) }));
this
.radListView1.EnableGrouping =
true
;
this
.radListView1.ShowGroups =
true
;
break
;
case
"Autore"
:
this
.radListView1.GroupDescriptors.Add(
new
GroupDescriptor(
new
SortDescriptor[] {
new
SortDescriptor(
"Author"
, ListSortDirection.Ascending) }));
this
.radListView1.EnableGrouping =
true
;
this
.radListView1.ShowGroups =
true
;
break
;
}
}