When using a row edit template is there any way to also still be able to edit the row directly?
We want to put just the Notes field in the row edit template, with the rest of the fields still edited directly in the row.
I was sure I'd achieved this behavior in the past, but I can't work out how to do it now.
Hi Tom,
I imagine you could do this by setting the RowEditTemplateUIType to None on the grid so that the RowEditTemplate never displays automatically. The manually show the RowEditTemplate when you want - like when the user enters the Notes cell.
Something like this:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridOverride ov = layout.Override; ov.RowEditTemplateUIType = RowEditTemplateUIType.None; } private void ultraGrid1_AfterCellActivate(object sender, EventArgs e) { UltraGridCell cell = this.ultraGrid1.ActiveCell; if (null != cell && cell.Column.Key == "Column 3") { cell.Row.ShowEditTemplate(); } }
Thanks Mike.
The issue there is that when the row editor is displayed the cells in the row itself are then read-only. We want to be able to edit the data in the row and the row edit template simultaneously. We want the row editor to display when the row is activated, but to use the row editor as an overflow area for just the longer fields that can't be as easily edited in the grid.
You are saying you want the RowEditTemplate to be visible and also be able to edit the other cells in the same row at the same time without closing the RowEditTemplate?
I'm not sure if that's possible. That would be like having two cells in edit mode at the same time.
Hello ,
What you could do is to add panel with needed components for the rest of columns, which are not shown in your grid and to bind this components to the same data source. Then display this panel over the grid when you needed it. To be more clear I’ve implemented my suggestion in simple sample, panel is displayed when the grid enters in edit mode and hides when the grid exits of edit mode. Please feel free to modify my sample based on your custom needs.
Thank you for using Infragistics components.
I can still select a cell on the row, and that in turn selects the corresponding editor on the row edit template (which is neat). However, there is no way to get the cell on the row to go into edit mode as far as I can see.
Sounds like I'm making life trickier than it needs to be then.
Stepping back from the technology for a moment, the UI experience we want is for a user to be able to see a standard list without too many columns, so they just see the summary data that's important to them (see attached image).
Then, when they click on a row, we want to show them more than just what's normally visible in the row. We want to avoid popup forms or opening a separate edit control in a new form if possible, to keep the data entry quick, which is why we were looking at a solution whereby the additional editing could be done directly in the grid.
Well.. what do you mean when you say the other cells are read-only? Can you select a cell but not edit? Or can you not even select it. I think the RowEditTemplate dialog is modal by default, which means you can't interact with anything on the main form - it's not limited to editing cells. You can make the dialog non-modal, but then I think clicking on a cell or anything else will close the dialog.
I suppose it might be possible to get this to work, but I can't think of any simple way to do it. Seems like it would involve jumping though a lot of hoops if it's possible at all.
Exactly that. I would swear that I'd done this in the past, but I can't make it work now!
Is it a non-starter do you think?