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

[Solved] RadGrid - GridDateTimeColumn

2 Answers 284 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Johann
Top achievements
Rank 1
Johann asked on 06 Apr 2009, 11:01 AM
Hi

I have the following date time column in a Telerik radGrid:

<

 

telerik:GridDateTimeColumn DataField="SubmissionDate"

 

 

HeaderText="Submission Date" SortExpression="SubmissionDate"

 

 

UniqueName="SubmissionDate" PickerType="DateTimePicker"

 

 

FilterControlWidth="120px" DataFormatString="{0:dd MMMMMMMMMMMM yyyy HH:mmm}"

 

 

DataType="System.DateTime">

 

 

</telerik:GridDateTimeColumn>

Filtering is also enabled for the columns.
The filter for this column will display a date time picker.

The problem is that the date time picker's pop up images are not displaying and the calendar and time selections are transparent.

What am I missing?

Thanks

 

2 Answers, 1 is accepted

Sort by
0
Johann
Top achievements
Rank 1
answered on 08 Apr 2009, 02:51 PM
Hi

Just to supply some more info on this.

We did modify an existing skin; it's called 'MySkin'

If I put a radDateTimePicker outside the grid and set it's SkinID = 'MySkin' then all is fine.

The radDateTimePicker that is in the filter cell gets created when the app is executed - how do I set the SkinID for this radDateTimePicker. I have referenced the control in the ItemCreated event of the grid, but the SkinID can't be set there. It just states that the SkinID must be set in PreRender event. I'm sure it can't be done in the PreRender event of the page because at that time the items of the grid would not exist
0
Dimo
Telerik team
answered on 09 Apr 2009, 05:34 AM
Hello Johann,

You need to register a "MySkin" CSS file for the Calendar too - that's why the Calendar and TimeView are transparent and the buttons don't appear.

The RadGrid items do exist and can be referenced in PreRender:

C#

    protected void RadGrid1_PreRender(object sender, EventArgs e)
    {
        GridItem[] filteringItems = (sender as RadGrid).MasterTableView.GetItems(GridItemType.FilteringItem);
    }


Kind regards,
Dimo
the Telerik team

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