Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dupeng0811 4 posts 21 karma points
    Jul 09, 2013 @ 05:12
    dupeng0811
    0

    How to Pagination in Umbraco with API?

    Node productNode = new Node(1202);
    List<INode> productList = productNode.ChildrenAsList;
    int count = productNode.Children.Count;
    Response.Write(count);
    var enumerable = productNode.ChildrenAsList.Select(t => {
        return new {
            ProductName = t.GetProperty("productName"),
            Pic1 = t.GetProperty("pic1"),
            Pic2 = t.GetProperty("pic2"),
            ProductStyle = t.GetProperty("productStyle")
        };
    }).Skip((PageNumber - 1)*PageSize).Take(PageSize);

    For example, the database has 100,000 records, productNode.ChildrenAsList is disposable get out all of the 100,000 data, and then return PageSize paging of data, this is still very slow, is actually a fake page, in fact, no use.

     

    Help!

  • dupeng0811 4 posts 21 karma points
    Jul 09, 2013 @ 05:14
    dupeng0811
    0

    Are there any good content on Access Node good solution, thank you.

  • dupeng0811 4 posts 21 karma points
    Jul 10, 2013 @ 05:32
    dupeng0811
    0

    Anyone?

  • dupeng0811 4 posts 21 karma points
    Jul 11, 2013 @ 04:51
    dupeng0811
    0

    Help me !

Please Sign in or register to post replies

Write your reply to:

Draft