Completed
Last Updated: 20 Oct 2026 14:21 by ADMIN
Release 2026 Q3 SP1
ADMIN
Ivan Danchev
Created on: 29 Sep 2016 07:45
Category: Navigation
Type: Bug Report
0
A "Selection out of range" exception is thrown on item selection in ComboBox (LOD) nested in Navigation NodeTemplate

1. Click the ComboBox

2. Select an item in its dropdown

3. Expected: no exception on selection, actual: A "Selection out of range" exception is thrown.

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

public partial class ComboBoxNavigation : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            
        }
    }

    private DataTable CreateTestTable()
    {
        DataTable table = new DataTable();
        table.Columns.Add("Text");
        table.Columns.Add("Value");
        table.Columns.Add("test");
        table.Rows.Add("Item1", "1", "aaa");
        table.Rows.Add("Item1", "1", "aaa");
        table.Rows.Add("Item1", "1", "aaa");
      
        return table;
    }

    protected void rcbStaff_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
    {

        RadComboBox rcbUser = sender as RadComboBox;
        rcbUser.DataSource = CreateTestTable();
        rcbUser.DataTextField = "Text";
        rcbUser.DataValueField = "Value";
        rcbUser.DataBind();

    }

    protected void rcbStaff_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {

    }
}

            <telerik:RadNavigation ID="RadNavigation1" runat="server">
                <Nodes>
                    <telerik:NavigationNode Text="Home"  />
                    <telerik:NavigationNode Text="Candidate"  />
                    <telerik:NavigationNode Text="Preliminary Candidate"  />
                    <telerik:NavigationNode Text="StaffSearch" CssClass="staffSearchWrapper rootTemplate">
                        <NodeTemplate>
                            <telerik:RadComboBox ID="rcbStaff" 
                                AutoPostBack="true" 
                                runat="server"
                                EnableLoadOnDemand="True" 
                                OnItemsRequested="rcbStaff_ItemsRequested"
                                OnSelectedIndexChanged="rcbStaff_SelectedIndexChanged"
                               >
                            </telerik:RadComboBox>
                        </NodeTemplate>
                    </telerik:NavigationNode>
                </Nodes>
            </telerik:RadNavigation>


		
2 comments
ADMIN
Rumen
Posted on: 20 Oct 2026 14:21

Hi everyone,

Thank you for reporting this issue. Following a recent review, we have decided to reopen this bug report, and we apologize that it was closed only because of the time that had passed. We reproduced the exception when a load-on-demand RadComboBox is placed inside a RadNavigation NodeTemplate. During data binding, the selected item may not have been loaded yet, causing the selection-out-of-range exception.

We have implemented a fix so the ComboBox can bind without throwing when the selected item is not currently loaded. The fix will be available in the upcoming 2026 Q3 SP1 release. The existing behavior for ComboBoxes without load-on-demand remains unchanged.

Regards,
Rumen
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources! 
ADMIN
Rumen
Posted on: 03 Nov 2025 09:35

Hi everyone,

This behavior was originally reported over 10 years ago and has not seen significant demand or follow-up from the community since then. Given this and the need to focus on higher-impact and more frequently requested improvements, we are closing this case.

If this limitation is still affecting your scenario, please share additional details or use cases. Your feedback will help us better evaluate the priority of this request in the future. Thank you for your understanding and contributions!

Best regards,
Rumen