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

Adding new value to GridViewComboBoxColumn

3 Answers 201 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Suman Rao
Top achievements
Rank 1
Suman Rao asked on 28 Jul 2010, 02:13 PM
Any one in Forum can answer the below requirement ?

We have requirement to add value for existing GridViewComboBoxColumn values
Basically GridviewComboBoxColumn is bind to Person DTO -> PersonName (This DTO is coming from Ria Domainsource)

The drop down column contains value Name1 and Name2 and it is editable column

But the requirement is to add value in the drop down if the value don't exist in the drop down
So we need add Name3 to Drop down and the new value need to save database using Ria DomainSource

Currently, I need a code sample to do this. We are not able add new value to existing drop down value
We are getting exceptions on editing the drop down as "Input is not in a correct format."

Is there a way, we add the value to the existing drop down

Thanks in advance

3 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 29 Jul 2010, 05:41 AM
Hi Suman,

Can you please open a support ticket and attach your sample project with the described exception? This way we will able to look at your problem and provide you with a working solution how to add new items to the combo's ItemsSource.

Greetings,
Stefan Dobrev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Suman Rao
Top achievements
Rank 1
answered on 31 Jul 2010, 07:18 AM
Hi Stefan,

Can you please advised, how to open Support ticket?

Please see the attachment for the exception I am facing

Cheers,
Suman
0
Pavel Pavlov
Telerik team
answered on 05 Aug 2010, 01:06 PM
Hi Suman Rao,

I am attaching an example of how you can achieve the desired behavior.
It has a combo box column , and some code to allow the user to enter a new value to the combo column  source by typing it in the editable combobox.

All the best,
Pavel Pavlov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Suman Rao
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Suman Rao
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or