Hi,
I'm using Silverlight 3.0 and your last Q1 and observe few strange problems:
1) Trying to sort from code:
RadGridView1.SortDescriptions.Add(new SortDescription("CustomerID", ListSortDirection.Descending));
Gives me strange build error:
Error 6 Argument '1': cannot convert from 'System.ComponentModel.SortDescription [c:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v3.0\System.Windows.dll]' to 'System.ComponentModel.SortDescription []' C:\work\TelerikRadGrid\TestPages\Telerik1\BindingSorting.xaml.cs 77 47 TelerikRadGrid
2) Trying to expand the whole hierarchical grid via code:
private void ExpandAll_Click(object sender, RoutedEventArgs e)
{
this.IterateRows(this.RadGridView1.Records, true);
}
int rowCounter = 0;
private void IterateRows(IList<Record> records, bool expand)
{
foreach (Record record in records)
{
if (record is ExpandableDataRecord)
{
ExpandableDataRecord expandableRecord = (ExpandableDataRecord)record;
expandableRecord.IsExpanded = expand ? true : false;
rowCounter++;
//TODO foreach all childs
for (int childIndex=0; childIndex < expandableRecord.ChildRecordManagers.Count; childIndex ++)
{
IterateRows(expandableRecord.ChildRecordManagers[childIndex].Records, expand);
}
}
}
}
My grid has 3 levels and 3rd is still collapsed. Interesting is that these code works in Telerik WPF grid.
Any ideas how I can fix my problems?
Also I have few questions:
Is there way how programatically I can scroll to particular cell position .. lets say to cell in column 5 and row 6 ..
Do you support column virtualization(using spy I see that all cells for first records are created, even out of visible area), if yes how to switch on it?
Thanks in advance!
Greg