Re: Custom Controls and Absolute Positioning



Never mind... <s> turns out I had some extra tags around the control that were causing the control not be draggable.

+++ Rick ---




"Rick Strahl [MVP]" <rickstrahl@xxxxxxxxxxx> wrote in message news:8A288A45-7F33-4934-B8C9-52054128006B@xxxxxxxxxxxxxxxx
Hi all,

I have a couple of custom controls that several users of an application are using and got a request from one of the guys that they're using Absolute positioning and well, turns out my controls don't work right in the designer with Absolute Positioning.

All Controls are based on WebControl

The control renders properly if the coordinates are set in the Style of the control, but the control cannot be dragged around the page.

Currently the control uses plain Render() logic to render in the designer, but just for kicks I also set up a ControlDesigner which doesn't seem to help.

What do I need to do to get the control 'positionable' in Absolute positioning?

+++ Rick ---


.



Relevant Pages

  • Re: GridView DataBind() Not Working
    ... code(CreateChildcontrols), the designer (of your toplevel custom control) ... it hasn't a designer associated like the top ... render the control manually. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Custom ContentPlaceHolder
    ... Render method without infinite recursion? ... It also worth noting that the custom ContentPlaceHolder control works just ... this a 100% designer issue. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: CreateChildControls(...) or Render(...)?
    ... You can simply associate your control to a custom control designer class ... method into another sub and have your createchildcontrols method call this. ... This way you can call this new sub from your designer class and render the ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Web derived controls in VS2005 designer view
    ... I have a control derived from a drop down list written in VB.NET ... ....the drop down list will render in both the designer and IE. So I am ... listitems, but will render static listitems from dropdownlists. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: Design Time Rendering User Control?
    ... In any case, for test purposes, I changes my code to use ... the web control does NOT render at all in designer. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)