API
Version 7.x > API > Custom Table Creation Customization View modes: 
User avatar
Member
Member
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

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 11/18/2013 8:25:31 AM
   
RE:Custom Table Creation Customization
Have you taken a look at the API examples for custom tables? It's not as easy as simply placing a custom table query repeater on the page but I'm already guessing you have some method to get the data and bind it to your Telerik control so this would most likely replace that.