Selection out of range -not in grid or form

3 posts, 1 answers
  1. Robot B9
    Robot B9 avatar
    13 posts
    Member since:
    Oct 2011

    Posted 07 Nov 2011 Link to this post

    I have combobox that is EnableAutomaticLoadOnDemand=true
    It is not in a grid or a form, and the object and events for the combo are available via the .NET code pickboxes.
    Every so often the Selection out of range Parameter name: value  exception will rear it's ugly head.
    I was driving three other radgrid on my page without problem. This exception will show weather the combo is part of hte ajaxmanager or not. I read that clearing the combo will solve this, but all this is set to automatic.
    See combo config below:

    <telerik:RadComboBox runat="server" ID="ddlEmployee" DataSourceID="dsEmployeeID"
                                EmptyMessage="Select an Employee"
                                skin="Vista" 
                                DataTextField="txt"
                                DataValueField="EmpID"
                                Width="300px"
                                DropDownWidth="350px"
                                CausesValidation="false"
                                AutoPostBack="True"
                                EnableVirtualScrolling="true"
                                Filter="Contains"
                                EnableAutomaticLoadOnDemand="true"
                                HighlightTemplatedItems="true"
                                ShowMoreResultsBox="true"
                                AllowCustomText="true"
                                MarkFirstMatch="true" 
                                SortCaseSensitive="False"
                                ItemsPerRequest="20">
                                <HeaderTemplate>
                                    <table style="width: 350px; text-align: left">
                                        <tr>
                                            <td style="width: 110px;">Last Name</td>
                                            <td style="width: 110px;">First Name</td>
                                            <td style="width: 130px;">Employee ID</td>
                                        </tr>
                                    </table>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <table style="width: 315px; text-align: left">
                                        <tr>
                                            <td style="width: 125px;">
                                                <%#DataBinder.Eval(Container.DataItem, "LName")%>
                                            </td>
                                            <td style="width: 125px;">
                                                <%#DataBinder.Eval(Container.DataItem, "FName")%>
                                            </td>
                                            <td style="width: 100px;">
                                                <%#DataBinder.Eval(Container.DataItem, "EmpID")%>
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </telerik:RadComboBox>
  2. Answer
    Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 10 Nov 2011 Link to this post

    Hello Mark,

    The mark-up of the RadComboBox seems right and I there is not obvious reason for the received exception. Please open a support ticket and provide a runnable sample with the issue being reproduced so I could troubleshoot it locally.

    Greetings,
    Dimitar Terziev
    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. Robot B9
    Robot B9 avatar
    13 posts
    Member since:
    Oct 2011

    Posted 11 Nov 2011 Link to this post

    It is ok.
    This is a non-issue. I should've trouble-shooted this item further, which I did.
    It was a rad combo box on the page, but not the one that I posted above. I had forgotten that I had added another to the page and it was in a formview. This one was causing the page error because the data in the form record was not in the combobox for a particular field. It is working beautifully now.
    Thank you.
Back to Top