Hello!
Alert box is creates MessageBox but with some predefined parameters. So if you want to change width you can just create required MessageBox. Also I hope the following page will be useful:
http://docs.sencha.com/extjs/4.2.1/#...dow.MessageBox
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Button1_Click(object sender, DirectEventArgs e)
{
X.Msg.Show(new MessageBoxConfig
{
Title = "Address",
Message = "Some long address could be placed here",
Width = 300,
Buttons = MessageBox.Button.OK
});
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Ext.NET Examples</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Button ID="Button1" runat="server" Text="Show from server-side">
<DirectEvents>
<Click OnEvent="Button1_Click" />
</DirectEvents>
</ext:Button>
<ext:Button ID="Button2" runat="server" Text="Show from client-side">
<Listeners>
<Click Handler="
Ext.Msg.show({
title:'Address',
msg: 'Some long address could be placed here',
width: 300,
buttons: Ext.Msg.OK
});
"></Click>
</Listeners>
</ext:Button>
</body>
</html>