Hi
We are using XamComboEditor in some of our XmaDataGrid columns.
We would like to allow multiple selection while using the XamComboEditor (the selection is done using checkboxes(.
How can we do that?
we are going to save the data as string ( value1;value2;value3...)
how the binding works?
(i've read aboud a property called AllowMultipleSelection but i think it is available only for the web Silverlight control)
I've been checking the issue again and the problem is as follows:
There Are 2 infragistcs XamComboEditor:
public class GetComboDataSource : IMultiValueConverter
{
culture)
;
> projectColumns = pvm.ProjectColumns;
cellValue = values[2] ;
(projectColumns.Keys.Contains(columnName))
)parameter)
:
projectColumns[columnName].ColumnValueList.ValueList.DefaultView;
projectColumns[columnName].ColumnValueList.DisplayMember.ToUpper();
)
projectColumns[columnName].ColumnValueList.ValueList.DefaultView)
(row.Row[projectColumns[columnName].ColumnValueList.ValueMember.ToUpper()].ToString() == cellValue.ToString())
row;
}
Infragistics.Windows.Editors.XamComboEditor
XamDataGrid cell editor.
Infragistics.Controls.Editors.XamComboEditor
Apparently Infragistics.Windows.Editors.XamComboEditor is native to XamDataGridand could be set as an editor in A grid.the problem is that Infragistics.Windows.Editors.XamComboEditor don't have multiple selection and AutoComplete capabalities.
On the other hand
Infragistics.Controls.Editors.XamComboEditor has this capablities but it's very hard to set it as
Can u show me a code example how can i set Infragistics.Controls.Editors.XamComboEditor as a XamDataGrid Editor? including binding DataSource , DisplayMemeber and ValueMemeber?
My code So far.
<Style TargetType="{x:Type igDP:CellValuePresenter}" x:Key="comboEditor">
<Setter Property
="Template">
>
}">
="Transparent" >
="ValueList">
<!--Binding Path="DataContext" RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType={x:Type igDP:XamDataGrid}}"/-->
="DataContext" />
="Field.Name"/>
="Value"/>
="DisplayMember">
="ValueMember">
ello,
I have been investigating into you issue and I understand you concern. The allow AllowMultipleSelection property is not part of the WPF’s xamComboEditor, but rather of the Silverlight’s xamComboEditor. They have the same names as you mentioned, but they are in different namespace – you can get the WPF control using the http://infragistics.com/Editors namespace while the other one is in http://schemas.infragistics.com/xaml.
However the Silverlight editor is not exactly an editor – you cannot place it as an editor it the grid. In order to use it in your scenario, you can re-template the WPF’s xamComboEditor with the Silverlight’s one by setting the ControlTemplate property. You can then select several items by holding ctrl key.
In order to demonstrate this behavior I have prepared a sample project, which you can find attached to the current email.
If you have any other concerns on that matter please do not hesitate to contact us.
Sincerely,EkaterinaDeveloper Support EngineerInfragistics Inc.www.infragistics.com/support