Radwindow databind problem

3 posts, 0 answers
  1. OPA
    OPA avatar
    4 posts
    Member since:
    Jul 2012

    Posted 16 Aug 2013 Link to this post

    <telerik:RadWindow ID="rw_confirm_client" Modal="true" Behaviors="None" VisibleStatusbar="false"
                 runat="server" CssClass="RwConfirmacion" VisibleTitlebar="false" Height="10"
    <div class="BoxConfirmationContent">
    <img src="../App_Themes/Opa.Tema/Imagenes/Pregunta.png" id="Img3" class="ImgNotifcacion"
       runat="server" />
    <table class="TbMensajeConfirmacion">
    <td class="botoncerrarmensajero">
    <asp:LinkButton href="#" runat="server" ID="LinkButton2" CssClass="linkcerrar"
    <td class="textomensaje">
    <asp:Label ID="Label1" runat="server">Aca va el texto del mensaje</asp:Label></td>
    <td class="botoncerrarmensajero">
    <telerik:RadButton runat="server" ID="RadButtonConfirmClient" CssClass="BtConfirmacion"
                 CausesValidation="false" Text="OK">
    <Image ImageUrl="../App_Themes/Opa.Tema/Imagenes/NegroTotal.png" IsBackgroundImage="true" />
    <telerik:RadButton runat="server" ID="RadButtonCancelClient" CssClass="BtConfirmacion"
                 CausesValidation="false" Text="Cancelar"
    <Image ImageUrl="../App_Themes/Opa.Tema/Imagenes/NegroTotal.png" IsBackgroundImage="true" />

    hello I have this window in a window manager, this window is displayed from a radbutton in another location, using javascript and after asking achievement button trigger the event, the problem is that the databind have stopped working, can anyone help ?

    var fireConfirm = true;
            function OnClientClicked(button, args) {
                var callBackFunction = Function.createDelegate(button, function (argument) {
                    if (fireConfirm && argument) {
                        fireConfirm = false;
                if (fireConfirm) {
                    var text = "¿Has revisado ya?, si es asi ¿Estas seguro de llevar a cabo esta acción?";
                    var oWnd = radopen(null, 'rw_confirm_client');
                    var X = document.body.clientWidth - 400;
                    var Y = 150;
                    oWnd.MoveTo(X, Y);
                    var button = document.getElementById("<%=RadButtonConfirmClient.ClientID %>").onclick = callBackFunction;
                    var text = document.getElementById("<%=Label1.ClientID %>").innerText = text;

  2. Marin Bratanov
    Marin Bratanov avatar
    5433 posts

    Posted 19 Aug 2013 Link to this post


    I do not see anything related to databinding in these snippets, so at this point I can only assume what is going wrong.

    What I can suggest is the following:
    1) examine this demo on confirming the click on a RadButton: http://demos.telerik.com/aspnet-ajax/button/examples/confirm/defaultcs.aspx.
    2) take this RadWindow out of the RadWindowManager, because its ContentTemplate is used
    3) if you are using AJAX make sure the necessary controls are updated after the postback because if they are not it can seem as if databinding them does not work.

    Marin Bratanov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. OPA
    OPA avatar
    4 posts
    Member since:
    Jul 2012

    Posted 23 Aug 2013 Link to this post

    Marin thanks for reply, i see demo but not working for me because the javascript code is in the masterpage and the control that fired the formview event is a webform and can't access "mybutton.ClientID", i can find the control but the click does anything

    Note: the databind fired in item_deleted from formview, its the code:

    protected void Fvcargos_ItemDeleted(object sender, FormViewDeletedEventArgs e)

Back to Top