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
280
i want to insert a new line between below and above lines that i cilcked
posted

C#)
            this.UltraWebGrid1.DisplayLayout.AddNewBox.Hidden = false;
            this.UltraWebGrid1.DisplayLayout.AllowAddNewDefault = AllowAddNew.Yes;
            this.UltraWebGrid1.DisplayLayout.AllowUpdateDefault = AllowUpdate.Yes;

ASPX)

function InsertRow()
{
    // 선택한 로우에 삽입하기 (잘안됨)
      var row = igtbl_getActiveRow("UltraWebGrid1");
      var grid= igtbl_getGridById ("UltraWebGrid1");
     
      // 새로운 로우줄 허용
      //igtbl_getGridById("UltraWebGrid1").AllowAddNew = 1;     
      //grid.AllowAddNew = 1;
      //grid.AllowUpdate = 1;
     
     
      //var rows = grid.Rows;
     
     
     
      if(row != null)
      {      
          
          igtbl_addNew("UltraWebGrid1", 0 );  //new row
          //grid.Rows.addNew(); 
          var lastrow = grid.Rows.getRow(grid.Rows.length - 1);
          grid.Rows.insert(lastrow, row.getRowNumber() );   //row객체, insert RowNumber
      }
//      else
//      {
//        //grid.Rows.addNew();
//        igtbl_setActiveRow("UltraWebGrid1", igtbl_getElementById("UltraWebGrid1_r_0"));
//        igtbl_addNew("UltraWebGrid1",0);
//      } 
}

i want to grid row click ---> javascript call ---> insert add new row!

 but i can't want to insert a new row....

I want to insert a new line between below and above lines that i cilcked .....

help me plz..