modify FilterExpression server side

2 posts, 0 answers
  1. Riaan
    Riaan avatar
    17 posts
    Member since:
    Jan 2009

    Posted 26 Feb 2009 Link to this post

    Good day there,

    I would like to modify my filter expression on the server side in c#. The problem is that my radgrid rgAuditTrails_NeedDataSource event is not firing. I am declaring the events correctly as such;

      <telerik:RadGrid ID="rgAuditTrails" AllowFilteringByColumn="true" 
    runat="server" SkinID="MySkin" ClientSettings-Selecting-AllowRowSelect="true"
    AutoGenerateColumns="False" GridLines="None" AllowPaging="True" 
    DataSourceID="dsAuditTrails" PageSize="15" 
    onitemcommand="rgAuditTrails_ItemCommand" 
    onneeddatasource="rgAuditTrails_NeedDataSource
    ">

    and I am making sure that EnableViewState="True" here.

      <MasterTableView EnableViewState="true" DataKeyNames="AuditTrailID" DataSourceID="dsAuditTrails">

    Could you perhaps come with any suggestions.

    Thanks

    RB

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 26 Feb 2009 Link to this post

    Hi Riaan,

    Try setting the FilterExpression  in the  PreRender event of the Grid and see whether it is working. Also make sure that you have not set the EnableLinqExpressions  to true. If this does not help consider sending the code in the NeedDataSource event.

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