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

Calender in RadDockZone

3 Answers 34 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Pathrudu
Top achievements
Rank 1
Pathrudu asked on 17 Jun 2013, 04:33 PM
Hi Everyone,

I m newly working on Rad Controls. So, please clarify me on my below requirements.

1. Can we add Calender (Dynamic) directly to RadZone. or we have to do it through RadDock.???
2. I need calender to start from current month with only right arrow beside it. Only clicking this right arrow, we have to navigate to next  month and at the same time left arrow should be enabled.
3. Is Calendar can be minimized ???


Its would helpful for me if you suggest anything for above. Atleast some hints.

Thanks and Regards
Pathrudu Majji

3 Answers, 1 is accepted

Sort by
0
Pathrudu
Top achievements
Rank 1
answered on 25 Jun 2013, 10:38 AM

Hi Team,

I was succedded in preventing users from navigating to past month by using
_Calender.RangeMinDate = DateTime.Today;

But, i also had a requirement to hide the PREV navigation icon for current month. When users navigated to next month, then only the PREV navigation icon has to be enabled. How to acheive this ????

Thanks in advance.

Regards
Pathrudu
0
Pathrudu
Top achievements
Rank 1
answered on 07 Oct 2013, 12:40 PM
HI Friends, Any help ??/?
0
Konstantin Dikov
Telerik team
answered on 10 Oct 2013, 09:09 AM
Hello Pathrudu,

You could achieve your requirement if you set the "RangeMaxDate" to be the end of the next month for example and set the "HideNavigationControls" property of the RadCalendar to "true".

Here is the markup and the code behind:
<telerik:RadCalendar ID="RadCalendar1" runat="server" AutoPostBack="true"></telerik:RadCalendar>
And the code-behind:
protected void Page_Load(object sender, EventArgs e)
{
    RadCalendar1.RangeMinDate = DateTime.Today;
    RadCalendar1.RangeMaxDate = DateTime.Today.AddDays(-DateTime.Now.Day).AddMonths(2); // or your custom max date
    RadCalendar1.HideNavigationControls = true;
}

Hope that helps.



Regards,
Konstantin Dikov
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
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Pathrudu
Top achievements
Rank 1
Answers by
Pathrudu
Top achievements
Rank 1
Konstantin Dikov
Telerik team
Share this question
or