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

How to hide Monthcell in RadMonthYearPicker

3 Answers 92 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Anandhi
Top achievements
Rank 1
Anandhi asked on 25 Jul 2013, 02:13 PM

How to Hide Month Cell in RadMonthYearPicker while datepopupbutton focussed.

 

 

 

 

 

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Jul 2013, 12:30 PM
Hi Anandhi,

Please have a look into the following code I tried which works fine at my end.

ASPX:
<telerik:RadMonthYearPicker ID="RadMonthYearPicker1" runat="server" OnViewCellCreated="RadMonthYearPicker1_ViewCellCreated">
</telerik:RadMonthYearPicker>

C#:
protected void RadMonthYearPicker1_ViewCellCreated(object sender, MonthYearViewCellCreatedEventArgs e)
{
    if (e.Cell.CellType == MonthYearViewCellType.MonthCell)
    {
        e.Cell.Style["display"] = "none";
    }
}

Thanks,
Shinu.
0
Dhamodharan
Top achievements
Rank 1
answered on 29 Jul 2013, 05:34 PM
Hi Shinu,
 It works perfectly, how to enable this on dynamically binding values to RadMonthYearPicker 







Thanks
0
Eyup
Telerik team
answered on 01 Aug 2013, 09:46 AM
Hello Dhamodharan,

I am afraid it is difficult to figure out your exact requirement. Can you please elaborate on your specific scenario and provide us sample screenshots or video demonstrating the desired behavior?

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Calendar
Asked by
Anandhi
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Dhamodharan
Top achievements
Rank 1
Eyup
Telerik team
Share this question
or