More in this section

Forums / Developing with Sitefinity / Setting ParentID on ControlPanel does not work

Setting ParentID on ControlPanel does not work

3 posts, 0 answered
  1. Schneider
    Schneider avatar
    29 posts
    Registered:
    02 Nov 2008
    03 Mar 2009
    Link to this post
    I am trying to filter the items shown in a ControlPanel list view by ParentID.

    My understanding was that simply setting the ParentID should be enough, but when I do that no results are shown.

    I am using a simple control panel that derives directly from ControlPanel and I set the ParentID in the constructor.

    The result is no items shown.

    If I run this.Manager.GetContent(..., <parentID>) I get 20 items returned so the parent ID on the content items is set correctly, and the control panel's Manager is able to retrive the items.

    What am I missing?
  2. Schneider
    Schneider avatar
    29 posts
    Registered:
    02 Nov 2008
    03 Mar 2009
    Link to this post
    I have discovered the problem:

    1) I was only setting the ParentId in the CmsContentBase table directly, as a test
    2) The ControlPanel DOES NOT USE the ParentId in CmsContentBase table to determine the list of content items. It only uses it to do the page count.
    3) It appears the use GCMetaData table, CntPrntId field to actually determine if the item should appear.

    What a strange design.
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    03 Mar 2009
    Link to this post
    Hi Schneider,

    The items are listed in the grid by using a BoundField object  in a data-bound control. The object displays
    the specified field.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
3 posts, 0 answered