This is a migrated thread and some comments may be shown as answers.

How to invalidate ?

2 Answers 125 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 14 Mar 2014, 09:59 AM
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.Clear();
_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 Answers, 1 is accepted

Sort by
0
Alexander
Top achievements
Rank 1
answered on 14 Mar 2014, 10:18 AM
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 ?
0
George
Telerik team
answered on 19 Mar 2014, 09:41 AM
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";
alert.Show();




Regards,
George
Telerik
 

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

 
Tags
DesktopAlert
Asked by
Alexander
Top achievements
Rank 1
Answers by
Alexander
Top achievements
Rank 1
George
Telerik team
Share this question
or