Copied to clipboard

Flag this post as spam?

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


  • Razvan 36 posts 67 karma points
    Nov 18, 2010 @ 13:07
    Razvan
    0

    uComponents - MultiNodePicker - LINQ serialization problem

    Hello everybody,

       I have a strange problem with the LINQ and the datatype MultiNodePicker from uComponents. The data stored by this control is in the following format

     <MultiNodePicker>    <nodeId>1102</nodeId>    <nodeId>1096</nodeId>    <nodeId>1164</nodeId>    <nodeId>1166</nodeId>    <nodeId>1170</nodeId>  </MultiNodePicker>

      But using linq it returns 11021096116411661170.

      I don't know if its a problem related to uComponents or umbraco.ling.  

    Have a good day

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Nov 18, 2010 @ 13:10
    Jeroen Breuer
    0

    That's a bug in LINQ to Umbraco. It's because LINQ to Umbraco can't read properties which are stored as XML. Please vote for this issue: http://umbraco.codeplex.com/workitem/28731.

    If you use the MNTP and store the data as cvs it should work.

    Jeroen

  • Razvan 36 posts 67 karma points
    Nov 18, 2010 @ 13:16
    Razvan
    0

    Thanks for the quick reply Jeroes. I voted for this bug. The data comes from a custom control (http://ucomponents.codeplex.com/) and I don't want to change/recompile the control. What does MNTP mean ?

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Nov 18, 2010 @ 13:21
    Lee Kelleher
    0

    MNTP = Multi-node Tree Picker

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Nov 18, 2010 @ 13:22
    Jeroen Breuer
    1

    MNTP means MultiNodeTreePicker. It's the datatype from uComponents you're using :). In the prevalue configuration of the datatype you can say how the value needs to be stored. See this for more info: http://ucomponents.codeplex.com/wikipage?title=MultiNodeTreePicker&referringTitle=Documentation

    Jeroen

  • Razvan 36 posts 67 karma points
    Nov 18, 2010 @ 13:26
    Razvan
    0

    Thanks, I will convert my code to use CSV. But I hope this XML issue will be fixed in the next versions of umbraco.

  • Rich Green 2246 posts 4008 karma points
    Nov 18, 2010 @ 13:28
    Rich Green
    2

    Razvan,

    As Jeroen mentions, you can configure the Multi Tree Node Picker to hold it's values as CSV instead of XML, you need to change the selection in the datatype

    Rich

  • Rich Green 2246 posts 4008 karma points
    Nov 18, 2010 @ 13:29
    Rich Green
    0

    you got it already :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Feb 17, 2011 @ 13:45
    Jeroen Breuer
    0

    This has been solved in Umbraco 4.6 because you can now also read xml properties with LinqToUmbraco :).

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft