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

Selection out of range on RadComboBox.OnDataBinding

7 Answers 135 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 2
Phil asked on 14 Jul 2011, 06:27 PM
Hi:

I have just gone live on an application that ports data from a legacy system.  I am getting an exception on editing existing data.  Essentially, the case is different.  So, SQL is happy with the foreign key data, but the RadComboBox is not and causes an exception.  Any suggestions?

Phil

7 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 18 Jul 2011, 10:27 AM
Hi Phil,

In order to troubleshoot this issue, please try to provide more information on your particular implementation that you are using.

My suggestion is to open a support ticket which will speed up the troubleshooting process.

All the best,
Dimitar Terziev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Phil
Top achievements
Rank 2
answered on 19 Jul 2011, 03:08 AM
I think a support ticket is a little excessive.  Do you have any suggestions?
Phil
0
Dimitar Terziev
Telerik team
answered on 20 Jul 2011, 04:13 PM
Hello Phil,

The information provided in your previous post is insufficient in find the cause of your issue. Please try to provide me with the implementation of your combobox and the data base query used.

Regards,
Dimitar Terziev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Phil
Top achievements
Rank 2
answered on 20 Jul 2011, 10:30 PM
Hi:

The value in the foreign key table (combobox) is say:
HELLO
and the value in the table being updated is say:
Hello
The combobox is doing case sensitive lookup, so it causes a 'Selection out of range' exception.

Phil
0
Dimitar Terziev
Telerik team
answered on 26 Jul 2011, 08:41 AM
Hello Phil,

What seems the solution to this issue is manually converting the value from the RadComboBox to lower case and then updating the table with the new value.

Best wishes,
Dimitar Terziev
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Phil
Top achievements
Rank 2
answered on 28 Jul 2011, 03:22 PM
Hi:

try:
UPDATE primaryTable
   SET keyField = foreignKeyTable.keyField
  FROM foreignKeyTable
WHERE primaryTable.keyField = foreignKeyTable.keyField
0
Dimitar Terziev
Telerik team
answered on 02 Aug 2011, 12:08 PM
Hello Phil,

Please refer to the following forum threads here and here where you could find a solution how to make both of the table column values lower case.

I hope this would help.

Kind regards,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ComboBox
Asked by
Phil
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Phil
Top achievements
Rank 2
Share this question
or