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

shared time view problem

1 Answer 54 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 23 Sep 2008, 06:52 AM
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

1 Answer, 1 is accepted

Sort by
0
Roger
Top achievements
Rank 1
answered on 23 Sep 2008, 07:36 AM
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
Tags
Calendar
Asked by
Roger
Top achievements
Rank 1
Answers by
Roger
Top achievements
Rank 1
Share this question
or