Bug: Category list isn't paged, causes script errors
My category list has 768 items in it, however since there's no paging the entire page locks up and freezes then I get an unresponsive script error popup.
Moreover...how the heck do you delete categories with the API? Everything I try results in a YSOD.
Steve
Hello Steve,
Thank you for contacting us.
I have tried to reproduce the problem on my end, but with no success. I have 1000 categories in the list, but I haven't associated them with any items, so can you tell me if you have associated yours? Also can you provide me with your server's specs?
For deleting a category you can use this code:
TaxonomyManager manager = TaxonomyManager.GetManager();
manager.Provider.SuppressSecurityChecks =
true
;
HierarchicalTaxon Taxon = manager.GetTaxa<HierarchicalTaxon>().Where(t => t.Title ==
"Title"
).FirstOrDefault();
if
(Taxon !=
null
)
manager.Delete(Taxon);
manager.SaveChanges();
I was using Firefox with firebug enabled
Hi Steve,
We're using RadTreeView for all the hierarchical items representation in the backend. Unfortunately TreeView does not support paging by design, and switching to grid or list views is also not a suitable option as we need a mechanism for displaying the item hierarchy. One possible workaround would be breaking down the larger taxonomy lists in separate classification.
All the best,