+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Positioning Control Designer

Positioning Control Designer

4 posts, 1 answered
  1. Neil
    Neil avatar
    30 posts
    Registered:
    20 Jan 2009
    28 Oct 2010
    Link to this post
    Hi guys, thanks for the assistance so far. I've created a set of custom controls and am now attempting to create a custom designer for the control. My issue is that whatever I render through CreateCustomControls starts laying out to the right of the Basic, Advanced tabs. Is there something specific I need to do in the html rendered to get it to start rendering directly below the "Basic" tab?

    Second question, is it possible to do a codebehind file with the custom designer, or do you need to wire your events up, and add the logic in the event handlers within the designer's code?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Oct 2010
    Link to this post
    Hello Neil,

    There are specific css selectors that you should use in your template

    <div class="ctrlProps">
    <p class="editcontent">

    The code of the control designer should be in a class that inherits from  ContentViewDesignerBase or Telerik.Framework.Web.Design.ControlDesigner. The ascx is only a template.

    Sincerely yours,
    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
  3. Neil
    Neil avatar
    30 posts
    Registered:
    20 Jan 2009
    28 Oct 2010
    Link to this post
    Thanks Ivan. I am inheriting from the controldesigner class. Are those css classes you referenced within the designer infrastructure itself, or do they need to be referenced myself? I was working from Gabe's and your webinar "Creating Highly Usable & Distributable sitefinity Controls" as my starting point.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    28 Oct 2010
    Link to this post
    Hi Neil,

    The classes are defined inside \Sitefinity\Admin\Themes\Default\CtrlProp.css and you can use them directly.

    Regards,
    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
    Answered
Register for webinar
4 posts, 1 answered