Refresh After Change to RowsCount

2 posts, 0 answers
  1. Laura
    Laura avatar
    11 posts
    Member since:
    Jan 2014

    Posted 23 Jun 2015 Link to this post

    I have allowed my user to change the number of Rows in a Group residing in a Panorama via a form with a Property Grid (see image 5_Rows.png).  After this value has changed, and the property is updated, all of the existing tiles are pushed together (see image 6_RowsSaved.png).  The only thing that fixes this is if I change the size of the Panorama (which is a child control of a split panel - I am actually just moving the splitter and the tiles seem to refresh after that).

     Can you tell me how I can refresh the tile positions programmatically after I have updated the RowsCount property?

     

    Thanks!

    Laura

  2. Dess
    Admin
    Dess avatar
    1609 posts

    Posted 24 Jun 2015 Link to this post

    Hello Laura,

    Thank you for writing.

    I confirm that it is an issue with RadPanorama. I have logged it in our feedback portal. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - feedback item.

    I have also updated your Telerik points.

    Currently, the possible solution that I can suggest is to invalidate the RadPanorama:
    this.radPanorama1.PropertyChanged+=radPanorama1_PropertyChanged;
    private void radPanorama1_PropertyChanged(object sender, PropertyChangedEventArgs e)
    {
        if (e.PropertyName=="RowsCount")
        {
            this.radPanorama1.PanoramaElement.InvalidateMeasure(true);
        }
    }

    I hope this information helps. Should you have further questions, I would be glad to help.
     
    Regards,
    Dess
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top