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

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

14 Answers 136 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Thomas LEBRUN
Top achievements
Rank 1
Thomas LEBRUN asked on 24 Nov 2009, 01:49 PM
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

14 Answers, 1 is accepted

Sort by
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 25 Nov 2009, 03:47 PM
Nobody got an idea ? This is a quite urgent problem for us because we'll be in production in a few days :)
0
Valeri Hristov
Telerik team
answered on 26 Nov 2009, 03:08 PM
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.
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 26 Nov 2009, 07:43 PM
Hi Valeri,

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


Thanks !
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 27 Nov 2009, 06:40 PM
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 !
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 30 Nov 2009, 08:27 AM
Anyone could take a look at this ?


Thanks !
0
Valeri Hristov
Telerik team
answered on 30 Nov 2009, 05:06 PM
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.
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 30 Nov 2009, 05:45 PM
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 !
0
Valeri Hristov
Telerik team
answered on 01 Dec 2009, 07:33 AM
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.
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 05 Dec 2009, 11:42 AM
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 !
0
Valeri Hristov
Telerik team
answered on 07 Dec 2009, 10:11 AM
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.
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 07 Dec 2009, 10:15 AM
Hi Valeri,

Thanks for the assemblies !


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


Thanks !
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 08 Dec 2009, 12:17 PM
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 !
0
Pavel Pavlov
Telerik team
answered on 08 Dec 2009, 02:20 PM
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.
0
Thomas LEBRUN
Top achievements
Rank 1
answered on 08 Dec 2009, 02:24 PM
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 !
Tags
ComboBox
Asked by
Thomas LEBRUN
Top achievements
Rank 1
Answers by
Thomas LEBRUN
Top achievements
Rank 1
Valeri Hristov
Telerik team
Pavel Pavlov
Telerik team
Share this question
or