Hello,
I've something strange. I've a window like that :
@(Html.Telerik().Window()
.Name("addProfilForm")
.Visible(false)
.Title(@ProfilLocalization.AjoutProfil)
.Modal(true)
.Buttons(b => b.Close())
.Content(@<text>
<div>
@if (Model != null && Model.Profil != null)
{
@Html.Hidden("Profil.Id", Model.Profil.Id, new { id = "idProfil" })
}
<div>
<div class="field">
@Html.Label(ProfilLocalization.NameModel)<span class="mandatoryStar"> *</span> :
</div>
<div class="dataInput">
@Html.TextBox("libelleProfil", "", new { @maxlength = "100", onchange = "elementEditedAP(this);" })
</div>
</div>
<div>
<div class="field">
@Html.Label(ProfilLocalization.TypeProfil)<span class="mandatoryStar"> *</span> :
</div>
<div class="dataInput">
<input id="TypeProfil1" name="TypeProfil1" type="radio" value="TypeProfil1" onclick="EditedAP(this);" onchange="EditedAP(this);" />@ProfilLocalization.Profil1Libelle
<input id="TypeProfil2" name="TypeProfil2" type="radio" value="TypeProfil2" onclick="EditedAP(this);" onchange="elementEditedAP(this);"/>@ProfilLocalization.Profil2Libelle
</div>
</div>
</div>
<div style="clear:both;"></div>
<div class="field"> </div>
<a class="t-button ALIGN-center t-grid-update t-button-icon" title="@Html.Raw(ProfilLocalization.Save)" href="#">
<span class="t-icon t-update" id="btnValidate"></span>
</a>
<a class="t-button ALIGN-center t-grid-cancel t-button-icon" title="@Html.Raw(ProfilLocalization.Cancel)" href="#">
<span class="t-icon t-cancel" id="btnCancel"></span>
</a>
</text>))
But when I call this window like :
function showModalDialogAddProfil() {
var window = $("#addProfilForm").data('tWindow');
window.center();
window.open();
}
and i closed it severals times , its height decreases progressively ... WHY ?
Thanks for help