More in this section

Forums / Developing with Sitefinity / NewsList advanced properties question

NewsList advanced properties question

3 posts, 0 answered
  1. Eric
    Eric avatar
    23 posts
    Registered:
    01 Aug 2007
    27 Nov 2007
    Link to this post
    When editing a newslist, clicking on the advanced tab, and expanding the "Paging" you get the following properties:
    PagingMode
    NewsItemsPerPage
    NewsCount
    AllowPaging

    I am trying to find out what determines the order of appearance since the code for these properties looks like this:

            [Category("Paging")]
            public bool AllowPaging
            {
                get
                {
                    object obj = this.ViewState["AllowPaging"];
                    if (obj != null)
                        return (bool)obj;
                    return true;
                }
                set
                {
                    this.ViewState["AllowPaging"] = value;
                }
            }

            [Category("Paging")]
            public int NewsItemsPerPage
            {
                get
                {
                    object obj = this.ViewState["NewsItemsPerPage"];
                    if (obj != null)
                        return (int)obj;
                    return 10;
                }
                set
                {
                    this.ViewState["NewsItemsPerPage"] = value;
                }
            }

            [Category("Paging")]
            public PagerMode PagingMode
            {
                get
                {
                    object obj = this.ViewState["PagingMode"];
                    if (obj != null)
                        return (PagerMode)obj;
                    return PagerMode.Both;
                }
                set
                {
                    this.ViewState["PagingMode"] = value;
                }
            }

    Thanks,
    Eric
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    28 Nov 2007
    Link to this post
    Hello Eric,

    Control properties in a property window are grouped by Category, they are not sorted by any criteria. But we have plans to order the properties in a given category by their name.

    Hope this information is helpful.

    Greetings,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Eric
    Eric avatar
    23 posts
    Registered:
    01 Aug 2007
    28 Nov 2007
    Link to this post
    Awesome. Thanks Pepi.
Register for webinar
3 posts, 0 answered