Resize panel when repeating section rows deleted using javascript

  • 4 February 2021
  • 0 replies
  • 32 views

Badge +6

Hello there,

I am stuck with below issue since few days. 

I have a panel and inside panel have a repeating control.

Using jquery i am now trying to delete the rows in the panel of repeating control but the size of the panel is not reducing.

trying as below

Foreach repeating section row , 

NWF$(".repeaterclass .nf-repeater-row").each(function(index){
if(index!=0){
$(this).remove();
}
});

I had to use above code to speed up the activity at background. If i am using NWF$('.nf-repeater-deleterow-image').click(), then it is resizing but taking a lot of time as there are around 110 rows.

 

I found few posts to resize to use like below. in my case i replaced label class with repeater control class

NWF.FormFiller.Functions.ProcessFillerControl(NWF$('.theLabelClass'), NWF$('.formFillerDiv') ) ‍

But no luck.

 

Thanks and Regards in advance,

Usha.

 

 

 


0 replies

Be the first to reply!

Reply