TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Preetham Thangamma
NA
167
16.6k
How to delete unchecked value
Mar 18 2021 12:25 PM
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();
}
}
Reply
Answers (
7
)
How to display channels in ListView using Graph API?
What is the counterpart of this C pointer programme in C#?