This is a migrated thread and some comments may be shown as answers.

Keep text that is not in the DataSource in a GridViewMultiComboBoxColumn

1 Answer 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
h
Top achievements
Rank 1
h asked on 11 Sep 2018, 11:13 PM
I have a Grid with a GridViewMultiComboBoxColumn that has a DataSource, if the GridViewMultiComboBoxColumn not contain a item, the user can type one. the problem that i have is that if the item is not contained it in the DataSource the column erase the item that the user has entered. There are any way to keep the new value in the column?

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 12 Sep 2018, 11:53 AM
Hello,           

Grid columns with DataSource like GridViewMultiComboBoxColumn and GridViewComboBoxColumn expect valid values according to the specified DataSource collection. All other free user's input is ignored. This is designed behavior.

However, we already have an article in the online documentation demonstrating how to allow free data in the RadDropDownListEditor used in the GridViewMultiComboBoxColumn. Here is the article for your reference. You can use a similar approach for the RadMultiColumnComboboxElement used in the RadMultiColumnComboboxElement. The main point is that the free user's input has to be added to the DataSource collection: https://docs.telerik.com/devtools/winforms/gridview/editors/how-to/allow-end-users-to-add-items-to-dropdownlisteditor

I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
GridView
Asked by
h
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or