Hi,I have an UltraWinGrid in my application, and in one column of cells I need to have 2 editor buttons.I have gotten 2 editor buttons by creating an UltraTextEditor and setting it as the EditorControl for the column. This is the code I used.
Dim textEditor As New Infragistics.Win.UltraWinEditors.UltraTextEditor Dim chkBtn As New Infragistics.Win.UltraWinEditors.EditorButton chkBtn.Appearance.Image = My.Resources.check chkBtn.Key = "Check" textEditor.ButtonsRight.Add(chkBtn) Dim ddBtn As New Infragistics.Win.UltraWinEditors.EditorButton ddBtn.Appearance.Image = My.Resources.ddarrow ddBtn.Key = "DropDown" textEditor.ButtonsRight.Add(ddBtn) AddHandler textEditor.EditorButtonClick, AddressOf UltraTextEditor_EditorButtonClick Me.TestGrid.DisplayLayout.Bands(1).Columns(2).EditorControl = textEditor
My problem is that I want my cell's text to be read-only. It needs to be formatted a certain way so it's saved correctly. I don't want the user being able to type in the cell. They need to use the 2 buttons to edit the value.I have other cells that are set up similar, but with only one editor button, so I just set that column's style to EditButton, and then handle the BeforeEnterEditMode event, and set e.cancel to true so the user can't edit it.
However, when I put an ultratexteditor in the cell, if I try to handle BeforeEnterEditMode and set e.cancel = true, I am not able to click on the buttons in my text editor.I have also tried changing the CellActivation property to ActivateOnly or NoEdit, but AllowEdit is the only one that allows the text editor button clicks.Unfortunately, that also allows text editing.
Does anyone have any ideas?? Is there a setting in the UltraTextEditor that could accomplish this? I tried handling BeforeEnterEditMode on the text editor, but that did not work.For some reason, BeforeEnterEditMode did not seem to fire on the text editor when it was in the grid. (Yes, I had an AddHandler call in for it: AddHandler textEditor.BeforeEnterEditMode, AddressOf UltraTextEditor_BeforeEnterEditMode)Also, I tried this on an ultratexteditor that was not in the grid, and found that setting e.cancel = true in BeforeEnterEditMode caused me to not be able to click the buttons in the text editor.
I just need to make the text in the UltraTextEditor read-only, but still be able to click the buttons in the text editor.
Hi Team,
Can we add EditorButton at the bottom of the ultra win grid cell using UltraTextEditor? I can see Editorbutton can be added left or right into UltraTextEditor through below code but is there any way we can add button at the bottom of the cell after cell text value getting displayed..?
UltraTextEditor uViewTextEditor = new UltraTextEditor();e.Row.Cells[i].Value = "Testing cell value"; EditorButton btnRefEditor = new EditorButton();btnRefEditor.AccessibleName = "btnRefEditor";btnRefEditor.Tag = "btnRefEditor";btnRefEditor.Text = "test button bottom";btnRefEditor.ButtonStyle = UIElementButtonStyle.Borderless;btnRefEditor.Appearance.BackColor = Color.Transparent;btnRefEditor.Appearance.FontData.SizeInPoints = 5;btnRefEditor.Appearance.ForeColor = Color.Red;btnRefEditor.Appearance.TextHAlign = HAlign.Left;btnRefEditor.Appearance.TextVAlign = VAlign.Bottom;
uViewTextEditor.ButtonsLeft.Add(btnRefEditor );
Thanks,
Mosam
I have the same problem.
So has there been any progress on this? I ran into the same issue. This shouldn't be a "new product idea" but rather a fix to get behavior consistent with the ColumnStyle.EditButton (an "old product idea"). Please either have the EditorButton work when Cell.Activation = Activation.ActivateOnly or make the standard EditButton more configureable.
Thanks!
Sumeet,
Besides logging in a new product idea for you - another possible approach to achieve this might be by using a 'CreationFilter'.
You could read about it at the following link: http://help.infragistics.com/Help/NetAdvantage/WinForms/2013.1/CLR4.0/html/Win_Creation_Filter.html. Here are some topics from our community which could also help you: http://community.infragistics.com/forums/t/34485.aspx, http://forums.infragistics.com/forums/t/47561.aspx http://community.infragistics.com/forums/t/58186.aspx, http://community.infragistics.com/forums/t/9989.aspx and http://community.infragistics.com/forums/t/50234.aspx.
The above approach is not so recommended, because it features element resizing, creating or removing and could lead to some unexpected behaviors.
Please do not hesitate to ask if something comes up.
Hello Sumeet,
After some research, the "Support of ActiveOnly cell with button display - OnMouseEnter" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI13060083.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.