Armysniper89
-
11/17/2013 12:59:48 PM
Custom Table Creation Customization
I have a custom table that stores event information of various types. We are displaying it in a Calendar control from Telerik. In order to handle recurring events, we need to be able to store the recurring information in a special field in addition to the Start and End Date fields. The Telerik control needs to know about the Start and End dates in order to create the Recurring field value. So to handle this, I have created a custom form control in Kentico that allows a user to specify the Start and End dates along with (optionally) the Recurring values. This then creates a class that contains all the values from the controls as a single object...returned through the Value property of the Form control.
My question is, how can I get to the code inside Kentico that assigns the field values to their database equivalents so I can handle this control's object. Extract the values from the object and assign them to the proper database fields? Likewise when editing an event, where in the code can I see where Kentico loads the values and assigns them to the form controls so I can do the reverse?
Yes this is a pain in the rear but the easiest way to handle this. If the Telerik control didn't need to know the value of the Start and End Date values, this would not be an issue, but it does. If there was an easy way to grab these values and assign them to the Recurrency editor, it would be an easy solution too...perhaps that would be a solution? Not sure how I would get those values to the control. #HairPulledOut
|