locked
In Dynamic Data site, filtering the table and then re-ordering it results in error: RRS feed

  • Question

  • User1253726696 posted

    In Dynamic Data site, filtering the table and then re-ordering it results in below error:

    Instance property ‘it’ is not defined for type…

    More details of the issue is available here. Have tried with latest versions of .net framework(4.6, 4.6.1 etc), but looks it has not been fixed yet

    Monday, June 5, 2017 6:33 PM

All replies

  • User1967761114 posted

    Hi krishnainet,

    You could add a selecting event for the entity data source  in the List.aspx page template under DynamicData folder,and add the following lines of code in the event.

    protected void GridDataSource_Selecting(object sender, EntityDataSourceSelectingEventArgs e)
    {
        string s = e.SelectArguments.SortExpression;
        if (s.StartsWith("it."))
            e.SelectArguments.SortExpression = s.Substring(3);
    }

    If you have any other questions, please feel free to contact me any time.

    Best Regards

    Even

    Tuesday, June 6, 2017 6:29 AM
  • User1253726696 posted

    Hi,

    Yeah that work around is working fine, as the post is from 2010, isn't it fixed in latest .net versions yet as mentioned in the post?

    Tuesday, June 6, 2017 6:32 AM