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();
- }
- }

Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 18, 2021, 11:47 AM EDT
Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 19, 2021, 7:08 AM EDT
Kiran MohantyRank #821 · 2.8K reputationPosted Mar 18, 2021, 8:53 AM EDT
Satya KarkiRank #78 · 24.6K reputationPosted Mar 18, 2021, 11:49 AM EDT
Preetham ThangammaRank #7,001 · 251 reputationPosted Mar 19, 2021, 12:52 AM EDT
Preetham ThangammaRank #7,001 · 251 reputationPosted Mar 19, 2021, 12:53 AM EDT
Preetham ThangammaRank #7,001 · 251 reputationPosted Mar 21, 2021, 8:38 AM EDT