Mono Support how to increase the page size 10 to 20 for discussion board ? 

Viewed 9280 time(s), 7 post(s), 2/26/2013 9:32:47 PM - by super
2/26/2013 9:32:47 PM
6018 Reputation 709 Total posts

In the discussion board section, I have added several discussion boards.

But after 10th group, rest go in next page.

I tried changing this:

DiscussionBoard.ascx

<mono:Pager runat="server" ID="pager" PageSize="20" NumericButtonCount="5" AllowCustomPaging="true"
                AutoPaging="false">


DiscussionTopics.ascx

<mono:Pager runat="server" ID="pager" PageSize="20" NumericButtonCount="5" AllowCustomPaging="true"
                AutoPaging="false">

But still on my site, it is paging after 10th discussion board, why ?

1
2/27/2013 9:17:58 AM
1384 Reputation 152 Total posts

Hello, 

First, a check, are the overridden DiscussionContainer.ascx "Register" paths pointing to your overridden controls or the MonoX ones? (also check all the paths up in the hierarchy)

Regards,
Igor

2
2/27/2013 9:22:53 AM
15993 Reputation 2214 Total posts

I just want to jump in and check one more thing, Super, did you change the pager page size on the page where you instantiate the DiscussionContainer (Discussion Module) as this is the easiest and proper way to do it ?

Regards

3
2/27/2013 3:01:13 PM
6018 Reputation 709 Total posts

Yes, like I mentioned above, I changed from "10" to "20" in the code that I posted above for

DiscussionBoard.ascx and DiscussionTopics.ascx

Since DiscussionContainer is actually using these 2 modules and changing page size in these 2 modules should do the job but it is not the case in my situation..

I still don't see page 20 on my site...when I go to my site: www.mydomain.com/MonoX/Pages/SocialNetworking/Discussion.aspx

The discussion boards list change page after first 10...why?

4
2/27/2013 3:41:46 PM
15993 Reputation 2214 Total posts

Is your DiscussionContainer in WebPart zone ? If that is the case then you need to set this in the module properties, if not then you should do it in the page mark-up.

Regards

5
2/27/2013 4:28:32 PM
6018 Reputation 709 Total posts

Setting up pager size in webpart settings did the job, thanks - I still don't understand why hardcoding it didn't solve the problem...

6
2/28/2013 1:14:57 PM
15993 Reputation 2214 Total posts

Because DiscussionContainer module is responsible for handling the data stored in personalization and then those values are propagated down to other controls/WebParts inside the container. Therefor your values are overwritten with values stored (event default ones) in the personalization.

Regards

7
This is a demo site for MonoX. Please visit Mono Software for more info.