Configure pager in dynamic modules

Posted by Community Admin on 04-Aug-2018 08:58

Configure pager in dynamic modules

All Replies

Posted by Community Admin on 07-Dec-2012 00:00

Hi Sitefinity,

Would it be possible to change this method inside the DynamicContentViewMaster class:

private void ConfigurePager(int virtualItemCount)

To match this code, as it is inside the MasterViewBase class:
protected virtual void ConfigurePager(Pager pager, int vrtualItemCount)

Then it would be possible to override this method and do something like this:
protected override void ConfigurePager(Telerik.Sitefinity.Web.UI.Pager pager, int virtualItemCount)
   base.ConfigurePager(pager, virtualItemCount);
   base.ConfigurePager(pager1, virtualItemCount);

Which would give me the ability to configure more then one pager inside my dynamic module master view. I used the above override when working with the News module, but I now had to do much more coding to get it work with a Dynamic module.

Thanks!
Daniel

Posted by Community Admin on 12-Dec-2012 00:00

Hello Daniel,

I have coordinated your request to our dev teams so they will look into it consider making the method virtual for one of our future releases.

Depending on your scenario you can override the InitializeControls method of the DynamicContentViewMaster in which the ConfigurePager method is called such as:

this.ConfigurePager(this.DataSource.Count());


Regards,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed