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

Error when using filter isnull, isempty.

3 Answers 82 Views
Grid
This is a migrated thread and some comments may be shown as answers.
staron
Top achievements
Rank 1
staron asked on 13 Mar 2009, 12:02 PM
I get Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index.

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 13 Mar 2009, 05:22 PM
Hello Staron,

Please provide some details on how to reproduce the aforementioned problem. I will also appreciate if you can test whether our online demos are behaving as expected in this scenario.
Online Demos

Regards,
Daniel
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.
0
staron
Top achievements
Rank 1
answered on 16 Mar 2009, 11:53 AM
Hi, sorry for the lack of details.
Here is the error stacktrace:
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +7483656
   Telerik.Web.UI.GridFilterFunction.GetFunctionString(String fieldName, String value, Type valueDataType, GridTableView tableView) +3880
   Telerik.Web.UI.GridColumn.EvaluateFilterExpression(GridFilteringItem filteringItem) +312
   Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +627
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +61
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165
   Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +8583
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
I get the error when choosing a filter not based on the 'filter textbox'. The demoes are working fine. I might add that we're using a custom datasource, but no methods is called in it when this filter is applied.
0
Daniel
Telerik team
answered on 19 Mar 2009, 12:01 PM
Hello Staron,

Thank you for the provided stack trace.

Is your ViewState turned off? Could you provide a simple example where the error can be reproduced on my end?

Best regards,
Daniel
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
staron
Top achievements
Rank 1
Answers by
Daniel
Telerik team
staron
Top achievements
Rank 1
Share this question
or