|118721||Apr 3,2015 08:28 AM||Apr 7,2015 08:39 AM||WPF||1|
// Registering the cell model
this.grid.Model.CellModels.Add("CustomDropDown", new CustomeDropDownCellModel());
// Binding the celltype
var dropdown1 = this.grid.Model[7, 2];
dropdown1.CellType = "CustomDropDown";
dropdown1.ItemsSource = GenerateListBoxContent();
dropdown1.DisplayMember = "Text";
dropdown1.DropDownStyle = GridDropDownStyle.AutoComplete;
On changing or selecting the excel cell , by default selects the text in the cell.
I do not want cell text to be selected first time when cell is clicked or dropdown in changed.
Note : I need Autocomplete feature to working.
and also I noticed if dropdown1.CellType = "ComboBox" above issue is not observed,
Its present only with CustomdropDown.
Any help is appreciated,
Please find the image attached for issue;
Thank you for contacting Syncfusion Support.
We analyzed your requirement and we have prepared a sample by overriding the close() method of theGridCellDropDownControlBase class in CustomeDropDown class in which we have selected the text after the dropdown is changed. Now, it has been modified according to your requirement as shown in the following code example:
public override void Close()
this.IsDropDownOpen = false;
Please find the modified sample from the below location for your reference.
Please let us know if this solution helps you.
Deepak Kumar N
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.