Hello,
We are using a xamDataGrid 11.1 in a UserControl. We want to enable users to select the fields that displayed on the screen using the field chooser.
At the beginning, we had a problem because we wanted to add 3 buttons (for configuration save, load and default) under the field list (In the field chooser pop-up). We solved this by creating a separate UserControl containing a FieldChooser control and 3 buttons under it. The constructor of the that UserControl receives a XamDataGrid and set it as the DataPresenter of the FieldChooser.
We are using the new UserControl for several other UserControls in our project. In some of the xamDataGrid, we don't want to show all of the fields in the field chooser so we are using a filer:
private void m_FieldChooser_Loaded(object sender, RoutedEventArgs e)
{
m_FieldChooser.FieldFilters.Clear();
FieldChooserFilter filter;
filter = GetFieldFilet();
m_FieldChooser.FieldFilters.Add(filter);
m_FieldChooser.CurrentFieldGroup = m_FieldChooser.FieldGroups[1];
}
private FieldChooserFilter GetFieldFilet()
Predicate<Field> evenFieldFilterCondition = new Predicate<Field>(field => { return (IsFieldVisible(field)); });
FieldChooserFilter filter = new FieldChooserFilter("Fields selection", evenFieldFilterCondition, "");
return filter;
private bool IsFieldVisible(Field field)
if (m_FieldsToHide != null)
foreach (Field item in m_FieldsToHide)
if (item == field)
return false;
return true;
All of this works fine when we are using it on a one level XamDataGrid (Only 1 field layout). When we are using it on a 2 level grid, we have several issues:
I am just checking if you require any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi Kresimir,
Is there any way to get the Reference of field-group selector control reference from field chooser control. I want to disable the drop down list and show only the current field group.
Looking forward to hear from you soon.
Thanks,
S.Balamurugen.
No Krasimir, I don't require any further assistance on the matter.
Thank you very much