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

Problem with RadFilterNumericFieldEditor

0 Answers 25 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Pavel asked on 07 Jun 2012, 02:31 PM

Hello, in our project we use RadFilter Control.

This is a code from aspx file.

<telerik:RadFilter runat="server" ID="VehicleGridRadFilter" ShowApplyButton="True"  FilterContainerID="VehiclesRadGrid" >
                        <telerik:RadFilterNumericFieldEditor FieldName="EmployeeID" DataType="System.Int32" />
<telerik:RadGrid ID="VehiclesRadGrid" runat="server" AllowSorting="True" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#c3c3c3" BorderStyle="Double" BorderWidth="1px"
        CaptionAlign="Bottom" CellPadding="3" Width="926px" GridLines="none" AllowPaging="true" PageSize="25" OnNeedDataSource="VehiclesRadGrid_NeedDataSource"
        OnItemCommand="VehiclesRadGrid_ItemCommand" IsFilterItemExpanded="false" OnItemDataBound="VehiclesRadGrid_ItemDataBound">
      <MasterTableView DataKeyNames="VehicleID">
                <telerik:GridBoundColumn DataField="Year" HeaderText="<%$Resources:PageContent,Global_Year %>" SortExpression="Year" DataType="System.Int32"
                    UniqueName="YearColumn" AllowFiltering="True">
                    <ItemStyle HorizontalAlign="Center" Wrap="True" CssClass="cellStyleBoth" />
                </telerik:GridBoundColumn >
       <ItemStyle CssClass="GridAlt" Wrap="True" />
        <SelectedItemStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <PagerStyle CssClass="GridPage" AlwaysVisible="true" Position="TopAndBottom" />
        <HeaderStyle CssClass="GridTitle" />
        <EditItemStyle Wrap="False" />
        <AlternatingItemStyle CssClass="GridAlt1" />

Year in our model is System.Int32 property.

1)      How we can set Min/Max values for Year Filter? Or Catch momen when user input wrong value in filter?

2)      1-st question received because if user set Filter value to 999999999999999999999, Filter controls set value to 70368744177664, but we receive error javascript console message on page with control ('Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: =0G5=85 1K;> =54>?CAB8<> <0;K< 8;8 =54>?CAB8<> 1>;LH8< 4;O Int32.' when calling method: [nsIDOMEventListener::handleEvent])

We try play with this control on but if we insert 9999999999999999999999999 to EmployeeID filter, page show

Thank you.

No answers yet. Maybe you can help?

Asked by
Top achievements
Rank 1
Share this question