Hello,
I am trying to create two custom attributes of which are named "PublishAt" and "RemoveAt" they are both DateTime's. So far here is my code:
The main problem with this is for one, the fields for "PublishAt" and "RemoveAt" do show up in the form, but they appear as textboxes and I wish for them to be formatted as the default "Start" and "End" properties. What is the best way to do this?
Another question I have is, what would be the best way to make it so that "PublishAt" and "RemoveAt" work so that an end-user can only see scheduled events once the "PublishAt" time has passed and they can not see scheduled events after the "RemoveAt" time has passed?
Hopefully I've included all the details in the code required. If anything else is necessary please let me know.
Thanks
Ramie
EDIT: If anyone thinks I am asking too much, could you perhaps just tell me how to create my own DateTime form?
I am trying to create two custom attributes of which are named "PublishAt" and "RemoveAt" they are both DateTime's. So far here is my code:
<telerik:RadScheduler ID="RadScheduler1" EnableCustomAttributeEditing="True" CustomAttributeNames="PublishAt, RemoveAt"> <AdvancedForm Modal="true" /> ... <TimeSlotContextMenuSettings EnableDefault="true" /> <AppointmentContextMenuSettings EnableDefault="true" /> </telerik:RadScheduler> <asp:EntityDataSource runat="server" ID="EntityDataSource1" ... EntitySetName="Notices" EnableDelete="true" EnableInsert="true" EnableUpdate="true" OnInserting="EntityDataSource1_Inserting"> <UpdateParameters> ... <asp:Parameter Name="PublishAt" Type="DateTime" /> <asp:Parameter Name="RemoveAt" Type="DateTime" /> </UpdateParameters> <InsertParameters> ... <asp:Parameter Name="PublishAt" Type="DateTime" /> <asp:Parameter Name="RemoveAt" Type="DateTime" /> </InsertParameters> </asp:EntityDataSource> |
Another question I have is, what would be the best way to make it so that "PublishAt" and "RemoveAt" work so that an end-user can only see scheduled events once the "PublishAt" time has passed and they can not see scheduled events after the "RemoveAt" time has passed?
Hopefully I've included all the details in the code required. If anything else is necessary please let me know.
Thanks
Ramie
EDIT: If anyone thinks I am asking too much, could you perhaps just tell me how to create my own DateTime form?