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
465
web grid rowediting and activation
posted

hi, 

iam using

 this.WebDataGrid1.Behaviors.Activation.ActiveCell = this.WebDataGrid1.Rows[2].Items[5]; to activated any column 

how can i trigger to row editing to open the slected row ?

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi Mark,

    You will not be able to trigger edit mode using server side code, instead you will need to do this with Javascript using the following code.

    var grid = $find("WebDataGrid1");
    // Get cell to edit
    var cell = grid.get_rows().get_row(2).get_cell(5);
    // Get CellEditing behavior to call enterEditMode method
    grid.get_behaviors().get_editingCore().get_behaviors().get_cellEditing().enterEditMode(cell);
    

    Please let me know if you have further questions, I will be glad to help.

Children
No Data