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

RadGrid Filter not working for GridDateTimeColumn for Equal to options

4 Answers 469 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 06 Sep 2011, 09:56 AM

Hi
We are using Telerik RadGrid in that we are using "GridDateTimeColumn" for Datetime Columns.If we use Filter options  as equal to for any options it is showing no datafound. We have tried various methods In the previous post from the following links
http://demos.telerik.com/aspnet-ajax/grid/examples/generalfeatures/filtering/defaultcs.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/filter-problem-on-a-griddatetimecolumn.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/griddatetimecolumn-filter-date-format.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/griddatetimecolumn-filter.aspx .
Also some of the sample project downloaded from post we have tried but that too seems not to be working .

The Sample Code snippet in the aspx page we have used

 

 

 

<telerik:GridDateTimeColumn DataField="LAST_LOGON_DATE" HeaderText="Last Accessed"

 

 

 

 

 

 

 

 

DataType="System.DateTime" SortExpression="LAST_LOGON_DATE" UniqueName="LASTLOGONDATE"

 

 

 

 

 

 

 

 

PickerType="DatePicker" ItemStyle-HorizontalAlign="Left" DataFormatString="{0:dd/MM/yyyy,HH:mm}"

 

 

 

 

 

 

 

 

ItemStyle-Font-Size="8pt" HeaderStyle-Width="160px" ItemStyle-Width="160px" meta:resourcekey="LASTLOGONDATE">

 

 

 

 

 

 

 

 

</telerik:GridDateTimeColumn>

For Picker We have also tried in the ItemCreated method

 

 

 

protected void radgridAdminListUser_ItemCreated(object sender, GridItemEventArgs e)

 

{

 

 

try

 

 

 

 

 

{

 

 

if (e.Item is GridFilteringItem)

 

{

 

 

RadDatePicker picker = ((GridFilteringItem)e.Item)["LASTLOGONDATE"].Controls[0] as RadDatePicker;

 

 

 

if (picker != null)

 

{

picker.DateInput.DateFormat =

 

"dd-MM-yyyy HH:mm tt";

 

 

}

}

}

}
}
but that is also not working.
for more info please find the ScreenCapture in the attachment

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 06 Sep 2011, 10:47 AM
Hello Manish,

I have found the following forum which discussed the similar scenario.
GridDateTimeColumn "Equal To" filter problem.

Thanks,
Shinu.
0
Manishkumar
Top achievements
Rank 1
answered on 06 Sep 2011, 11:07 AM
Hi Shinu;
I have tried all the things mention in this link but nothing was seems to be working
http://www.telerik.com/community/forums/aspnet-ajax/filter/griddatetimecolumn-quot-equal-to-quot-filter-problem.aspx
Can you please suggest some otherway around that how can I achive this functionality
0
Manishkumar
Top achievements
Rank 1
answered on 08 Sep 2011, 08:21 AM
Hi;
Can We have Any Resolution for above issue.We have tried all the thing but nothing seems to be Working for us.
We are having Go-Live very soon please provide some reosultion
0
Mira
Telerik team
answered on 08 Sep 2011, 11:37 AM
Hello Manishkumar,

I have answered your post about the same issue in the GridDateTimeColumn "Equal To" filter problem forum thread.
In order to avoid duplicate posts, I suggest that we continue the communication in it.

Best wishes,
Mira
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
General Discussions
Asked by
Manishkumar
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Manishkumar
Top achievements
Rank 1
Mira
Telerik team
Share this question
or