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

GridDateTimeColumn Issues

1 Answer 110 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 16 Sep 2008, 09:55 PM
I have successfully added the datepicker drop down as a filter for the grid. This is much better that typing in a date but I have some issues !

<telerik:GridDateTimeColumn DataFormatString="{0:d}" DataField="Date" HeaderText="Date" ReadOnly="True" SortExpression="Date" UniqueName="Date" DataType="System.DateTime" ></telerik:GridDateTimeColumn>

1. the BETWEEN filter is removed.  How can I get 2 datepickers to drop down to get a between filter ?

2.  I can not fully format the datepicker !  In codebehind I have added  in  

RadGrid1_ItemCreated 

event the following:

Dim datebox As RadDatePicker = CType(filteringItem("Date").Controls(0), RadDatePicker)

datebox.Width = Unit.Pixel(80)
datebox.Skin = Application(

"TelerikTheme")
datebox.Calendar.ShowColumnHeaders =
False
datebox.Calendar.ShowRowHeaders =
False
datebox.Calendar.ShowOtherMonthsDays =
False
datebox.Calendar.FastNavigationStep = 12

These 1st  2 above items in green work the size shrinks and a user's skin choice is applied , However the other 4 items compile, but have no affect on the look of the grid !

How can I modify the elements of the datepicker filter ?

Thank You !

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 19 Sep 2008, 03:10 PM
Hello David,

Please refer to this code library for more information how to implement similar functionality.

Kind regards,
Rosen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or