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

Selection out of range -not in grid or form

2 Answers 38 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Robot B9
Top achievements
Rank 2
Robot B9 asked on 08 Nov 2011, 12:45 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar Terziev
Telerik team
answered on 10 Nov 2011, 01:47 PM
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
0
Robot B9
Top achievements
Rank 2
answered on 11 Nov 2011, 02:11 PM
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.
Tags
ComboBox
Asked by
Robot B9
Top achievements
Rank 2
Answers by
Dimitar Terziev
Telerik team
Robot B9
Top achievements
Rank 2
Share this question
or