RadScheduler Visible property not honoured ...

4 posts, 1 answers
  1. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 05 Feb 2008 Link to this post

    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,
  2. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 27 May 2008 Link to this post

    Any reply to this?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 27 May 2008 Link to this post

    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
  5. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 27 May 2008 Link to this post

    Thanks for clearing that up ... it explains a lot of weird behaviour I have been experiencing!

    I learned something new! ^_^;
Back to Top