Hi,
Cell editing is allow in my grid. what i want,
i always want to show numric control in a cell to edit the cell data.
currently it show only when row is active or user click on perticular cell.
how can i always show the cell in editing mode?
i don't want to use template column for this scenario. is there a way to show the cell
in editing mode?
or if possible then if user select the row then i want to show the cell
in edit mode?
Hi Mypost,
Thank you for your reply.
Under IE7/8/9 Firefox and Chrome the desired cell seems to be staying in edit mode when using version 11.2.20112.1019. Please let me know what version of .NetAdvantage you are using so that I may research whether some specifics apply in your case. Also note that using some behavior combinations may prevent the cell from staying in edit mode in this scenario, therefore it would be helpful to see your grid markup.
Please feel free to contact me if you have any additional questions.
Thanks for reply.
it work but when i select the row then cell comes in editing mode for a second. and then it goes out.
what should i do to stay the cell in editing mode?
Thanks
Thank you for posting in the community.
It is not possible to display an editor in each cell of a column when using an editor provider as the provider is in fact a single control which is displayed in the cell only when it is in edit mode. However, you can configure a row cell to enter edit mode by handling the RowSelectionChanged clientside event. For instance:
function WebDataGrid1_Selection_RowSelectionChanged(sender, eventArgs){ ///<summary> /// ///</summary> ///<param name="sender" type="Infragistics.Web.UI.WebDataGrid"></param> ///<param name="eventArgs" type="Infragistics.Web.UI.RowSelectionChangedEventArgs"></param> var cellWithProvider = eventArgs.getSelectedRows().getItem(0).get_cell(0); sender.get_behaviors().get_editingCore().get_behaviors().get_cellEditing().enterEditMode(cellWithProvider); }// -->
function WebDataGrid1_Selection_RowSelectionChanged(sender, eventArgs){ ///<summary> /// ///</summary> ///<param name="sender" type="Infragistics.Web.UI.WebDataGrid"></param> ///<param name="eventArgs" type="Infragistics.Web.UI.RowSelectionChangedEventArgs"></param> var cellWithProvider = eventArgs.getSelectedRows().getItem(0).get_cell(0); sender.get_behaviors().get_editingCore().get_behaviors().get_cellEditing().enterEditMode(cellWithProvider);
}// -->
Feel free to contact me if you have any questions.