Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding PK To A Control
Message
De
03/03/2009 14:28:40
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01385135
Message ID:
01385296
Vues:
29
Yeah, and it was such a minor change.

>Yes it did, thanks.
>
>I really didn't want to get into modifying the source for the calendar, but after I thought about it I concluded that since it didn't work the way I wanted that I should just change it.
>
>
>
>>And did it work?
>>
>>>Yes, the source is included. I added an AppointmentId property to the Appointment class.
>>>
>>>
>>>
>>>>I haven't looked at it in-depth, but can you inherit from the Appointment class and add your own property?
>>>>
>>>>Also, does it include source code? If so, you may be able to make their Appointment class a partial class, and then add your own partial class to complement it. I have no idea if that would work though... just an idea.
>>>>
>>>>>I'm looking at the calendar control here http://www.codeproject.com/KB/selection/Calendardayview.aspx
>>>>>
>>>>>I like the control, except the Appointment class exposes a very limited set of properties. There is a Start datetime, End datetime, and a Title. The problem is that I don't see how to associate a PK from a table to a specific appointment in the calendar.
>>>>>
>>>>>It's conceivable that more than one appointment could have the same starting and ending datetime, and the same subject. Or what's more likely is that in a multiuser environment someone could change the dates or title, so I could not reliably depend on any of this data when trying retrieve an appointment.
>>>>>
>>>>>When I load the appointments I also return the PK of each appointment, but I don't see any way to associate the PK to it's appointment class. The Tag property is not exposed. Is there any way to add a property at runtime, like as with VFP's AddProperty?
>>>>>
>>>>>Thanks
Very fitting: http://xkcd.com/386/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform