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

[Solved] Need help -urgent-Drop down Filter Template shows error -

1 Answer 104 Views
Grid
This is a migrated thread and some comments may be shown as answers.
omair
Top achievements
Rank 1
omair asked on 19 Jun 2009, 05:22 PM
Hello,

This is third time, I am posting my problem on the forum and yet now replied.

I have a simple RadComboBox Filter template, but when I select an option from filter, it produces following error.

Sys.WebForms.PageRequestManagerServerErrorException: Selection out of range parameter name: value

I need urgent help please. - Thanks alot

<tlk:GridCalculatedColumn meta:resourcekey="BuildingItemTypeColumn"   
                    UniqueName="BuildingItemType"   
                    DataFields="BuildingItemTypeCode,BuildingItemTypeDescription"   
                    Expression="{0} + &quot; - &quot; + {1}" DataFormatString="<nobr>{0}</nobr>">                      
                            
                        <FilterTemplate> 
                            <tlk:RadComboBox ID="TypeList" Height="100px" AppendDataBoundItems="true"   
                                runat="server" OnClientSelectedIndexChanged="TypeIndexChanged"  SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("BuildingItemType").CurrentFilterValue %>' 
                                >                                  
                                <Items> 
                                    <tlk:RadComboBoxItem Text="All" /> 
                                </Items> 
                            </tlk:RadComboBox> 
                            <tlk:RadScriptBlock ID="RadScript2" runat="server">  
 
                                <script type="text/javascript">  
                                    function TypeIndexChanged(sender, args) {  
                                          
                                        var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");  
                                        tableView.filter("BuildingItemType", args.get_item().get_value(), "Contains");  
                                   }  
                                </script> 
 
                            </tlk:RadScriptBlock> 
                        </FilterTemplate>                      
                        <HeaderStyle Width="200" /> 
                        <ItemStyle Wrap="false" /> 
                    </tlk:GridCalculatedColumn> 

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 24 Jun 2009, 02:51 PM
Hi omair,

We and a Telerik community member already responded to your questions in the two other forum threads you participated in:

http://www.telerik.com/community/forums/aspnet-ajax/grid/selection-out-of-range-by-filter-template.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/filtertemplate-filter-value-remains-quot-all-quot.aspx

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.
Tags
Grid
Asked by
omair
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or