1

is it possible to get the count of unread items in list like the mailbox?

in mailbox it shows the number of unread emails besides inbox word,

can I do the same count behavior for the unread items in discussion board list per each user and show the count in HTML div tag

2

Yes, it is possible.

Reference: MSDN Article

In order to get the count of unread items, set a counter just after the unreadIDs+=";"+oListItem.get_item("ID")+";"; line of code in the above link and then append the counter to the HTML div using jQuery as: $("#<div id>").append("<b>" + count + "</b>");

  • thanks, i don't understand your answer, please post the full code – Karen Kumar Sep 23 '18 at 18:12
  • As the code is quite big and I'm not able to post it over here. You can refer the full code in following MSDN link – Sohail Shaikh Sep 23 '18 at 18:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.