Validate Datetime Column before filter apply

3 posts, 0 answers
  1. Le Danh
    Le Danh avatar
    12 posts
    Member since:
    Oct 2010

    Posted 28 Nov 2010 Link to this post

    If I input error value into "LastModifiedAt" column of RadFilter then the page happen error. How to validate this value before "OnApplyExpressions" event.

    My coding is below:
        <telerik:RadFilter ID="RadFilter1" runat="server"  OnApplyExpressions="radFilterGridControl_SearchGridData">
            <FieldEditors>
                <telerik:RadFilterTextFieldEditor FieldName="LastModifiedAt" DisplayName="LastModifiedAt" DataType="System.DateTime" />
            </FieldEditors>
        </telerik:RadFilter>
                   
        <telerik:RadGrid ID="radGridControl" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
             AllowSorting="True"
            GridLines="None">
            <MasterTableView AutoGenerateColumns="False"  >
                <Columns>

                    <telerik:GridBoundColumn DataType="System.DateTime" DataField="LastModifiedAt" HeaderText="LastModifiedAt" >
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>

    Can you help me this problem?

    Thanks,
    Mr PhuongLD
  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2284 posts

    Posted 29 Nov 2010 Link to this post

    Hello PhuongLD,

    You should be using RadFilterDateFieldEditor instead. That will resolve the issue.

    Regards,
    Nikolay
    the Telerik team
    Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Le Danh
    Le Danh avatar
    12 posts
    Member since:
    Oct 2010

    Posted 29 Nov 2010 Link to this post

    OK, Thank Nikolay.




    Mr PhuongLD
Back to Top