Threads
The threads are represented by the Telerik.Sitefinity.Forums.Model.ForumThread class. It exposes the following specific properties:
- FirstPostId
Gets or sets the ID of the first post in the thread. - Forum
Gets or sets the forum that the thread belongs to. - IsLocked
Specifies whether the thread is locked. If the thread is locked, the users are unable to post in it. - IsMarkedSpam
Specifies whether the thread is marked as spam. - IsPublished
Specifies whether the thread is published. Only published threads are visible in the UI. - LastPostDate
Gets or sets the date of the last post that has been submitted in the thread. - LastPostId
Gets or sets the ID of the last post that has been submitted in the thread. - LastPostUserId
Gets or sets the ID of the last user that has posted in the thread. - LastPostUserName
Gets or sets the username of the last user that has posted in the thread. - OriginalForum
Gets or sets the original forum of the thread. This property is used to keep track of the original forum in case the thread has been moved to another forum. - PostsCount
Gets or sets the count of the posts in the thread. - ThreadType
Gets or sets the type of the thread. This property is of type Telerik.Sitefinity.Forums.Model.ThreadType. The enumeration has the following values: - Normal
Normal threads should appear bellow any other thread types. - StickOnTop
These threads should be always positioned on top of the normal threads. - Announcement
These are threads appearing above stick on top and normal threads.
- Title
Gets or sets the title of the thread. - ViewsCount
Gets or sets the total amount of views of the thread.
Examples
Under this article you can find the following examples: