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

GridViewComboBoxColumn loses its value when it loses focus

8 Answers 132 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stan
Top achievements
Rank 1
Stan asked on 18 Mar 2015, 07:20 PM
I have a GridViewComboBoxColumn in a RadGridView that works fine until it loses focus.  When the user switches to another cell on the row, the combo box blanks out and loses its value.  The same code works perfectly fine in WPF.

8 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 21 Mar 2015, 10:41 AM
Hi Stan,

The only way I managed to reproduce this scenario was when I did not provide a valid binding value for SelectedValueMemberPath property of GridViewComboBoxColumn, but this applies both for Silverlight and WPF.

I am attaching a sample project. Can you please modify it in a way that reproduces the described GridViewComboBoxColumn behavior.

I am looking forward to your answer.

Best Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Stan
Top achievements
Rank 1
answered on 24 Mar 2015, 07:53 PM
Hi Stefan,
Thank you very much for the response.  I get the following build errors when I try to compile your solution:
Error 8 The type or namespace name 'GridViewComboBoxColumn' could not be found (are you missing a using directive or an assembly reference?) C:\Projects\ComboBoxLostFocus\ComboBoxLostFocus\obj\Debug\MainPage.g.cs 42 18 ComboBoxLostFocus
Error 7 The type or namespace name 'RadGridView' could not be found (are you missing a using directive or an assembly reference?) C:\Projects\ComboBoxLostFocus\ComboBoxLostFocus\obj\Debug\MainPage.g.cs 40 18 ComboBoxLostFocus


Do you how to fix this?
0
Stefan
Telerik team
answered on 25 Mar 2015, 02:55 PM
Hello Stan,

Can you please try unblocking the binaries? You might be experiencing a problem similar to the described in this blog post.

Best Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Stan
Top achievements
Rank 1
answered on 25 Mar 2015, 04:12 PM
Hi Stefan,
Thanks again for the response.  Unblocking the assemblies fixed the issue.  I am now working on getting your sample to behave like my application.  I will let you know when I do.

-Stan
0
Stan
Top achievements
Rank 1
answered on 25 Mar 2015, 06:58 PM
Hi Stefan,
I just realized that your project is using Silverlight 5 and I am seeing the issue in Silverlight 4.  I will convert your project to use version 4, but in the meantime can you see if there are any known issues?

Thanks,
Stan
0
Stefan
Telerik team
answered on 26 Mar 2015, 09:18 AM
Hi Stan,

I am glad that unblocking the binaries fixed the issue.

As for your question, can you please check the Empty Cells in Combobox Column and let me know if it helps for your scenario?

Best Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Stan
Top achievements
Rank 1
answered on 26 Mar 2015, 05:22 PM
Hi Stefan,
The article does not apply in my case because the combo box is populated with values initially, but goes blank when it loses focus.

-Stan
0
Stefan
Telerik team
answered on 30 Mar 2015, 08:58 AM
Hi Stan,

As it turns out we are not sure what would be causing such an inconsistency. May I ask to you to open a new support thread when you are ready modifying the sample project and attach it there?

Best Regards,
Stefan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Stan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Stan
Top achievements
Rank 1
Share this question
or