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,
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.
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 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.
hello Kaloyan Chipilev,
Thank you for solution. Its woking now :)
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.