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

Validate Datetime Column before filter apply

2 Answers 74 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Le Danh
Top achievements
Rank 1
Le Danh asked on 29 Nov 2010, 05:22 AM
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 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 29 Nov 2010, 08:56 AM
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.
0
Le Danh
Top achievements
Rank 1
answered on 29 Nov 2010, 09:32 AM
OK, Thank Nikolay.




Mr PhuongLD
Tags
Filter
Asked by
Le Danh
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Le Danh
Top achievements
Rank 1
Share this question
or