How to invalidate ?

3 posts, 0 answers
  1. Alexander
    Alexander avatar
    2 posts
    Member since:
    Mar 2014

    Posted 14 Mar 2014 Link to this post

    I have desktop alert with 2 controls
    1) RadGridView (shown)
    2) Panel with text area and some buttons. (hidden)

    In radgridview, when i click on command button in a row, i need to show that panel with some additional info inside the text area.

    So when i clicked, i have such code:
    AlertControl.FixedSize = new Size(ALERT_WIDTH, _height);
    _textBox.Text = txtMessage;

    _textBox.Visible =
    _btnCollapse.Enabled =
    _btnNotify.Enabled =
    _panelWithButtons.Visible = true;

    This code works fine only when i use Hide(), this code, Show(). Have flickering here.
    Without hide/show i see pretty strange thing, gridview disappear, textarea shown at top of control and height not changed (visually).

    So how to invalidate without flickering, or what i can do at all here ?
  2. Alexander
    Alexander avatar
    2 posts
    Member since:
    Mar 2014

    Posted 14 Mar 2014 in reply to Alexander Link to this post

    AlertControl.FixedSize = new Size(ALERT_WIDTH, _height);
    AlertControl.Popup.Size = AlertControl.FixedSize;

    I see such code helps me. Dont know why updated fixed size prop dont auto update popup.size.

    But still has flickering when setting size, how to avoid it ?
  3. George
    George avatar
    500 posts

    Posted 19 Mar 2014 Link to this post

    Hello Alexander,

    Thank you for contacting us.

    I am not quite sure that I understand your issue completely. Could you please elaborate more about the panel you are talking about? How is it connected to the RadDesktopAlert? You can also share any other information I may find helpful.

    The following code seems to work fine on my end:
    RadDesktopAlert alert = new RadDesktopAlert();
    alert.FixedSize = alert.Popup.Size = new Size(20, 30);
    alert.ContentText = "Text";


    DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

Back to Top