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

RadMessageBoxForm DetailsText

4 Answers 33 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
Curtis
Top achievements
Rank 1
Veteran
Curtis asked on 12 Jul 2018, 11:23 PM

Two quick questions:

1) Is there any way to adjust the height of the panel that pops open when you include DetailsText?

2) MessageText seems to be "HTML Aware" but DetailsText isn't - is this a bug or as designed?

 

Thanks!

-Curtis

4 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 13 Jul 2018, 10:53 AM
Hello, Curtis,    

By default, the details section's height is set to 100. It is not supposed to be adjusted. However, you can use reflection and manipulate the details section's height:

private void radButton1_Click(object sender, EventArgs e)
{
    typeof(RadMessageBoxForm).GetField("detailsSectionHeight", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(RadMessageBox.Instance, 200);
    string details = "details";
    RadMessageBox.Show("Message", "Caption Text", MessageBoxButtons.AbortRetryIgnore, details);
}

As to the HTML-like text formatting, note that a RadTextBox is used for displaying the detailed message. It hosts the standard MS TextBox. Hence, it doesn't support HTML-like text.

I hope this information helps. If you have any additional questions, please let me know.  
 
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Curtis
Top achievements
Rank 1
Veteran
answered on 13 Jul 2018, 05:27 PM

I tore the control apart last night to see if I could discover for myself how to make the adjustment - and discovered the Details was actually a RadTextBox which is actually kind of cool - as to the height adjustment that's perfect for those special occasions :)

Thank you!

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Jul 2018, 09:17 AM
Hello, Curtis,    

It was already noted in my previous post that the details part of RadMessageBox is actually a RadTextBox which hosts the standard MS TextBox. That is why the HTML-like text formatting is not supported

 If you have any additional questions, please let me know.  
 
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Curtis
Top achievements
Rank 1
Veteran
answered on 23 Jul 2018, 03:20 AM
Yes ma'am...I was saying 'Thank you' in my previous post :)
Tags
MessageBox
Asked by
Curtis
Top achievements
Rank 1
Veteran
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Curtis
Top achievements
Rank 1
Veteran
Share this question
or