RadComboBox.PerformDataBinding exception handling

4 posts, 0 answers
  1. Jeroen
    Jeroen avatar
    7 posts
    Member since:
    Apr 2011

    Posted 15 Feb 2013 Link to this post

    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");



  2. Nencho
    Nencho avatar
    1888 posts

    Posted 20 Feb 2013 Link to this post

    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,
    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.
  3. Joel Reinford
    Joel Reinford avatar
    32 posts
    Member since:
    Sep 2004

    Posted 07 May 2014 in reply to Nencho Link to this post

    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. 

  4. Nencho
    Nencho avatar
    1888 posts

    Posted 12 May 2014 Link to this post

    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.


    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.

Back to Top