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

RadComboBox.PerformDataBinding exception handling

3 Answers 69 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jeroen
Top achievements
Rank 1
Jeroen asked on 15 Feb 2013, 06:38 PM
I've pasted a code snippet from within RadComboBox.PerformDataBinding. Is there any reason that the ID of the dropdown is not put in the exception? This seems like a very easy code change that would help many people tremendously in debugging binding issues when they have multiple dropdowns.

I believe an OOTB ASP .NET dropdown box will also show the ID on a binding exception.

 

RadComboBoxItem selectedItem = FindItemByValue(cachedSelectedValue);
 
    if (selectedItem == null)
 
{
 
    throw new ArgumentOutOfRangeException("value", "Selection out of range");
 
}

 

 

3 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 20 Feb 2013, 12:45 PM
Hello Jeroen,

Thank you for your valuable suggestion and for your concern with RadControls. I will forwarded it to our developer team for further consideration.


Kind regards,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Joel Reinford
Top achievements
Rank 1
answered on 07 May 2014, 06:20 PM
It doesn't look like this suggestion got any traction. I'll second this feature request and add two more.

In addition to the exception message showing the control ID, it should show the value (cachedSelectedValue). 

Also, it would good if the control raised an event that we could choose to handle when the selected value does not exist in the list items. 


0
Nencho
Telerik team
answered on 12 May 2014, 12:15 PM
Hello Joel,

I have converted the feature request to a public item, in order to track its process and vote for it here. As for the other suggestion, related with the cachedSelectedValue and the raise of the event - you could comment the feature request, providing more details on the information which the exception should provide.

Regards,
Nencho
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.

 
Tags
ComboBox
Asked by
Jeroen
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Joel Reinford
Top achievements
Rank 1
Share this question
or