Try Now
More in this section

Forums / Developing with Sitefinity / Extending Control Properties

Extending Control Properties

2 posts, 0 answered
  1. Trevor
    Trevor avatar
    18 posts
    05 Oct 2010
    01 Nov 2010
    Link to this post
    Hey guys,

    I'm looking at creating some custom controls/modules, but instead of using asp forms/controls I've made some using html (div tags, html inputs, etc), but I noticed that the control properties in sitefinity only pick up asp related tags... I want to have the option to toggle visibility (or just add/remove classes) of div tags and change the content of div tags. Is it possible for the control properties to somehow recognize the div tag IDs and add the ability to customize them in the control properties?

    Thanks in advance,
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    25 Oct 2016
    01 Nov 2010
    Link to this post
    Hi Trevor,

    You can create a control where you have several divs or other predefined server controls. Expose the properties of each control by creating a public properties in the code behind. Then you can set the values of these public properties through the control designer.

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered