NetAdvantage 9.2
I have a secondary band with x number of childrows (each having a CheckEditor with text) as options for their respective parent row. Since the text for the check editor can vary in size I was hoping to be able to autosize the height for those rows where the CheckEditor text exceeds the cell size.
I've tried a few combinations of setting the autosize property along with performautoresize calls with no results. In general I was expecting this as my reading of the documentation leaves me with the impression that only editable editors (that return SupportsAutoSizeEdit = True) would support this behavior.
I was just wanting to check if there might not be some existing method/property or other factor that I was overlooking that might allow me to achieve the result I need before taking a trip to refactor-ville.
thanks
SupportsAutoSizeEdit actually has nothing to do with autosizing row heights (it handles the functionality whereby the in-place editor grows in size as needed during an edit-mode session).
UltraGridColumn.CellMultiline is the property that controls whether the text within the cell is allowed to wrap to more than one line. I believe that even when that is set to true, the text will not wrap on an auto-size unless there are carriage return/line feed characters within the text, but I'm not certain about that.
Brian Fallon"] SupportsAutoSizeEdit actually has nothing to do with autosizing row heights (it handles the functionality whereby the in-place editor grows in size as needed during an edit-mode session).
Ok.
Brian Fallon"] UltraGridColumn.CellMultiline is the property that controls whether the text within the cell is allowed to wrap to more than one line. I believe that even when that is set to true, the text will not wrap on an auto-size unless there are carriage return/line feed characters within the text, but I'm not certain about that.
It probably wasn't too clear in my initial post but the Text that I wan't to be able to wrap/trigger auto size of the row height actually only lives in the CheckEditor itself. The underlying Cell value is an integer that stores the Value of the check Editor. Setting the CellMultiLine property along with strategically place calls to row.PerformAutoSize would work fine for me if the Cell value was the Text itself. What I'm looking for is a way to get the same behavior based on the CheckEditor's text - if that even exists.
Hi,
When you auto-size a row in the grid, the grid asks the editor to return the size. So an UltraCheckEditor in a column with text in it should return the correct size including the text.
Did you try setting RowSizing, as I suggested?
Mike,
Will you be able to post a sample illustrating your issue so that we can check it out and see what's going on?
Michael S.
UltraCheckEditor is the control that uses the CheckEditor. So I would not expect there to be any difference in the behavior. I have a tendency to use the terms interchangeably. Sorry for any confusion I may have caused there.
If you can post a sample, we will be happy to check it out and see what's going on.
Unfortunately UltraCheckEditor behavior seems to be consistent with that of CheckEditor in this respect at least. I keep wondering if there is not some property setting other than RowSizing that I may not be taking into account to get the autosize to work off the size of the Editor's text...? I will post a sample within a day or so.
I just caught your reply.
I notice you mentioned UltraCheckEditor but the class I'm using is actually CheckEditor. Maybe that's why my description of the behavior doesn't jibe with what you guys' are expecting?
I'm going to try replacing the CheckEditor in the editor property with UltraCheckEditor in the editorcomponenet property and see if that works.