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

Forums / Sitefinity SDK / How do I disallow child layouts to be placed inside a custom layout control

How do I disallow child layouts to be placed inside a custom layout control

8 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    16 Jan 2011
    Link to this post
    I have a certain layout "Area" that I dont want the user to be able to drag anything into...is there an event or something I can decorate the div with that'll do that blocking for me?
  2. Lasse
    Lasse avatar
    30 posts
    Registered:
    08 Jun 2012
    19 Jan 2011
    Link to this post
    This would be of interest for me as well. Currently I have just put a content block into such places, and a single space as the content. Doesn't work perfectly but well.. at least it works as a workaround (it seems bit pointless to create such custom layout control..).
  3. Lasse
    Lasse avatar
    30 posts
    Registered:
    08 Jun 2012
    08 Feb 2011
    Link to this post
    Any news on this one ? Especially now that it seems that filled content placeholders show up unnecessary placeholders in SF.
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    11 Feb 2011
    Link to this post
    Hello,

    You can define who can drop widgets from each layout's permissions settings. Thus you can restrict layout elements to be populated with widgets.

    Greetings,
    Radoslav Georgiev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    11 Feb 2011
    Link to this post
    Hey Radoslav,
      I actually wanted to take it one step farther...and only allow child layouts to be dragged into a layout

    I did find a way around it with CSS though :)

    HOWEVER, the bug still exists where the styles dont come down until I publish and come back

    Steve
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    17 Feb 2011
    Link to this post
    Hello Steve,

    Thank you for getting back to us.

    The problem is that when you add a control we use asynchrous call to get the output html of the control. This however does not update the page header. We are currently testing the fix for this. Which will work when you add a resource links control to the markup of your control template. The fix should be released with the SP.

    Greetings,
    Radoslav Georgiev
    the Telerik team
  7. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Feb 2011
    Link to this post
    Oh awesome, finally :)

    Whats the servicepack ETA?...tomorrow? march?

    ...tomorrow?
  8. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    18 Feb 2011
    Link to this post
    Hello Steve,

    You can check our RoadMap for the ETA.

    Regards,
    Radoslav Georgiev
    the Telerik team
8 posts, 0 answered