Solved

how to get deleted row id in repeater control

  • 3 July 2017
  • 1 reply
  • 10 views

Hi, I want to know how to get deleted row information (such as row id) in repeater control when I use NWF.FormFiller.Events.RegisterRepeaterRowDeleted function?

My Code:

NWF.FormFiller.Events.RegisterRepeaterRowDeleted(function (){
      var repeaterRow = NWF$(arguments[0][0]);
      if(NWF$(repeaterRow.parents('.nf-repeater')[0]).hasClass('AttDetail'))
      {
            console.log('row has been deleted');
      });
});

icon

Best answer by avanade 12 July 2017, 03:58

View original

1 reply

Solved.

Using NWF.FormFiller.Events.RegisterRepeaterRowDeleting.

NWF.FormFiller.Events.RegisterRepeaterRowDeleting(function (data){
      var repeaterRow = NWF$(arguments[0][0]);

      var rowid = NWF$(data).attr("id");
      if(NWF$(repeaterRow.parents('.nf-repeater')[0]).hasClass('AttDetail'))
      {
            console.log(rowid );
      });
});

Reply