List items paging does not work
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.
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"
/>
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
>
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
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.
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
Hi Jen,
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
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.
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
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?
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,Hi,
I just tested this with Sitefinity 5.0 SP1. It *still* doesn't work.
*sigh*
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:
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.
Hi Thomas,