Problems after we changed Q1 to Q2 version

2 posts, 0 answers
  1. Pablo
    Pablo avatar
    1 posts
    Member since:
    Sep 2011

    Posted 22 Sep 2011 Link to this post

    Hello everybody!
    I've questions to you and specially Telerik's developers.

    1. We changed library from full version Q1 (2011.1.0419.35) to full version Q2 (2011.2.0712.35). Both versions are full and were bought (not any trials).
    After this change very important functionality for us - dragging / moving on map after click right button mouse - don't work.
    We use Visual Studio 2010 and Team Foundation Server for software development. Our project is made in WPF(C#). 
    Any old libraries (Q1) were replaced on new Q2 version (in TFS and local machines).

    Interestingly if I make simple project in WPF and use this radmap Q2 version (without any TFS connection) this moving maps functionality works.
    What should we do? any idea????

    2. We changed Q1 to Q2, because new version has new functionality available by SqlGeospatialDataReader, and .... here is another problem namely: SqlGeospatial gets good data and don't display any polygon or points on informationlayer. Example code is shown below:

               <telerik:InformationLayer x:Name="layer1" Visibility="Visible">
                        <telerik:SqlGeospatialDataReader x:Name="sqlGeospatialDataReader">

    code behind:
               DBContext.DataClasses1DataContext db = new DBContext.DataClasses1DataContext();

               List<string> mylist = new List<string>();


               foreach (var element in db.usp_GetRegions().ToList())
               sqlGeospatialDataReader.Source = mylist;

    at sqlGeospatialDataReader.Source = mylist, the SqGeoSpatialDataReader.Source gets complete list of WKT's as strings. This code has debugged and contains correct data required by SqlGeoSpatialDataReader (I think so :-)). 
    usp_GetRegions() is stored procedure that gets data from SQL Server and works fine (return correct format of data).

    Can you give (link example or some other) me any example of use this class in codebehind. I tried "List<IEnumerable> mylist" and don't work also.

    I will be grateful for help.

  2. Andrey
    Andrey avatar
    1681 posts

    Posted 27 Sep 2011 Link to this post

    Hello Pablo,

    1. It is very complicated and it is hard to reproduce the problem without your solution. Could you, please, provide us with a small runable solution which reproduces it?

    2. The SqlGeospatialDataReader requires to use the GeospatialPropertyName property. It must define the name of the wkt or wkb geometry property of the class you use for collection. I have attached a small sample solution. For more information please take a look for the Wkt Geospatial Data Reader eaxmple and the following documentation topic:

    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top