radmap refresh / redraw

2 posts, 0 answers
  1. M L
    M L avatar
    16 posts
    Member since:
    May 2010

    Posted 09 May 2013 Link to this post

    Unless I'm missing something, radMap lacks a refresh / redraw functionality.
    Assume I have a function like this:

    void FillMapWithData(List<MyData> shapes)
        SqlGeospatialDataReader reader = new SqlGeospatialDataReader();
        reader.GeospatialPropertyName = "Geom";
        reader.Source = shapes;
        reader.ToolTipFormat = "{Name} - {Count}";
        worldLayer.Reader = reader;

    It's filled from our database.
    Now, if i execute this for the first time, everything works great.
    But if i were to execute this for another set of data on the same radMap and the same information layer, nothing gets refreshed.
    I have to zoom in and out to get the new shapes displayed. I cant find any refresh or similar method inside radMap or information layer.
    There is a simple workaround for this, all I need to do is set the radmaps visibility to collapsed and then back to visible, but for the sake of clean code, i would rather have a proper method.
    Could you please tell me if such a method exists and in case it doesn't, pass this to the dev team?
    Thank you.
  2. Andrey
    Andrey avatar
    1681 posts

    Posted 13 May 2013 Link to this post


    Unfortunately we can't reproduce the problem using the Q1.2013.
    I have attached a sample solution we've created to do it. It works as expected. Items from new list are displayed without any problem.
    Could you, please, provide us with a small sample solution which reproduces the issue?

    Andrey Murzov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top