Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3788
Allways show CellEditor control in grid
posted

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?

 

Parents
No Data
Reply
  • 49378
    posted

    Hi Mypost,

    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);

    }// -->

    Feel free to contact me if you have any questions.

Children