Randomize Userlist for Telligent Community Server


Recently i was asked to build a UserControl that uses the UserList of Community Server and randomizes the order of the items. I guess the best solution would be extending the QueryOverrides and provide a Randomizer QueryType. Sometimes this solution is not an option and you need a workaround. In this solution we ta into the PreRender event of the UserList and shuffle the datasource and call on databind. I do realize that calling DataBind in the prerender event of a control can cause serious problems but for the UserList this will not be the case.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: