Grid error when filtering date field

7 posts, 1 answers
  1. drpcken
    drpcken avatar
    36 posts
    Member since:
    Feb 2007

    Posted 24 Feb 2009 Link to this post

    I have a grid with filtering turned on.  All my filters work great except my date column.  Here is the column:

    <telerik:GridDateTimeColumn DataField="MedicalRenewalDate" HeaderText="Renews"  
                        SortExpression="MedicalRenewalDate" UniqueName="column9"  
                        DataFormatString="{0:d}" FilterControlWidth="90px" PickerType="DatePicker"
                    </telerik:GridDateTimeColumn> 

    When I pick a date on the calendar and click the filter icon and choose a filter, a javascript error shows in the status bar that says the following:

    Sys.Webforms.PageRequestManagerErrorException: Index (zero based) must be greater than or equal to zero and less than the size of the arguement list.  Code: 0.

    Of course the filter doesn't take affect.

    Anything I'm missing?


  2. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 27 Feb 2009 Link to this post

    Hi drpcken,

    Version 13.14 of RadGrid does have this filtering issue which has already been fixed. You can download the fix from your customer account under latest builds.

    Hope this helps.

    Best regards,
    Tsvetoslav
    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. drpcken
    drpcken avatar
    36 posts
    Member since:
    Feb 2007

    Posted 01 Mar 2009 Link to this post

    I am currently on version 1314.

    I've noticed it only seems to happen with the datetime column type, if I replace it with a bound column it seems to work fine.
  5. Answer
    Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 02 Mar 2009 Link to this post

    Hello drpcken,

    In case you use .NET 35 version of the grid, can you check whether setting EnableLinqExpressions = false for the control makes a difference? You may also test with the latest internal build from your account to see whether this addresses the error in question.

    Kind 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.
  6. Brett Robichaud
    Brett Robichaud avatar
    24 posts
    Member since:
    Feb 2009

    Posted 04 Mar 2009 Link to this post

    I am experiencing this same problem with the 2008.3.1314.35 build. I can confirm that if I set EnableLinqExpressions to false the problem is resolved. I am curious what I lose by disabling this however? And is there a fix in the works that doesn't require disabling linq expressions?
  7. drpcken
    drpcken avatar
    36 posts
    Member since:
    Feb 2007

    Posted 04 Mar 2009 Link to this post

    That worked for me!  I'm glad it fixed it, but I'm curious also why I have to disable Linq on the grid... 
  8. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Mar 2009 Link to this post

    Hi All,

    I have found somewhere in the Help articles regarding the EnableLinqExpressions stating:

    With the .NET 3.5 build of RadGrid for ASP.NET AJAX and LINQ filter expressions enabled (EnableLinqExpressions = true), the filter expressions set for the grid either internally by its filtering mechanism or manually in code should conform to the LINQ expression syntax instead of the old T-SQL syntax. Only thus they will be evaluated properly by the control.

    Thanks
    Shinu
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017