Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
Can RowEditTemplate clipping to parent be disabled when designing?
posted

I have an UltraGrid docked in a panel that, at design-time, is fairly small. The grid has scrollbars at runtime. There are splitters to allow the user to enlarge it.

I created a row edit template for the grid by dragging from the designer toolbox onto the grid. The wizard came up and I accepted the defaults, expecting to fix the layout later. The template created by the wizard had a horizontal scrollbar at runtime, so I dragged the right edge to make it wider.

My problem is that in the Visual Studio Designer, the contents of the template are clipped to the grid, at least the part in which I can edit controls. This makes the prospect of designing the template such a nuisance that I'm inclined to abandon it in favor of a custom dialog box where I can see everything at design time. At runtime, the template is not clipped and looks fine.

Is there a way to disable the clipping at design time?

Parents
No Data
Reply
  • 37774
    Verified Answer
    posted

    The clipping that I think you're describing is not really specific to the RowEditTemplate, but rather to any control that is shown within a parent.  Since your grid is docked into a parent that is small, and your RET is also in the same parent, you're not going to be able to show any of the control larger than the parent area.

    There are a couple options here.  The first, and quickest, option is to simply place the RET outside of the parent that the UltraGrid is in.  There really isn't any reason that they need to be in the same parent, and the template isn't visible on the form at run-time (unless you specifically set it to be), so you could put it whereever you want on the form.  The second option, and one that I use, is to add an UltraTabControl to the form and set the Style to Wizard.  You can then put the RET on a separate tab that you only really see at design-time, since there will be no UI for changing the tabs.

    -Matt

Children
No Data