or
<
telerikGrid:GridViewMaskedTextBoxColumn
DataMemberBinding="{Binding SSN,
Mode
=
TwoWay
,
Converter={StaticResource ssnConverter}}"
Header
=
"SSN"
EditTriggers
=
"F2"
Mask
=
"###-##-####"
MaskType
=
"Standard"
/>
<
Style
x:Key
=
"SSN_GridViewColumn"
TargetType
=
"{x:Type telerik:GridViewMaskedTextBoxColumn}"
>
<
Setter
Property
=
"Mask"
Value
=
"###-##-####"
/>
<
Setter
Property
=
"Header"
Value
=
"SSN"
/>
<
Setter
Property
=
"MaskType"
Value
=
"Standard"
/>
<
Setter
Property
=
"EditTriggers"
Value
=
"F2"
/>
</
Style
>
foreach
(var group
in
AssociatedObject.GroupDescriptors)
{
var localGroup = (group
as
GroupDescriptor);
AggregateFunctionCollection aggregateFunctions = localGroup ==
null
?
(@group
as
ColumnGroupDescriptor).Column.AggregateFunctions :
aggregateFunctions.Clear();
aggregateFunctions.Add(
new
CountFunction { Caption = GroupAggregatesName });
}
Hello,
We are working with Telerik TreeListView control to display hierarchical data. We have a tree with upto 3 levels deep and unable to to maintain the expanded/collapsed state everytime we do a rebind. The tree collapses every-time we save the data and rebind the data back to the control. We have looked at options of manually storing the state (expanded/collapsed nodes) on IsExpandedChanged() and expanding the nodes manually using treeListView.ExpandHierarchyItem(item) after rebind. This doesn’t seem to work as expected.
We also tried the MVVM approach as suggested in the demo but this works only for the first time.
This is an urgent request and any help on this at the earliest would be greatly appriciated.
Thanks,
Mahesh
employees = employees.OrderByDescending( employee => employee.GetType() .GetProperty( (e.Column as GridViewDataColumn).GetDataMemberName() ) .GetValue( employee, null ) );So I think the example code is not working, but I do not seem to be able to figure out how to get it working.