Hello,
I have a Xamdatagrid with two FieldLayouts.
How can I ensure that there is only a cell selection in FieldLayout[0] or cell selections in FieldLayout[1]? In both cases it should be only one row, but multiple columns selectable.
Thanks
Niko
Hello Niko,
Thank you for following up.
As per the “Selection Overview” topic referenced above:
“ While cell and record selection modes can be enabled simultaneously, the end user can select either cells or records at any one time. Selecting a different cell will clear any previously selected records, while selecting a different record will clear any previously selected cells. “
Consequently, I believe this would address your question and I am afraid it is not possible to limit the cell selection among a currently selected record, as those two selection modes cancel each other out.
If you need further information, please, let me know.
Best regards, Bozhidara Pachilova
these are my current settings:
<igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings AutoGenerateFields="False" AllowAddNew="False" AllowDelete="False" AutoFitMode="Never" HeaderPrefixAreaDisplayMode="FieldChooserButton" RecordSelectorLocation="None" SelectionTypeCell="ExtendedAutoDrag" HeaderPlacementInGroupBy="OnTopOnly" DataRecordSizingMode="SizedToContentAndFixed" SelectionTypeRecord="Single" /> </igDP:XamDataGrid.FieldLayoutSettings>
1. SelectionTypeCell -> works as expected2. SelectionTypeRecord -> It is still possible to select cells in multiple records
How can I limit the selection of multiple cells to one record?
Hi Niko,
I believe you will find the “Changing Field, Record, or Cell Selection Behavior” topic in our documentation quite helpful on the matter, as well as the "Selection Overview". There you will find sample code on the setting the selection types on the FieldLayoutSettings object of the XamDataGrid, for example:
<igDP:XamDataGrid.FieldLayoutSettings> <igDP:FieldLayoutSettings SelectionTypeField="Extended" SelectionTypeCell="Single"/> </igDP:XamDataGrid.FieldLayoutSettings>
These settings are applied over all field layouts, though, so the selection types (cell, field, records) are uniform over the entire grid for the corresponding type. Additionally, in case the selection type record/cell is "single", there would be only one selected record/cell among all field layouts.
If you need any further assistance on the matter, please let me know.
Best regards,Bozhidara Pachilova