GridViewComboBoxColumn loses its value when it loses focus

9 posts, 0 answers
  1. Stan
    Stan avatar
    5 posts
    Member since:
    Mar 2015

    Posted 18 Mar 2015 Link to this post

    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.
  2. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 21 Mar 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. Stan
    Stan avatar
    5 posts
    Member since:
    Mar 2015

    Posted 24 Mar 2015 in reply to Stefan X1 Link to this post

    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?
  5. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 25 Mar 2015 Link to this post

    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.

     
  6. Stan
    Stan avatar
    5 posts
    Member since:
    Mar 2015

    Posted 25 Mar 2015 in reply to Stefan X1 Link to this post

    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
  7. Stan
    Stan avatar
    5 posts
    Member since:
    Mar 2015

    Posted 25 Mar 2015 in reply to Stefan X1 Link to this post

    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
  8. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 26 Mar 2015 Link to this post

    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.

     
  9. Stan
    Stan avatar
    5 posts
    Member since:
    Mar 2015

    Posted 26 Mar 2015 in reply to Stefan X1 Link to this post

    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
  10. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 30 Mar 2015 Link to this post

    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.

     
Back to Top
DevCraft banner