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

RadScheduler Visible property not honoured ...

3 Answers 64 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
EmpowerIT
Top achievements
Rank 2
EmpowerIT asked on 06 Feb 2008, 12:22 AM
Hi,
I have a page with two RadSchedulers. The page should only ever have one of these schedulers visible at a time. The Visible property of the RadScheduler's is changed on a event, e.g RadComboBox SelectedIndexChanged.

The problem I am facing is that only one of the RadSchedulers seems to respect the visible property correctly 100% of the time. This is the one which is visible on the first page load. The second scheduler does not appear when its visible property is set to true, unless another update happens on the page. The first RadScheduler contains to appear and disappear as required.

I got around this problem by enclosing each of the RadSchedulers in a <div runat="server"> tag. I then used the RadAjaxManager to update the div's instead of the RadSchedulers, and setting the div visible property to true/false. (I had to keep both radschedulers visible all the time, even though their respective div's might be visible=false)
It seems to be working fine now, but I'm pretty sure the other method should also work. Can you confirm if this is a bug?

Thanks,

3 Answers, 1 is accepted

Sort by
0
EmpowerIT
Top achievements
Rank 2
answered on 27 May 2008, 06:16 AM
Any reply to this?
0
Accepted
Atanas Korchev
Telerik team
answered on 27 May 2008, 11:12 AM
Hi EmpowerIT,

You cannot show a control with Ajax - you need to update its container control. This means that a control which is initially invisible (Visible=false) cannot be made visible with Ajax because it has not been rendered on the page. The workaround you have implemented (updating a placeholder control) is the only viable solution.

Best wishes,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
EmpowerIT
Top achievements
Rank 2
answered on 27 May 2008, 10:40 PM
Thanks for clearing that up ... it explains a lot of weird behaviour I have been experiencing!

I learned something new! ^_^;
Tags
Scheduler
Asked by
EmpowerIT
Top achievements
Rank 2
Answers by
EmpowerIT
Top achievements
Rank 2
Atanas Korchev
Telerik team
Share this question
or