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

[Solved] Filter and Filter By Column does not work in my RadGrid

3 Answers 26 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dragan
Top achievements
Rank 1
Dragan asked on 09 Dec 2010, 02:20 PM
Hi,
I use RadGrid, and I have a problem with filtering data. When I want to filter results i got message "Arithmetic operation resulted in an overflow.", and also when I want to filter data by column I got message "Cannot find column InvoiceNumber." 

any idea?


 <telerik:RadGrid ID="InvoiceHeaderGrid" 
                    runat="server" 
                    DataMember="InvoiceHeader" 
                    
                    DataSourceID="DBDataSource1" 
                    AutoGenerateColumns="False" 
                    AllowPaging="True" 
                    AllowSorting="True"
                    
                    AllowFilteringByColumn="True" 
                    GridLines="None"
                    EnableLinqExpressions="false"
                    Width="100%" Skin="Office2007"
                    ><PagerStyle Mode="NextPrevAndNumeric" />
                    
           <MasterTableView  DataKeyNames="CompanyID,DivisionID,DepartmentID,InvoiceNumber" 
                DataMember="InvoiceHeader"  
                DataSourceID="DBDataSource1"
                PageSize="30"
                AutoGenerateColumns="false" 
                ShowFooter="True"
                CommandItemDisplay="Top" >

 <telerik:RadGrid ID="InvoiceHeaderGrid" 
                    runat="server" 
                    DataMember="InvoiceHeader" 
                    
                    DataSourceID="DBDataSource1" 
                    AutoGenerateColumns="False" 
                    AllowPaging="True" 
                    AllowSorting="True"
                    
                    AllowFilteringByColumn="True" 
                    GridLines="None"
                    EnableLinqExpressions="false"
                    Width="100%" Skin="Office2007"
                    ><PagerStyle Mode="NextPrevAndNumeric" />
                    
           <MasterTableView  DataKeyNames="CompanyID,DivisionID,DepartmentID,InvoiceNumber" 
                DataMember="InvoiceHeader"  
                DataSourceID="DBDataSource1"
                PageSize="30"
                AutoGenerateColumns="false" 
                ShowFooter="True"
                CommandItemDisplay="Top" >
 <telerik:RadGrid ID="InvoiceHeaderGrid" 
                    runat="server" 
                    DataMember="InvoiceHeader" 
                    
                    DataSourceID="DBDataSource1" 
                    AutoGenerateColumns="False" 
                    AllowPaging="True" 
                    AllowSorting="True"
                    
                    AllowFilteringByColumn="True" 
                    GridLines="None"
                    EnableLinqExpressions="false"
                    Width="100%" Skin="Office2007"
                    ><PagerStyle Mode="NextPrevAndNumeric" />
                    
           <MasterTableView  DataKeyNames="CompanyID,DivisionID,DepartmentID,InvoiceNumber" 
                DataMember="InvoiceHeader"  
                DataSourceID="DBDataSource1"
                PageSize="30"
                AutoGenerateColumns="false" 
                ShowFooter="True"
                CommandItemDisplay="Top" >
 <telerik:RadGrid ID="InvoiceHeaderGrid" 
                    runat="server" 
                    DataMember="InvoiceHeader" 
                    
                    DataSourceID="DBDataSource1" 
                    AutoGenerateColumns="False" 
                    AllowPaging="True" 
                    AllowSorting="True"
                    
                    AllowFilteringByColumn="True" 
                    GridLines="None"
                    EnableLinqExpressions="false"
                    Width="100%" Skin="Office2007"
                    ><PagerStyle Mode="NextPrevAndNumeric" />
                    
           <MasterTableView  DataKeyNames="CompanyID,DivisionID,DepartmentID,InvoiceNumber" 
                DataMember="InvoiceHeader"  
                DataSourceID="DBDataSource1"
                PageSize="30"
                AutoGenerateColumns="false" 
                ShowFooter="True"
                CommandItemDisplay="Top" >
 <telerik:RadGrid ID="InvoiceHeaderGrid" 
                    runat="server" 
                    DataMember="InvoiceHeader" 
                    
                    DataSourceID="DBDataSource1" 
                    AutoGenerateColumns="False" 
                    AllowPaging="True" 
                    AllowSorting="True"
                    
                    AllowFilteringByColumn="True" 
                    GridLines="None"
                    EnableLinqExpressions="false"
                    Width="100%" Skin="Office2007"
                    ><PagerStyle Mode="NextPrevAndNumeric" />
                    
           <MasterTableView  DataKeyNames="CompanyID,DivisionID,DepartmentID,InvoiceNumber" 
                DataMember="InvoiceHeader"  
                DataSourceID="DBDataSource1"
                PageSize="30"
                AutoGenerateColumns="false" 
                ShowFooter="True"
                CommandItemDisplay="Top" >
 <telerik:RadGrid ID="InvoiceHeaderGrid" 
                    runat="server" 
                    DataMember="InvoiceHeader" 
                    
                    DataSourceID="DBDataSource1" 
                    AutoGenerateColumns="False" 
                    AllowPaging="True" 
                    AllowSorting="True"
                    
                    AllowFilteringByColumn="True" 
                    GridLines="None"
                    EnableLinqExpressions="false"
                    Width="100%" Skin="Office2007"
                    ><PagerStyle Mode="NextPrevAndNumeric" />
                    
           <MasterTableView  DataKeyNames="CompanyID,DivisionID,DepartmentID,InvoiceNumber" 
                DataMember="InvoiceHeader"  
                DataSourceID="DBDataSource1"
                PageSize="30"
                AutoGenerateColumns="false" 
                ShowFooter="True"
                CommandItemDisplay="Top" >
<telerik:RadGrid ID="InvoiceHeaderGrid"
                   runat="server"
                   DataMember="InvoiceHeader"
                    
                   DataSourceID="DBDataSource1"
                   AutoGenerateColumns="False"
                   AllowPaging="True"
                   AllowSorting="True"
                    
                   AllowFilteringByColumn="True"
                   GridLines="None"
                   EnableLinqExpressions="false"
                   Width="100%" Skin="Office2007"
                   ><PagerStyle Mode="NextPrevAndNumeric" />
                    
          <MasterTableView  DataKeyNames="CompanyID,DivisionID,DepartmentID,InvoiceNumber"
               DataMember="InvoiceHeader" 
               DataSourceID="DBDataSource1"
               PageSize="30"
               AutoGenerateColumns="false"
               ShowFooter="True"
               CommandItemDisplay="Top" >
<Columns>...

thanks in advance,
Dragan

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 13 Dec 2010, 09:25 AM
Hi Dragan,

I tried to replicate the issue which you described, but to no avail.
Attached to this message, you will find the code which I used for testing.

Please, take a look at it and let me know if there are any differences at your ends, which I may be leaving out.

Regards,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start 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
Dragan
Top achievements
Rank 1
answered on 13 Dec 2010, 03:22 PM
Hi Pavlina ,

I looked and I think that's all the same, your code works at me. 

Then, suppose that the problem maybe with the data source becauseI use XmlDataSource?

    <core:DBDataSource ID="DBDataSource1" runat="server" ObjectName="OrderHeader" TableName="OrderHeader"/>

<core:DBDataSource ID="DBDataSource1" runat="server" ObjectName="OrderHeader" TableName="OrderHeader"/>


Dragan

0
Pavlina
Telerik team
answered on 14 Dec 2010, 03:37 PM
Hello Dragan,

Could you please open a support ticket and send me a simple project reproducing this problem.
Thus we will be able to debug the project locally and help you to resolve the issue.

All the best,
Pavlina
the Telerik team
Browse the vast support resources we have to jump start 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.
Tags
Grid
Asked by
Dragan
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Dragan
Top achievements
Rank 1
Share this question
or