Hello,
i am using Telerik Version Q1 2009.
In my RadGrid is a filter like that:
<telerik:GridTemplateColumn DataField="BETRIEBSNR" HeaderText="Betriebsnr" UniqueName="BETRIEBSNR">
<FilterTemplate>
<telerik:RadComboBox ID="RadComboBox1" DataSourceID="SDS_FILTER_BETRIEBSNR" DataTextField="BETRIEBSNR"
DataValueField="BETRIEBSNR" AppendDataBoundItems="true"
SelectedValue='<%# TryCast(Container,GridItem).OwnerTableView.GetColumn("BETRIEBSNR").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="SelectedIndexChanged" EnableLoadOnDemand="true"
AllowCustomText="true" MarkFirstMatch="true">
<Items>
<telerik:RadComboBoxItem />
</Items>
</telerik:RadComboBox>
<telerik:RadScriptBlock ID="RadScriptsBlock1" runat="server">
<script type="text/javascript">
function SelectedIndexChanged(sender, args) {
var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
tableView.filter("BETRIEBSNR", args.get_item().get_value(), "EqualTo");
}
</script>
</telerik:RadScriptBlock>
</FilterTemplate>
<ItemTemplate>
<%#Eval("BETRIEBSNR")%>
</ItemTemplate>
</telerik:GridTemplateColumn>
…
<asp:SqlDataSource ID="SDS_FILTER_BETRIEBSNR" runat="server"
ConnectionString="<%$ ConnectionStrings:APPDB %>" SelectCommand="SELECT DISTINCT BETRIEBSNR FROM BETRIEBE"></asp:SqlDataSource>
If I take an Item i’m getting this message:
Sys.WebForms.PageRequestManagerServerErrorException: Selection out of range
Parametername: value
Telerik.Web.UI.WebResource.axd Zeile:6
Thank you for your help!
8 Answers, 1 is accepted
I have prepared a small sample using a similar approach which works as expected on my end. Try it and let me know what is different in your case.
Kind regards,
Pavel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.

Selection out of range parameter name: value
any suggestion?
Have you compared your implementation with this presented in the following online demos of the product:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filtertemplate/defaultcs.aspx
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/filteringtemplatecolumns/defaultcs.aspx
Can you outline the differences between those cases and your configuration? They can lead us to the source of the problem to address it accordingly. You may also test the samples from the RadControls local installation on your machine residing in the following default location:
C:\Program Files\telerik\RadControls for ASPNET AJAX Q1 2009\Live Demos\Grid\Examples
Best regards,
Sebastian
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.


I use nested grid to display a big web form base on master detail structure and the 1st element of the list of master table return this error, but second item work fine.
My specific context, it was work on 2009Q2 trial version before I upgraded to 2009Q3 or 2010Q1 licenced version.
Maybe it because I need to update something on server, but what ? Have any Idea ?
Thank!

I have the same issue with Filtering Template ("selection out of range!")
when I select a value from the RadComboBox FilteringTemplate it causes this error :
"Sys.WebForms.PageRequestManagerServerErrorException : Selection out of range Parameter Name : value"
here is my code
<
telerik:RadGrid
ID
=
"RadGrid1"
Width
=
"100%"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
AllowPaging
=
"True"
PageSize
=
"7"
runat
=
"server"
AutoGenerateColumns
=
"False"
OnPreRender
=
"RadGrid1_PreRender"
ShowStatusBar
=
"true"
EnableLinqExpressions
=
"false"
OnNeedDataSource
=
"RadGrid1_NeedDataSource"
>
<
MasterTableView
DataKeyNames
=
"ID"
>
<
Columns
>
<
telerik:GridBoundColumn
UniqueName
=
"FileType"
DataField
=
"FileType"
HeaderText
=
"File Type"
HeaderStyle-Width
=
"200px"
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"RadComboBoxFileType"
DataTextField
=
"FileType"
DataValueField
=
"FileType"
Height
=
"200px"
AppendDataBoundItems
=
"true"
SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("FileType").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="FileTypeIndexChanged">
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"All"
/>
</
Items
>
</
telerik:RadComboBox
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock1"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function FileTypeIndexChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("FileType", args.get_item().get_value(), "EqualTo");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"DummyValues"
DataField
=
"DummyValues"
HeaderText
=
"DummyValues"
HeaderStyle-Width
=
"200px"
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"RadComboBoxDummy"
DataTextField
=
"DummyValues"
DataValueField
=
"DummyValues"
Height
=
"100px"
AppendDataBoundItems
=
"true"
SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("DummyValues").CurrentFilterValue %>'
runat="server" OnClientSelectedIndexChanged="DummyValuesIndexChanged">
<
Items
>
<
telerik:RadComboBoxItem
Text
=
"All"
/>
</
Items
>
</
telerik:RadComboBox
>
<
telerik:RadScriptBlock
ID
=
"RadScriptBlock2"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function DummyValuesIndexChanged(sender, args) {
var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
tableView.filter("DummyValues", args.get_item().get_value(), "EqualTo");
}
</
script
>
</
telerik:RadScriptBlock
>
</
FilterTemplate
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
UniqueName
=
"FileName"
DataField
=
"FileName"
HeaderText
=
"File Name"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"200px"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
I dont know where I made a mistake!!
I also attaching the screenshot of error

Thanks
milind
I tried to replicate the problem you are facing but to no avail. Please find attached my test project which is working without errors and let me know if it helps to resolve the issue you are facing.
Regards,
Pavlina
the Telerik team