MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

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

Viewed 8905 time(s), 7 post(s) 2/26/2013 9:32:47 PMby super
super

super

2/26/2013 9:32:47 PM
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 ?
This content has not been rated yet. 
6018 Reputation 709 Total posts
idrazic

idrazic

2/27/2013 9:17:58 AM
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
This content has not been rated yet. 
1384 Reputation 152 Total posts
khorvat

khorvat

2/27/2013 9:22:53 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
super

super

2/27/2013 3:01:13 PM
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?

This content has not been rated yet. 
6018 Reputation 709 Total posts
khorvat

khorvat

2/27/2013 3:41:46 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
super

super

2/27/2013 4:28:32 PM
Setting up pager size in webpart settings did the job, thanks - I still don't understand why hardcoding it didn't solve the problem...
This content has not been rated yet. 
6018 Reputation 709 Total posts
khorvat

khorvat

2/28/2013 1:14:57 PM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts