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

[Solved] GridNumericColumnEditor dosn't affect filtering

1 Answer 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Kent Williams
Top achievements
Rank 1
Kent Williams asked on 10 Aug 2009, 06:29 PM
Hi,

I read http://www.telerik.com/community/forums/aspnet-ajax/grid/gridnumericcolumn-cant-set-format.aspx#895768 and was finally able to get my numeric column to format correctly (Side note: attaching via codebehind does seem like a hack). I am happy that the columns are formatting correctly for both view and edit modes. However, they don't seem to be following the formatting rules for the filter numeric text box in the column header. Is there a seperate property I need to set or something?

Thanks,
Kent

<telerik:GridNumericColumnEditor ID="employeeIdColumnEditor" runat="server">  
    <NumericTextBox> 
        <NumberFormat DecimalDigits="0" GroupSeparator="" /> 
    </NumericTextBox> 
</telerik:GridNumericColumnEditor> 

            <tekerik:GridNumericColumn DataField="MgrEmpID" ColumnEditorID="employeeIdColumnEditor" HeaderText="Employee ID" SortExpression="MgrEmpID" UniqueName="MgrEmpID" DataType="System.Int32">  
            </tekerik:GridNumericColumn> 

1 Answer, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 12 Aug 2009, 08:48 PM
I saw the topic you linked in your post so I was interested to see if there's a solution for this as well. I found the following few articles that might be able to help:
http://www.telerik.com/help/aspnet/grid/grdcustomoptionforfiltering.html
http://www.telerik.com/help/aspnet/grid/grdfilteringfordatetimecolumnwithdataformatstring.html
http://www.telerik.com/help/aspnet/grid/grdoperatewithfilterexpression.html
I'm not sure if these will give you absolute solution, but I think the might push a little further to the solution.
Tags
Grid
Asked by
Kent Williams
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Share this question
or