A TextBox as ComboBoxItem: Impossible to enter text...

15 posts, 0 answers
  1. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 24 Nov 2009 Link to this post

    If I put a TextBox as a Item of my RadComboBox, I'm unable to enter text. The following keys are the only to work:

    BackSpace, Del, right, left, copy/paste

    Here is a sample code:

    ComboBoxItem r = new ComboBoxItem();  
    r.Content = new TextBox() { Width = 100 };  
     
    RadComboBox cboViews = new RadComboBox();  
    cboViews.Items.Add(r);  
    cboViews.Height = 100;  
    cboViews.Width = 100;  
    cboViews.IsReadOnly = false;  
     
    this.LayoutRoot.Children.Add(cboViews);  
     
     
    ComboBoxItem r2 = new ComboBoxItem();  
    r2.Content = new TextBox() { Width = 100 };  
     
    ComboBox cboViews2 = new ComboBox();  
    cboViews2.Items.Add(r2);  
    cboViews2.Height = 100;  
    cboViews2.Width = 100;  
    cboViews2.Margin = new Thickness(0, 250, 0, 0);  
     
    this.LayoutRoot.Children.Add(cboViews2); 

    I'm using the latest version (Q3 2009)


    How to solve this ? Thanks !


    Thomas
  2. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 25 Nov 2009 Link to this post

    Nobody got an idea ? This is a quite urgent problem for us because we'll be in production in a few days :)
  3. DevCraft banner
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Nov 2009 Link to this post

    Hi Thomas,

    We will be able to provide a fix for this problem with the internal build tomorrow. You will have to turn the TextSearch off, though:
    RadComboBox cboViews = new RadComboBox();
    cboViews.IsTextSearchEnabled = false;
    ...

    The problem is caused by the fact that in non-editable or read-only mode we handle the KeyDown events in order to provide autocomplete. However, we handle the events even if the autocomplete is disabled, which is what we will fix.

    Regards,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 26 Nov 2009 Link to this post

    Hi Valeri,

    I'll try the internal build you'll post tomorrow and let you know if it's working fine.


    Thanks !
  6. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 27 Nov 2009 Link to this post

    Hi Valeri,

    I've just tested the new internal build that was posted today. It works fine except a little bug: as soon as the user press the space bar in the textbox that's in the combobox, the combobox close/is no longer open so we are unable to enter, in the textbox, some text that contains a space within it.

    You can try with this sample code:

    ComboBoxItem r = new ComboBoxItem();  
    r.Content = new TextBox() { Width = 100 };  
     
    RadComboBox cboViews = new RadComboBox();  
    cboViews.Items.Add(r);  
    cboViews.Height = 100;  
    cboViews.Width = 100;  
    cboViews.IsTextSearchEnabled = false;  
     
    this.LayoutRoot.Children.Add(cboViews);  
     
     
    ComboBoxItem r2 = new ComboBoxItem();  
    r2.Content = new TextBox() { Width = 100 };  
     
    ComboBox cboViews2 = new ComboBox();  
    cboViews2.Items.Add(r2);  
    cboViews2.Height = 100;  
    cboViews2.Width = 100;  
    cboViews2.Margin = new Thickness(0, 250, 0, 0);  
     
    this.LayoutRoot.Children.Add(cboViews2);   


    Any ideas to fix this ?


    Thanks !
  7. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 30 Nov 2009 Link to this post

    Anyone could take a look at this ?


    Thanks !
  8. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 30 Nov 2009 Link to this post

    Hi Thomas,

    RadComboBox commits its selection when the user presses the Space bar in non-editable mode (IsEditable=false). In order to be consistent with the editable modes, we could change this behavior in the upcoming service pack next week.

    Sincerely yours,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 30 Nov 2009 Link to this post

    Hi Valeri,

    If you could fix this (or provide me a workaround) for next week, it will be perfect/OK for me. But are you sure that your Service Pack will be release next week ? What are you calling service pack ? The weekly release ?


    Thanks !
  10. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 01 Dec 2009 Link to this post

    Hi Thomas,

    We call the weekly releases "internal build", mainly because they are not thoroughly tested - they are not automatically and manually tested, they passed only the unit tests. The service packs, however, are fully tested builds, that are with higher quality. The internal builds are mainly provided for the clients that need certain bug fixed as soon as possible, while the service packs are for the wider audience.

    Regarding the fix, I will check it in today, so it will appear in the internal build this Friday and the service pack next week.

    Greetings,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 05 Dec 2009 Link to this post

    Hi Valeri,

    Any news from the weekly build or service pack ? I've checked the website but did not see the weekly release for yesterday.....

    Thanks !
  12. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 07 Dec 2009 Link to this post

    Hello Thomas,

    It seems that the internal build was canceled. For your convenience I am attaching the trial assemblies that would have been released in Friday here. If you need the non-trial assemblies, please, open a support ticket and I will attach them there.

    Tomorrow, or Wednesday, we will be releasing an official service pack, containing all fixes from the internal builds since the Q3 release.

    Kind regards,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  13. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 07 Dec 2009 Link to this post

    Hi Valeri,

    Thanks for the assemblies !


    I'll wait for the SP release that will be available tomorrow or wednesday...


    Thanks !
  14. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 08 Dec 2009 Link to this post

    Hi Valeri,

    I've just tried your new assemblies and it works fine for the ComboBox. But now, sometime is nmy grid I get the following (not handled) exception:

    NullReferenceException  at Telerik.Windows.Controls.GridView.GridViewFooterCell.PrepareAggregateResultsList()
       at Telerik.Windows.Controls.GridView.GridViewFooterCell.GridViewFooterCell_Loaded(Object sender, RoutedEventArgs e)
       at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at  MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

    Any ideas of the problem ? Maybe I should wait for the Service Pack ?



    Thanks !
  15. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 08 Dec 2009 Link to this post

    Hello Thomas,

    The fix for the null reference exception has bin added and will be included in the service pack . We are currently preparing a stable version. We are doing our best to make the ServicePack available for tomorrow.

    Regards,
    Pavel Pavlov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  16. Thomas LEBRUN
    Thomas LEBRUN avatar
    66 posts
    Member since:
    Sep 2009

    Posted 08 Dec 2009 Link to this post

    Hello Pavel,

    That's a great news. So i'll stop to disturb you (for today :p) to let you to prepare the Service Pack release ;)


    Thanks !
Back to Top
DevCraft banner