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

Problem with calendar popup in RadDatePicer when using Ajax

1 Answer 19 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Mateusz
Top achievements
Rank 1
Mateusz asked on 12 Dec 2011, 01:29 PM
Hi,
I want to change visibilty of RadDatePicker with RadComboBox using Ajax.
I also want to add ajax setting code-behind.
I'm using following code:

protected void Page_Load(object sender, EventArgs e)
{
RadAjaxManager1.AjaxSettings.AddAjaxSetting(rcbSelect, rdpDate);
if(!IsPostback)
rdpDate.Visible = false;
}
   
protected void rcbSelect_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
rdpDate.Visible = true;
}

Everything works great, but there's a problem with RadDatePicker calendar popup. When I click button, it doesn't show after control visible is set to true. It simply does nothing.
No javascript error etc. Do you know what could be wrong? I appreciate any help,
Mateusz

1 Answer, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 14 Dec 2011, 10:42 AM
Hello Mateusz,

Based on the provided information, I prepared a sample, demonstrating  how the desired functionality could be achieved.
Please, see the attached project and let me know how it works on your end.

Greetings,
Milena
the Telerik team
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 their blog feed now
Tags
Calendar
Asked by
Mateusz
Top achievements
Rank 1
Answers by
Milena
Telerik team
Share this question
or