private void Reload()
        {
            DataObjectList <DataObjectForumTopicItem> itemList = DataObjects.Load <DataObjectForumTopicItem>(new QuickParameters
            {
                RelationParams = new RelationParams
                {
                    ParentObjectID   = forumTopic.ObjectID,
                    ParentObjectType = Helper.GetObjectTypeNumericID("ForumTopic")
                },
                Udc             = udc,
                PageNumber      = currentPage,
                CurrentObjectID = Request.QueryString["COID"].ToNullableGuid(),
                PageSize        = pageSize,
                IgnoreCache     = true,
                SortBy          = QuickSort.InsertedDate,
                Direction       = QuickSortDirection.Asc
            });

            currentPage      = itemList.PageNumber;
            totalNumberItems = itemList.ItemTotal;
            FTPAGBOT.InitPager(currentPage, totalNumberItems);
            FTPAGTOP.InitPager(currentPage, totalNumberItems);

            RepForumTopic.DataSource = itemList;
            RepForumTopic.DataBind();
        }
Beispiel #2
0
        private void Reload()
        {
            DataObjectList <DataObjectForumTopicItem> itemList = DataObjects.Load <DataObjectForumTopicItem>(new QuickParameters
            {
                RelationParams = new RelationParams
                {
                    ParentObjectID   = forumTopic.ObjectID,
                    ParentObjectType = Helper.GetObjectTypeNumericID("ForumTopic")
                },
                Udc         = udc,
                PageNumber  = currentPage,
                PageSize    = pageSize,
                IgnoreCache = true,
                SortBy      = QuickSort.InsertedDate,
                Direction   = QuickSortDirection.Asc
            });

            pager.InitPager(currentPage, itemList.ItemTotal);

            RepForumTopic.DataSource = itemList;
            RepForumTopic.DataBind();
        }