Copied to clipboard

Flag this post as spam?

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

  • Claushingebjerg 925 posts 2527 karma points
    Nov 11, 2015 @ 09:09

    "'Newtonsoft.Json.Linq.JArray' does not contain a definition for" on list of nodes

    Im using the U7 grid data type package to do some repeated content. I need to sort these items and then take 1.

    BUT, i get the following error when trying to sort:

    'Newtonsoft.Json.Linq.JArray' does not contain a definition for 'OrderBy'

    My code is as follows

    var afholdelser = CurrentPage.afholdelser.OrderBy("afholdelsdato"); 
    foreach (var afholdelse in afholdelser) {
        <p>do stuff</p>

    What am i doing wrong?

  • Alex Skrypnyk ( 6070 posts 23408 karma points MVP 6x admin c-trib
    Nov 13, 2017 @ 17:53
    Alex Skrypnyk (

    Hi Claushingebjerg

    Do not use dynamic types for stuff like that.

    If you want to use OrderBy -> try to do it with strongly typed objects.

    What type of data are you storing in "afholdelser" property?



  • Claushingebjerg 925 posts 2527 karma points
    Nov 14, 2017 @ 07:35

    I dont recall. The question is 2 years old, but thanks for your reply.

Please Sign in or register to post replies

Write your reply to: