More in this section

Forums / Bugs & Issues / List items paging does not work

List items paging does not work

16 posts, 1 answered
  1. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    27 Oct 2011
    Link to this post
    Hi,

    I can't get paging to work on the backend page for list items (Sitefinity 4.2 SP1).

    From what I see in Settings / Advanced / Lists / Controls / ItemsBackend / Views / ItemsBackendList, paging should be enabled by default (AllowPaging = True and ItemsPerPage = 50).
    Yet, in a list with 203 items, all items are displayed on the same page, with no paging system. This makes performances really bad.

    I tried modifying the paging settings, as well as deleting my config files (just in case they're corrupt), but it doesn't change a thing.

    This bug is blocking for us, so until it's fixed, we would appreciate a workaround. Thanks.
  2. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    31 Oct 2011
    Link to this post
    Hello Thomas,

    I'm sorry to hear bout the problems you've experienced. Can you please try restarting your application. Also, if you've set different number of items per page, the change should reflect your ListsConfig.contentViewControls.ListsBackend.views.ListsBackendList, located in App_Data\Sitefinity\Configuration. This is how the config file looks, when I set 1 item per page to it:
    <view xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="4.2.1733.0" itemsPerPage="1" viewName="ListsBackendList" />
    Please take a look at your config file and let me know how it looks. Have you by some chance mapped an external template to that particular view, where the number of items per page is defined? This wouldn't let any changes, made in Settings / Advanced / Lists / Controls / ItemsBackend / Views / ItemsBackendLi, apply to the module, because all the information will come from the custom template. I've attached a video, which shows how the items per page property works by default, please review it and do not hesitate to get back to me if I have missed something by any chance.

    All the best,
    Jen Peleva
    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
  3. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    31 Oct 2011
    Link to this post
    Hi Jen,

    Yes, I did restart my app each time, just in case. I also double checked that my changes were reflected in the config files, and they were. So the settings are there, but they're ignored for some reason, even after rebooting the site.

    I do not use external templates.

    I couldn't check out your zip file yet (due to security reasons; blocked by my company proxy).
    Anyway, here's the content of my config file (ListsConfig.contentViewControls.ItemsBackend.views.ItemsBackendList.config):

    <?xml version="1.0" encoding="utf-8"?>
    <view xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="4.2.1733.0" itemsPerPage="25" title="ListItemsTitle" viewName="ItemsBackendList">
        <dialogs>
            <add params="?ControlDefinitionName=ItemsBackend&ViewName=ListsBackendInsertItem&backLabelText=Back to all list items&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="ContentViewInsertDialog on createItem" />
            <add params="?ControlDefinitionName=ItemsBackend&ViewName=ListsBackendEditItem&backLabelText=Back to all list items&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="ContentViewEditDialog on edit" />
            <add params="?moduleName=Lists&typeName=Telerik__dot__Sitefinity__dot__Lists__dot__Model__dot__ListItem&title=Permissions for list items&backLabelText=Back to all list items&permissionSetName=ListItem,Comments&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="ModulePermissionsDialog on permissions" />
            <add params="?ControlDefinitionName=ListsBackend&ViewName=ListsBackendEdit&NotifyUrlChanged=True&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="ContentViewEditDialog on parentProperties" />
            <add params="?ControlDefinitionName=ItemsBackend&moduleName=Lists&typeName=Telerik.Sitefinity.Lists.Model.ListItem&title=Permissions&backLabelText=Back to all list items&VersionComparisonView=ListsBackendVersionComparisonView&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="VersionHistoryDialog on history" />
            <add params="?ControlDefinitionName=ItemsBackend&moduleName=Lists&typeName=Telerik.Sitefinity.Lists.Model.ListItem&title=Permissions&backLabelText=Back to all list items&VersionComparisonView=ListsBackendVersionComparisonView&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="VersionHistoryDialog on historygrid" />
            <add params="?ControlDefinitionName=ItemsBackend&ViewName=ItemsBackendVersionPreview&backLabelText=Back to Revision History&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="ContentViewEditDialog on versionPreview" />
            <add params="?ControlDefinitionName=ItemsBackend&ViewName=BackendListPreviewItemView&backLabelText=Back to all list items&SuppressBackToButtonLabelModify=true&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="ContentViewEditDialog on preview" />
            <add params="?TypeName=Telerik.Sitefinity.Lists.Model.ListItem&Title=List item data fields&BackLabelText=Back to all list items&ItemsName=list items&parentId=62e3e281-689b-428f-8274-339d2b9f4224&parentType=Telerik.Sitefinity.Lists.Model.List" id="ModuleEditorDialog on moduleEditor" />
        </dialogs>
    </view>

    I also tried simplifying it, to only have a "view" element, as in your example, but it didn't make a difference.

    Thanks for your help.
  4. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    03 Nov 2011
    Link to this post
    Hi Thomas,

    It seems that we tested setting number of lists per page, and what you're trying to specify is list items per page. Excuse us for the misunderstanding. We reproduced the problem and you were correct that changes to the config files don't get applied for some reason. It is now logged as a bug in our system, which will be fixed in our future releases. Thank you for reporting it.

    Kind regards,
    Jen Peleva
    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
    Answered
  5. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    03 Nov 2011
    Link to this post
    Hi Jen,

    Thanks for confirming the issue.

    Could you give me the PITS number?
    Also, can you recommend a workaround? Because this is blocking for us (now at 321 items and counting).

    Thanks.
  6. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    08 Nov 2011
    Link to this post
    Hello Thomas,

    We apologize for the inconvenience caused, but at the moment we don't have a workaround for this problem. We will research it further and update you as soon as we have a solution.This is the link to the issue in our PITS.

    Best wishes,
    Jen Peleva
    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
  7. Haroon
    Haroon avatar
    4 posts
    Registered:
    01 Dec 2011
    03 Feb 2012
    Link to this post
    Hi Jen,

    is there any solution for this issue.
    I've created Module .. and when I go to (Content->Module Name) to add new items to the list.. my List has more than 300 items .. and each page will display 50 .. and when i hit the page Number 3 or 4 it takes me to the add new Item page ..
    And I am using sitefininty 4.4.

    Thanks
    Haroon Shishani
  8. Mike
    Mike avatar
    208 posts
    Registered:
    10 Dec 2007
    07 Feb 2012
    Link to this post
    I have a similar problem in SF 4.4

    In a custom module built with the ModuleBuilder, I have 37 items.  But the paging bar in the back end listing shows two pages of items, yet when I click on Page 2, I get the "create new item" prompt. 

    I believe this is because the pager is including the master item.  That is, when you have one item in a published state, there are two listed in the table in the DB; one is the master the other is the current published version.  When I look in the DB, there are 74 items (every item is published).  

    Is there a workaround for this?  Also, unless I'm mistaken, I don't believe the PITS item linked in this thread is the correct one.

    Regards,
    Mike Sharp
  9. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    07 Feb 2012
    Link to this post
    It's a bit worrying to realize things like this do not work consistently across content types, as you'd expect that kind of code to be shared. Especially since all content types (list items, news, etc) inherit from the same base type. Instead, it seems there's a different code path for each type of content, which means different bugs, and scattered efforts.
  10. Stoimen Stoimenov
    Stoimen Stoimenov avatar
    60 posts
    Registered:
    24 Aug 2017
    07 Feb 2012
    Link to this post
    Hi,

    Thank you for bringing up this topic. We are aware of this issue internally but I am making it a PITS issue so that you can track its progress. Also you can vote for it and that way you are going to increase its priority.

    I apologize for any inconvenience this is causing.

    All the best,
    Stoimen Stoimenov
    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
  11. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    11 Apr 2012
    Link to this post
    Hi,

    I just updated to SF 5.0. I see list items paging still does not work at all. My clients and manager will be overjoyed.
    I assume the buggy 4.4 patch has just been rolled back in 5.0, rather than fixed. Can anyone confirm?
  12. Stoimen Stoimenov
    Stoimen Stoimenov avatar
    60 posts
    Registered:
    24 Aug 2017
    12 Apr 2012
    Link to this post
    Hello Thomas,

     We have already fixed the problem with pagination in the grid view internally. The fix will be live with the 5.0 service pack that is scheduled for this month.

    Greetings,
    Stoimen Stoimenov
    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
  13. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    23 Apr 2012
    Link to this post
    Hi,

    I just tested this with Sitefinity 5.0 SP1. It *still* doesn't work.

    *sigh*
  14. Stoimen Stoimenov
    Stoimen Stoimenov avatar
    60 posts
    Registered:
    24 Aug 2017
    25 Apr 2012
    Link to this post
    Hi Thomas,

    I have tested this feature locally in great detail and I haven't experienced problems with 5.0 SP1. To enable paging you need to do the following:

    1. In the ~\App_Data\Sitefinity\Configuration folder open DynamicModulesConfig.config
    2. Find the contentViewControl section with contentType property equal to Telerik.Sitefinity.DynamicTypes.Model.YourModule.YourContentType
    3. Right after the contentViewControl find the first view section
    4. In the view section find the canUsersSetItemsPerPage property and set it to true and the itemsPerPage set to how many items you want per page
    5. Reset your app pool and clear your browser's cache
    If you still can't enable pagination in the master grid view please send us a support ticket with backend access to your website so that we can further investigate your problem.

    Regards,
    Stoimen Stoimenov
    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
  15. Thomas
    Thomas avatar
    223 posts
    Registered:
    19 Jan 2011
    25 Apr 2012
    Link to this post
    Hi Stoimen,

    Are you sure list item paging is handled in DynamicModulesConfig.config?
    From what I understand, dynamic modules is for custom content types, not for standard content types. I looked at the DynamicModulesConfig.config, and it has no contentType for list items, but only for the content types I created.

    As I said in the original post in this topic, I tried to enable list item paging by going to "Settings / Advanced / Lists / Controls / ItemsBackend / Views / ItemsBackendList", which is where it should be handled, from what I understand. If not, I don't understand what these settings are for.
  16. Stoimen Stoimenov
    Stoimen Stoimenov avatar
    60 posts
    Registered:
    24 Aug 2017
    30 Apr 2012
    Link to this post
    Hi Thomas,

    I apologize for misunderstanding you. This topic became a bit of a mess - some people ask about Module Builder items, you ask about List module items and I got confused. Zheyna logged the bug you have as a PITS issue and it is still pending. I tried to give a solution about the problem with pagination for the items created using the Module Builder so that the other people in this topic can resolve their issues.

    Once again I apologize for misunderstanding you.

    Kind regards,
    Stoimen Stoimenov
    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
16 posts, 1 answered