Good Evening,
i am trying to delete the notification number from "this.ary" when the respective checkbox is unchecked in the grid view in the else condition which is not happening in the following typescript....so,please do the needful!!
- for (let i = 0; i < eleData.length; i++) {
- var str = this.ary;
- var notVal = str.includes(Notification_No);
- if (eleData[i].checked && notVal==false) {
- checkBoxSelectedItems1.push(Notification_No);
- this.ary +=Notification_No+","
- }
- else if (!eleData[i].checked && notVal==true)
- {
- checkBoxSelectedItems1.pop();
- // this.ary=str.slice();
- }
- }
Preetham ThangammaPosted Mar 21, 2021, 12:38 PM
Rijwan AnsariPosted Mar 19, 2021, 11:08 AM
Preetham ThangammaPosted Mar 19, 2021, 4:53 AM
Preetham ThangammaPosted Mar 19, 2021, 4:52 AM
Satya KarkiPosted Mar 18, 2021, 3:49 PM
Rijwan AnsariPosted Mar 18, 2021, 3:47 PM
Kiran MohantyPosted Mar 18, 2021, 12:53 PM