This is a migrated thread and some comments may be shown as answers.

Issue Html.Telerik.Window

0 Answers 72 Views
Window
This is a migrated thread and some comments may be shown as answers.
C
Top achievements
Rank 1
C asked on 15 Jun 2015, 01:34 PM

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">&nbsp;*</span>&nbsp;:
                </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">&nbsp;*</span>&nbsp;:
                </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">&nbsp;</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

No answers yet. Maybe you can help?

Tags
Window
Asked by
C
Top achievements
Rank 1
Share this question
or