Hi Team,
I have a requirement of adding a text area in one of the cells in the ultragrid just like a button/dropdown.
Is there any property that can do this work for me???
Please reply asap. Its urgent!!!
Hi,
I'm sorry, but I do not understand your question. What do you want in a cell? Every cell in the grid display text by default.
If you want a button in a cell, there are many ways to do this, depending on what kind of button you want. You could set the Style of the column to Button or EditButton. Or you could use an editor with a button (or buttons) in the ButtonsRight or ButtonsLeft collection.
If you want a dropdown list in a grid cell, then once again, there are several ways to do that. You could us a ValueList or an UltraDropDown. Here's a KB article that will help you decide which is the best option for you:
HOWTO:What is the best way to place a DropDown list in a grid cell?
How to do open pop up Text area when click to ultragrid cell.Is it possible with ultragrid?
My grid has too many columns and large dataset. So when I try to edit text cell in the grid by type fast and long text there is delay. I guess the grid needs to redraw the text area when the text longer than cell text. That's cause the delay. I try to work around by open pop Text Area so users can type and save text back to the cell.
I open up to any suggestion way to work around with issue.
ThanksJohn
Mike,
Thank you for reply.
I try to do thing like when click in edit Cell, It open new Window which just has Text area. So users can type input to text area and save back to Grid Cell.
Is this possible with Grid?
Thanks
John
Hi John,
If you want the text to extend beyond the normal bounds of the cell while editing, you could set the AutoEdit property on the column to true.
If you want to display a dialog, then there's no built-in way to do that, but you could set the style of the column to EditButton and then response to the CellButtonClick event of the grid by showing your own dialog.
I'm still not sure what any of this has to do with delays or performance issues, though.
The delay takes place while editting text extend beyond the normal bounds of the cell. It try to redraw and capture the text.
I set AutoEdit=True but still not large enough. This text field is for long description.
AutoEdit makes it so that the editor will expand to fit the text while the cell is in edit mode.So I don't know what you mean when you say it's not large enough. If the cell is in edit mode and the text is still clipped, something is wrong.
But I still think you are looking the wrong way here. Using AutoEdit isn't going to have any effect on performance. Having more text than will fit in a cell should not have any effect on performance, either.
So I think you should be trying to find out why you are having a performance problem instead of trying to work around it by guessing.
The real question here is, what kind of performance issues are you having and why?
That’s true AutoEdit makes expand to fit the text of the cell. But if user keeps typing more text and becomes longer then current text area, then it expands again. When it expands to larger text area, then there is a delay to redraw and capture the text to new expand text area. I don’t see this problem with edit cell for single line text area.
Anyway, I implement open dialog box and it works.
Thank you for your help.