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

RadGrid strange behaviour

4 Answers 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
sandesh
Top achievements
Rank 1
sandesh asked on 17 Aug 2011, 05:13 PM
Hi,
I am usiing radgrid in one of my page. In this grid there are 2 columns . One of the column is datetime. I have used GridDateTime column. There are custom filter and custom paging in this page. when I filter some data in datetime column like GeaterThanEqualTo the datasource take correct records from sql query. After binding the grid and setting virtual count the Grid1.Items.Count is showing wrong number of records or Grid1.MasterTableview.items.count also shows incorrect no of records. Paging is showing perfectly. But record displayed is incorrect. Also the datasource shows correct rows. Please provide solution for this as soon as possible.

sandesh

4 Answers, 1 is accepted

Sort by
0
Stanley
Top achievements
Rank 1
answered on 18 Aug 2011, 07:30 AM
Are you sure that your records are filtering properly?

I know that there have been some issues with GirdDateTime columns not filtering properly because the default filters take into account the time of the day as well, ie "12:00 am"

Refer to this thread to understand what I'm talking about:

http://www.telerik.com/community/forums/aspnet-ajax/grid/date-filtering-in-radgrid-not-working.aspx


Stanley



0
sandesh
Top achievements
Rank 1
answered on 18 Aug 2011, 07:44 AM
Yes , I have checked that records are filtering correctly. but grid is not displaying it correctly.

sandesh
0
sandesh
Top achievements
Rank 1
answered on 18 Aug 2011, 10:22 AM
One more thing which I have seen that Items.count value is different than the datasource record count. Grid is showing same number of records as in Item.count property which is not correct.

Sandesh
0
Maria Ilieva
Telerik team
answered on 23 Aug 2011, 08:53 AM
Hi Sandesh,

Could you please share some code from your RadGrid declaration as well as the related code behind. Thus we will be able ti further research on the problem and provide proper solution.

Kind regards,
Maria Ilieva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Grid
Asked by
sandesh
Top achievements
Rank 1
Answers by
Stanley
Top achievements
Rank 1
sandesh
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or