Hi,
my problem in short: I use the RadGridView inclusive the default filtering control with the Windows8 theme. Everything works perfect except if the column contains an enum.
Due to the fact, that we use the [Description] Annotation as translation key holder, the dropdown list will display the label instead of the translated value.
My first thought: No problem!
I created a custom filter control which overrides parts of the telerik filtering control. This works really good (Apply filter closes popup).
But now I have a problem. I will access the PART_Filter1ContentControl control to modify the itemsource. This fails everytime with a 'null' value.
Folowing code is in use:
Do you have any idea why it fails and most important, how to solve my problem?
Thanks!
- Tobias
my problem in short: I use the RadGridView inclusive the default filtering control with the Windows8 theme. Everything works perfect except if the column contains an enum.
Due to the fact, that we use the [Description] Annotation as translation key holder, the dropdown list will display the label instead of the translated value.
My first thought: No problem!
I created a custom filter control which overrides parts of the telerik filtering control. This works really good (Apply filter closes popup).
But now I have a problem. I will access the PART_Filter1ContentControl control to modify the itemsource. This fails everytime with a 'null' value.
Folowing code is in use:
public class DefaultFilterControl : FilteringControl
{
public DefaultFilterControl(GridViewColumn column) : base(column)
{
}
// ...
public
override
void
Prepare(GridViewColumn columnToPrepare)
{
base
.Prepare(columnToPrepare);
// Get first placeholder
var filterInput1 = GetTemplateChild(
"PART_Filter1ContentControl"
);
// Check which type of control filterInput1 is to fill it the
// right way with new data.
}
}
Do you have any idea why it fails and most important, how to solve my problem?
Thanks!
- Tobias