shared time view problem

2 posts, 0 answers
  1. Roger
    Roger avatar
    183 posts
    Member since:
    Sep 2007

    Posted 23 Sep 2008 Link to this post

    Hi,

    I am creating a timesheet web page that uses 2 timepickers in a user control (time in & time out). I do not want to load separate time view controls for each time picker as 2X4X7=56 timeview controls would have to be created.

    I used the documentation to code a radTimeView and add it to a placeholde.controls collect then set the SharedTimeView property to the newly created radTimeView and everthing seems to be working OK but when I click on the popupbutton...no timeview.

    Code for creating shared calendar:
    Dim popTime As New RadTimeView
    popTime.ID =
    "sharedDynamicTimeView"
    popTime.Skin = "Office2007"
    sharedPopupPlaceHolder.Controls.Add(popTime)

    Code for assigning popup:
    uc.SharedTimeView = popUpTime
    Where uc=usercontrol & I have a property in the control:
    Public WriteOnly Property SharedTimeView() As RadTimeView
       Set(ByVal value As RadTimeView)
          Me.RadTimePickerIn.SharedTimeView = value
          Me.RadTimePickerOut.SharedTimeView = value
       End Set
    End Property

    There is no mention of any extra coding to get up the timeview window...so what do I do now ????

    Regard
    Roger
  2. Roger
    Roger avatar
    183 posts
    Member since:
    Sep 2007

    Posted 23 Sep 2008 Link to this post

    Hi,

    found the problem....the placeholder needs to be situated at the end of the aspx page.

    I had it at the front and it killed everything (ie I had a date picker after it and the date calendar wouldn't appear).

    When I put the placeholder at the end of the page (between the content placeholders as I am using master pages) everything works fine.

    Regards
    Roger
Back to Top