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

[Solved] Rad Grid Q3 2008 Filter Causing webpage error

1 Answer 100 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kyri
Top achievements
Rank 2
Kyri asked on 03 Apr 2009, 01:11 AM
Hey guys, i have been trying to convert my radgrid controls from Q2 2008 to Q3 2008 and i have been having issues with filtering (the Filtering works fine with the Q2 DLL). If the column is an integer (like the PK of a table) the browser pops up with the following exception

--WEBPAGE ERROR DIALOGUE  POPUP --
WEBPAGE ERROR
Line: 6
Error: Sys.WebForms.PageRequestManagerServerErrorException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list

The code behind the grid is

<telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowMultiRowSelection="True"
                            AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="SqlDataSource6"
                            GridLines="None" onload="RadGrid1_Load" onrowdrop="RadGrid1_RowDrop" Skin="Forest"
                            style="margin-right: 0px" ondatabound="RadGrid1_DataBound1">
                            <HeaderContextMenu Skin="Forest">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </HeaderContextMenu>
                            <pagerstyle mode="NextPrevAndNumeric" />
                            <mastertableview commanditemdisplay="Top" datakeynames="SKU_NUM,DESCRIPTION,CURR_PURCH_COST"
                                datasourceid="SqlDataSource6" retrievealldatafields="False">
                               <Columns>
                               <telerik:GridBoundColumn DataField="SKU_NUM" DataType="System.Decimal"
                                EmptyDataText="&amp;nbsp;" HeaderText="SKU_NUM" ReadOnly="True"
                                SortExpression="SKU_NUM" UniqueName="SKU_NUM">
                               
                                </telerik:GridBoundColumn><telerik:GridBoundColumn DataField="prod_num" EmptyDataText="&amp;nbsp;"
                                HeaderText="APN" ReadOnly="True" SortExpression="prod_num" UniqueName="BARCODE"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="DESCRIPTION" EmptyDataText="&amp;nbsp;"
                                HeaderText="DESCRIPTION" SortExpression="DESCRIPTION" UniqueName="DESCRIPTION"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="GROUPNAME" EmptyDataText="&amp;nbsp;"
                                HeaderText="GROUP" SortExpression="GROUPNAME" UniqueName="GROUPNAME"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="DEPTNAME" EmptyDataText="&amp;nbsp;"
                                HeaderText="DEPARTMENT" SortExpression="DEPTNAME" UniqueName="DEPTNAME"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="CLASSNAME" EmptyDataText="&amp;nbsp;"
                                HeaderText="CLASS" SortExpression="CLASSNAME" UniqueName="CLASSNAME"></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="HQID" EmptyDataText="&amp;nbsp;"
                                HeaderText="HQID" SortExpression="HQID" UniqueName="HQID"></telerik:GridBoundColumn></Columns><PagerStyle Mode="NextPrevAndNumeric" /><commanditemtemplate><table style="width: 100%;"><tr><td align="left"><asp:Label ID="Label8" runat="server" Font-Names="Verdana" Font-Size="10pt"
                                            ForeColor="#FFFFCC" Text="CHOOSE ITEMS TO ADD TO PROMO"></asp:Label></td><td align="right"><asp:ImageButton ID="ImageButton12" runat="server"
                                            ImageUrl="~/images/icons/Refresh24.png" onclick="ImageButton12_Click" /></td></tr></table></commanditemtemplate></mastertableview>
                            <clientsettings allowrowsdragdrop="True"><selecting allowrowselect="True" /></clientsettings>
                            <filtermenu skin="Forest" >
                                <collapseanimation duration="200" type="OutQuint" />
                            </filtermenu>
                        </telerik:RadGrid>

Any Ideas as to what is causing this?
.

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 06 Apr 2009, 03:16 PM
Hello Kyri,

Can you please check whether migrating to the Q3 2008 SP2 release of the controls (2008.3.1314) following the steps from here eliminates the error? The issue has been reported with previous version of the product and should be fixed in the subsequent service packs.

In case you are using the .NET 3.5 version of the control, test whether setting the EnableLinqExpressions property of the grid to false makes a difference.

Best regards,
Sebastian
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Kyri
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or