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

Set default value for GridViewComboBoxColumn

1 Answer 164 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 08 Nov 2010, 04:11 PM
Hello,

We are using  GridViewComboBoxColumns in our grid and our situation is this:

In some cases the SelectedValue will not exist in the ItemsSource and the observed behavior of the column is leave it empty.  Is there any way we could change that value to be something other than empty text like "Item Not Found"?

Are there templates that we can modify to accommodate this?  If so, which ones and how would they have to be changed?

Thanks!

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 10 Nov 2010, 03:08 PM
Hi Artel,

I am sending you a sample project demonstrating a possible approach for achieving this functionality. In case it does not correspond to your exact requirements, I would need a bit more details. Do you want to have items that do not have values for that particular column and no value can be selected any further or you want initially to have no selected value, but to be able to select afterwards ?
   

All the best,
Maya
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
Jason
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or