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

Skin for DatePicker filter

3 Answers 78 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 18 Aug 2011, 06:41 PM
I have created a custom skin for my radgrid and have a number of datetime columns with filters.

Is there any way that I can apply my skin to the DatePicker controls that are automatically inserted as the filtering items?

I have tried assigning a SkinID to the filteringitem during the ItemCreated event and get an error telling me that I must make skin assignments during the Page.PreInit event.

Any ideas?

Thanks.

Mike

3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 23 Aug 2011, 09:24 AM
Hi Mike,

When you set a the RadGrid Skin property, all RadControls in it automatically inherit this Skin. So if you have created a custom Skin for the grid, you should do the same for all controls that might appear at some point in the grid.

Kind regards,
Iana
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 >>

0
Mike
Top achievements
Rank 1
answered on 24 Aug 2011, 09:33 PM
Thanks for the reply.

Unfortunately, when I enable filtering for a radgrid date column, the radgrid inserts the datepicker control automatically as the filter control for the column, which means that there is no opportunity that I can find to specify a skin for the datepicker control.

I have specified the skin for the radgrid, but it doesn't seem to be applying it to the datepicker controls that it inserts into the filter row of the date columns.

Mike
0
Iana Tsolova
Telerik team
answered on 25 Aug 2011, 01:33 PM
Hello Mike,

Indeed, the Skin is automatically applied for all RadControls in the RadGrid, so it is not necessary you do set it manually. Additionally, the RadControls in the grid cannot have different Skin then this set to the grid itself.
So if you have custom Skin for the RadGrid, you should defined custom Skin with the same name for  RadDatePicker (RadInput, RadCalendar) and register it on the page the same way you registered the grid custom skin.

Kind regards,
Iana
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
Mike
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Mike
Top achievements
Rank 1
Share this question
or