I have an ultratexteditor as an editorcontrol within a cell in my ultragrid. The ultratexteditor has another grid as its control. I want users to only be able to edit that cell using the editor; however, when I set activation to 'Noedit' or 'ActivateOnly', it disables the whole cell - ie, I cannot then click on my dropdown button in the ultratexteditor. I have also tried using the grid events of beforeenteredit and beforecellactivate to stop allowing editing on cell text - but they also prevent the dropdown button on the ultratexteditor from working. Is there a way to use the ultratexteditor and not allow editing of the text in the cell?
Thanks in advance,
Dusty
Hi Dusty,
I think you need to set the ButtonDisplayStyle on the column to Always.
Thanks, Mike - that did work. I have other columns that use the onmouseenter option for buttondisplaystyle...so would prefer not to have to force the always (just for visuals) - but that does allow button to be clicked as well as not editing text - THANKS!
Take care,
That doesn't work for me. If CellActivation is AllowEdit and ButtonDisplayStyle is Always then the text is editable. But this is the only way to get the dropdown to appear. The goal is to prevent editing the text.
It's set to Always. Doesn't work. I think I have it working though.
Always/AllowEdit/DropDownList is what works here.
Maybe it depends on the way you define the dropdown. I am using a hidden control on the form.
ultraGrid1.DisplayLayout.Bands[0].Columns["somecol"].ValueList = this.UltraDropDown1;
cyberplasm said:Well like it says in the first post, the dropdown won't work unless it's AllowEdit.
Okay... if you read the whole conversation here, it says that it does work if you set ButtonDisplayStyle on the column to Always. You might have to experiment with some different settings for CellActivation. I'm not sure which one you need to use - ActivateOnly or NoEdit, but I'm sure one of them works.
If you want to submit feedback about the documentation, there's a link to do so at the bottom of every page of the online help.
If you don't want the user to edit the text, then you should not set CellActivation to AllowEdit. You need to use a different setting.
Well like it says in the first post, the dropdown won't work unless it's AllowEdit. So I would need clearer instructions. There seem to be a lot of posts about this problem. The infragistics help docs are very disorganized. There is no one clear section on how to do dropdowns which is unfortunate. Setting the column style to DropDownList seems to improve the situation somewhat.
(Even the naming of the thing is mixed up, like the docs. You call it WinGrid, UltraWinGrid, or UltraGrid. I say pick one name and stick with it.)