<
telerik:RadGridView
HorizontalAlignment
=
"Left"
Margin
=
"378,0,0,262"
Name
=
"buildingsGridView"
VerticalAlignment
=
"Bottom"
Width
=
"193"
Height
=
"197"
ItemsSource
=
"{Binding Buildings, Mode=TwoWay}"
AutoGenerateColumns
=
"False"
ShowGroupPanel
=
"False"
ShowInsertRow
=
"True"
RowHeight
=
"23"
RowIndicatorVisibility
=
"Collapsed"
ScrollViewer.HorizontalScrollBarVisibility
=
"Disabled"
CanUserFreezeColumns
=
"False"
CanUserReorderColumns
=
"False"
CanUserResizeColumns
=
"True"
SelectedItem
=
"{Binding SelectedBuilding}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding BuildingNo}"
Header
=
"Building No."
IsFilterable
=
"False"
IsGroupable
=
"False"
IsReorderable
=
"False"
IsResizable
=
"False"
ShowDistinctFilters
=
"False"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
<
telerik:RadGridView.ChildTableDefinitions
>
<
telerik:GridViewTableDefinition
>
<
telerik:GridViewTableDefinition.Relation
>
<
telerik:PropertyRelation
ParentPropertyName
=
"Floors"
/>
</
telerik:GridViewTableDefinition.Relation
>
</
telerik:GridViewTableDefinition
>
</
telerik:RadGridView.ChildTableDefinitions
>
<
telerik:RadGridView.HierarchyChildTemplate
>
<
DataTemplate
>
<
telerik:RadGridView
ItemsSource
=
"{Binding Floors, Mode=TwoWay}"
Name
=
"floorsGrid"
ShowGroupPanel
=
"False"
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
DataMemberBinding
=
"{Binding FloorNo}"
Header
=
"Floor No."
IsFilterable
=
"False"
IsGroupable
=
"False"
IsReorderable
=
"False"
IsResizable
=
"False"
ShowDistinctFilters
=
"False"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
DataTemplate
>
</
telerik:RadGridView.HierarchyChildTemplate
>
</
telerik:RadGridView
>
Hi There,
we observed an issue with the DateTimepicker,
There seem to be an inconsistent behaviour in RadGridView cells. please check the attached image for more clear details,
Thanks in advance,
Srinivas.
I have a DataGrid that needs to be filtered programatically. I populate the dependency grid with a ItemsSource with all my data in it. When I select an item in a parent grid, I want this grid to filter showing the one or many dependency items.
So, I'd figured out I can clear the FilterDescriptorCollection and add items to it in using this syntax. Note FilterSettings = FilterDescriptorCollection:
aggregationGridView.FilterSettings.Clear();
foreach (AggregateDD child in aggregate.ChildList)
{
FilterDescriptor filter = new FilterDescriptor(
"AggregateID", FilterOperator.IsEqualTo, child.AggregateID);
aggregationGridView.FilterSettings.Add(filter);
}
However, this seems to write a query that as AND instead of OR. This is more the query I'd like to run:
( (AggregateID IsEqualTo 385 MC) OR (AggregateID IsEqualTo 386 MC) OR (AggregateID IsEqualTo 387 MC) OR (AggregateID IsEqualTo 388 MC) )
How do I add a new FilterDescriptor to the FilterDescriptorCollection as an OR?
Thanks for your help.