Can we use Autocomplete along with a gridtextcolumn
Hi,
We are validating features of datagrid.
We would like to use the grid in editable mode and link Gridtextcolumn with a autocomplete control
we are able to do with a textedit control however we would like to use this with textcolumn of grid to support inline editing.
Please help if you have a solution
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
SS
Susmitha Sundar
Syncfusion Team
June 2, 2020 12:55 PM UTC
Hi tr na,
Thank you for using Syncfusion controls.
Query 1: We would like to use the grid in editable mode and link Gridtextcolumn with a autocomplete control
SfDataGrid’s GridTextColumn does not support with AutoComplete. But you can achieve the same with GridComboBoxColumn by disable the DropDownButton. Refer the below sample,
|
this.sfDataGrid.CellRenderers.Remove("ComboBox");
this.sfDataGrid.CellRenderers.Add("ComboBox", new GridComboBoxCellRendererExt());
public class GridComboBoxCellRendererExt : GridComboBoxCellRenderer
{
protected override void OnInitializeEditElement(DataColumnBase column, RowColumnIndex rowColumnIndex, SfComboBox uiElement)
{
base.OnInitializeEditElement(column, rowColumnIndex, uiElement);
uiElement.AutoCompleteMode = AutoCompleteMode.Suggest;
uiElement.DropDownButton.Visible = false;
}
}
} |
Query 2: we are able to do with a textedit control however we would like to use this with textcolumn of grid to support inline editing.
SfDataGrid does not support for inline editing. But we have prepared the work around for this. Refer the below sample,
Sample link: https://www.syncfusion.com/downloads/support/forum/154782/ze/InLineFormEditing-796461688
Please check the sample and let us know if you need further assistance on this.
Regards,
Susmitha S
Marked as answer
AA
Adriano Arroyo
October 8, 2021 05:12 PM UTC
is it possible to implement this example in wpf?
MA
Mohanram Anbukkarasu
Syncfusion Team
October 11, 2021 12:01 PM UTC
Hi Adriano,
Thanks for the update.
It is not possible to implement the same in WPF. However, as we suspect that your requirement is to have auto complete support, we suggest you to make use of our GridTemplateColumn support in SfGataGrid WPF. You can load any WPF control in the display mode for all columns by setting CellTemplate and EditTemplate properties. So that you can use GridTemplateColumn with our SfTextBoxExt(provide support for auto complete ) as cell template. Please refer the below given help documentation.
UG references :
Please let us know if you require further assistance from us.
Regards,
Mohanram A.
SIGN IN To post a reply.