I noticed that after I submit a form that fails validation, my window (with autosize="true" set) does not auto-resize to account for the validation summary.
In my click event, I am trying to call autoSize() directly if IsValid id false without much success.
private void Save_Click(object sender, EventArgs e)
{
if (this.IsValid)
{
// save
}
else
{
string autoSize = "getRadWindow().autoSize(true);";
// Register a startup script which will manually call autoSize() on radWindowActivity
RadScriptManager.RegisterStartupScript(
this,
this.GetType(),
"resizeWindow",
autoSize,
true);
}
In my click event, I am trying to call autoSize() directly if IsValid id false without much success.
private void Save_Click(object sender, EventArgs e)
{
if (this.IsValid)
{
// save
}
else
{
string autoSize = "getRadWindow().autoSize(true);";
// Register a startup script which will manually call autoSize() on radWindowActivity
RadScriptManager.RegisterStartupScript(
this,
this.GetType(),
"resizeWindow",
autoSize,
true);
}