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)
Hi boriska11,
Thank you for your feedback. In order to pass multiple parameters to a converter, you can create an array of objects and pass this array as a parameter. For more information you can have a look at the following forum:
http://blogs.infragistics.com/forums/p/26254/97591.aspx
If you have any other concerns on that matter, please do not hesitate to ask.
Sincerely,EkaterinaDeveloper Support EngineerInfragistics Inc.www.infragistics.com/support
Hello
Thank you for your response and for the example.
I still have a few problems.
The actual binding between the XamDataGrid cell's value and the selectedRow in the XamComboBox is done in the following code:
SelectedItem="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Value, Mode=TwoWay, Converter={StaticResource InvoiceToStringCode}, ConverterParameter={StaticResource data
}}"/>
My problem is with the Converter .
We Create the XamDataGrid Schema and add it's data in runtime .
Each relevant Column in the XamDatGrid is attached to a XamComboBox in runtime.
My XamCombo ItemSource is of DataTable Type and each item/selectedItem in the XamComboBox
is of DataRow Type.
The Converter should Convert the XamDataGrid cell's value (usually type of Integer) to DataRow from
the right DataTable and VisaVersa.
My Problem is that the Converter should get more than one parameter as input and the parameters are dynamic -( for example it should get The Column Name and The View Model that holds the actual DataTables as input and offcourse the XamDataGrid Cell Value ).
You can't bind CoverterParameter because it's not an DependencyProperty and
i can't use ImultiValueConvereter instead of the Convereter that you used because the conversion should be ONE TO ONE and not ONE TO MANY( ImultiValueConvereter ) to get the desired results.
How Can i achieved that ? is it a way that i can pass more than one parameter to a convereter in
runtime? Can you attach a code Example?
Thanks
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.
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">