how to set multiple columns to editmode

3 replies. Last post: January 15, 2012 8:54 PM by Yudi
Tags :
  • New Discussion
  • New Question
  • New Product Feedback
Jarvan JiangMember

i want to know whether the webgrid can set multiple cells to editmode?

in my code,i use a button to invoke a function try to set multiple cells to edit,but only the last cell become editmode.

is there any way to set multiple cells to edit?


here is my code

function EditRow()
        {
            var e = event.srcElement;
            var WebGrid = ISGetObject("WebGrid1").RootTable;
            var ThisRow = WebGrid.GetRow(e.parentNode.parentNode.parentNode.recordIndex);
            if (e.value == "edit")
            {
                ThisRow.BeginEdit();
                ThisRow.GetCell("vol").ActivateEdit();
                ThisRow.GetCell("number").ActivateEdit();
            }
        }

 

All times are GMT -5. The time now is 8:09 PM.
Previous Next