Hi Vlad,
can you help on that? Please, check code below and last 2 lines to test cases.
I managed to set the height according to your help, but missing width.
public void PrintInfo()
{
string _value = @"Converting a standard server-side Method into an
AjaxMethod enables the Method to be called directly from your client-side JavaScript.
No PostBack, no page flicker and all communication is performed through lightweight AJAX + JSON.
The [AjaxMethod] Attribute can be applied to any public or public static .NET server-side Method
(C#, VB, etc.). An [AjaxMethod] is similar in functionaltiy to the ASP.NET [WebMethod] Attribute
except an AjaxMethod is optimized to serialize and return data in an easily consumed JSON response.";
MessageBoxButtonsConfig _conf = new MessageBoxButtonsConfig();
_conf.Ok = new MessageBoxButtonConfig();
_conf.Ok.Text = "OK";
MessageBoxConfig _c = new MessageBoxConfig();
_c.Width = Unit.Pixel(600);
_c.Icon = MessageBox.Icon.INFO;
_c.Multiline = true;
_c.MultilineHeight = Unit.Pixel(200);
_c.Message = "message";
_c.Title = "title";
_c.Value = _value;
X.Msg.Prompt("title", "message", _conf, "", 200, _value).Show(); // height ok, can't set width
//X.Msg.Prompt("", "", _conf, "", 200, "").Show(_c); // width ok, can't set height
}
Thanx
Matteo