RadMessageBox Details Button

3 posts, 0 answers
  1. eusouleon
    eusouleon avatar
    2 posts
    Member since:
    Mar 2017

    Posted 11 Aug Link to this post

    In C#, how can I show the Details text of the RadMessageBox control without requiring user to click the Details button (to drop down the details). Thank you.
  2. eusouleon
    eusouleon avatar
    2 posts
    Member since:
    Mar 2017

    Posted 11 Aug in reply to eusouleon Link to this post

    I just want it to show the details right away. No need click 'Details' dropdown button... anyone? thanks!
  3. Dess
    Admin
    Dess avatar
    2100 posts

    Posted 14 Aug Link to this post

    Hello Rene, 

    Thank you for writing.  

    Here is a sample code snippet demonstrating how to show the message details immediately after the RadMessageBox is shown: 
    private void radButton1_Click(object sender, EventArgs e)
    {
        RadMessageBox.Instance.Shown -= Instance_Shown;
        RadMessageBox.Instance.Shown += Instance_Shown;
        RadMessageBox.Show("Message", "Caption", MessageBoxButtons.OKCancel, RadMessageIcon.Info, "Details");
    }
     
    private void Instance_Shown(object sender, EventArgs e)
    {
        MethodInfo mi = typeof(RadMessageBoxForm).GetMethod("ShowDetails", BindingFlags.NonPublic | BindingFlags.Instance);
        mi.Invoke(RadMessageBox.Instance, null);
    }

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top