Step 1) i have UltraTextEditor control. on that i added UltraExplorerTree like below-
UltraTextEditor.ButtonsRight.Add(new DropDownEditorButton("FolderTree")); ((DropDownEditorButton)UltraPlantArea.ButtonsRight["FolderTree"]).Control = UltraExplorerTree;
step 2) Now on grid column i assigned grid column Editorcontrol property to UltraplantArea.
grid.DisplayLayout.Bands[0].Columns["col1"].EditorControl = ultraTextEditor;
grid.DisplayLayout.Bands[0].Columns["Col1"].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always; //grid.DisplayLayout.Bands[0].Columns["Co1"].CellActivation = Activation.NoEdit; grid.DisplayLayout.Bands[0].Columns["Col1"].Style = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
PlatArea is displyed after click on dropdownlist , but i m facing 2 problem-
1)I ned to double click on dropdown list after that only i can c utratextEditor data
2) Cell is Editble. I want non editable.
For that i tried to add key down event of ultraPlan but it never get fired.
Pls suggest any other solution.
Thanks
Hello jyoti p,
A possible approach to achieve that, would be to use the 'ButtonDisplayStyle' and the 'CellActivation' enumerations, like in the following example:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { DropDownEditorButton myButton = new DropDownEditorButton(); myButton.Control= ultraExplorerBar1; this.ultraTextEditor1.ButtonsRight.Add(myButton); e.Layout.Bands[0].Columns[0].EditorComponent = ultraTextEditor1; e.Layout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.ActivateOnly; e.Layout.Bands[0].Columns[0].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always; }
Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) {
DropDownEditorButton myButton = new DropDownEditorButton();
myButton.Control= ultraExplorerBar1; this.ultraTextEditor1.ButtonsRight.Add(myButton);
e.Layout.Bands[0].Columns[0].EditorComponent = ultraTextEditor1;
e.Layout.Bands[0].Columns[0].CellActivation = Infragistics.Win.UltraWinGrid.Activation.ActivateOnly;
e.Layout.Bands[0].Columns[0].ButtonDisplayStyle = Infragistics.Win.UltraWinGrid.ButtonDisplayStyle.Always;
}
Please also take a look at the attached sample and let me know if that sample suits your requirements.
hello Kaloyan Chipilev,
Thank you for solution. Its woking now :)
Thank you for your feedback.
We are glad that this is working for you.
If have any other questions in the future please do not hesitate to contact us.
Other one issue in above example like -
I have grid and i added UltraExplorerTree on gird column as mention in last post, now i want Activenode.key value of that cell for each row. How can i get that?
Thank you for posting in the Infragistics forums.
Could you please upload a sample so i'm sure that we are working on the same project and please give me more detailed information what exactly you want to get from that cell.
Please feel free to let us know if you have any other questions with this matter.
hi..
Just found solution by using below's code -
UltraExplorerTree uet = ((Infragistics.Win.UltraWinEditors.DropDownEditorButton)(((UltraTextEditor)e.Cell.EditorComponentResolved).ButtonsRight.All[0])).Control as UltraExplorerTree;e.Cell.Row.Cells["colname"].Value = uet.ActiveNode.Key;
Hello Jyoti,
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.
I believe that this topic has already been discussed in the following forum thread:
Set EditorComponent of specific grid cell with UltraTextEditor
I have created a UltraExploreTree and assigned to the UltraTextEditor.Now I want to set EditorComponent of specific grid cell with UltraTextEditor. I have tried this but cell displayed blank.
Is any idea on how to do this.
Thanks,
Jyoti
Hello again jyoti p,
Thank you for the effort and time spent on our forum. We are glad that this is working for you.