Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
142 views
Hi!

i've this webform that opens a radwindow.

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MovimientosInversores.aspx.cs" Inherits="MovimientosInversores" Title="Untitled Page" %> 
 
<%@ Register Namespace="Octopus.CustomControls" TagPrefix="UC" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="MainContainer" Runat="Server"> 
     
    <script type="text/javascript"> 
        function noENTER(evt) 
        { 
            var evt = (evt) ? evt : ((event) ? event : null); 
            var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null); 
            if ((evt.keyCode == 13) && (node.type=="text")) 
                return false; 
        } 
        document.onkeypress = noENTER; 
         
        function boxOffHover(box) { 
            box.style.background="#fff"; 
        } 
 
        function boxOnHover(box) { 
            box.style.background="#f3f3f3"; 
        } 
    </script> 
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> 
        <script type="text/javascript"> 
            function ClientClose(sender, eventArgs)  
            {  
                //alert("aaa"); 
                $find("<%= RadAjaxManager1.ClientID %>").ajaxRequest();  
            } 
             
            function ShowInsertForm() 
            { 
                var combo = $find("<%= ddlObra.ClientID %>"); 
                var id = combo.get_selectedItem().get_value(); 
                if(id != "0") 
                    window.radopen("http://localhost:3512/Back/popups/NuevoInversor.aspx?Id="+id, "RadWindow1"); 
                else 
                    alert("Debe seleccionar una obra."); 
            } 
             
        </script> 
    </telerik:RadCodeBlock> 
         
    <table cellpadding="0" cellspacing="0" style="width:100%;"> 
        <tr> 
            <td style="vertical-align:bottom">   
                <UC:PageTitle ID="ucPageTitle" runat="server"  
                    Width="100%" 
                    ShowMandatoryMessage="false" 
                    Title="Ingreso de Movimientos de Inversores"  
                    SubTitle="Ingrese los datos solicitados" /> 
            </td> 
            <td style="vertical-align:middle; background-color:Transparent" align="right"> 
                <asp:Panel runat="server" ID="pnlMsj"> 
                    <UC:FormMessage runat="server" ID="FormMessage"></UC:FormMessage> 
                </asp:Panel> 
            </td> 
        </tr> 
        <tr> 
            <td class="Divisor" colspan="2"></td> 
        </tr> 
    </table> 
    <br /> 
    <br />   
    <div> 
        <div align="left"> 
            <UC:MenuMovimientos runat="server" ID="ucMenuMovimientos"></UC:MenuMovimientos> 
        </div> 
        <br /> 
        <br /> 
        <br /> 
        <asp:Panel runat="server" ID="pnlInfo"> 
             
            <div class="listaItems" style="width:300px; float:left" onmouseover="boxOnHover(this);" onmouseout="boxOffHover(this);"> 
                <ul> 
                    <li> 
                        <asp:Label runat="server" ID="Label1" CssClass="Title" Text="Sub Tipo Movimiento" /><br /> 
                        <asp:Label runat="server" ID="lblSubTipoMov" CssClass="LabelLetraColor"></asp:Label> 
                        <telerik:RadComboBox runat="server" ID="ddlSubTipoMovimiento" Width="160px" Visible="false"> 
                            <%--MarkFirstMatch="true" AutoPostback="True" OnSelectedIndexChanged="ChangeConcept" --%> 
                            <Items> 
                                <telerik:RadComboBoxItem Text="Aporte Inicial" Value="I" Selected="true" /> 
                                <telerik:RadComboBoxItem Text="Aporte" Value="A" /> 
                                <telerik:RadComboBoxItem Text="Retiro" Value="R" /> 
                                <telerik:RadComboBoxItem Text="Otro" Value="O" /> 
                            </Items> 
                        </telerik:RadComboBox> 
                    </li> 
                    <li> 
                        <asp:Label runat="server" ID="lblFecha" CssClass="Title" Text="Fecha" /><br /> 
                        <telerik:RadDatePicker ID="txtFecha" runat="server"></telerik:RadDatePicker> 
                        <asp:RequiredFieldValidator ID="rqvFecha" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="txtFecha"></asp:RequiredFieldValidator> 
                    </li> 
                    <li> 
                        <asp:Label runat="server" ID="lblObra" CssClass="Title" Text="Obra" /><br /> 
                        <telerik:RadComboBox runat="server" ID="ddlObra" Width="265px" Height="150px" CausesValidation="false"  
                            AutoPostback="True" OnSelectedIndexChanged="GetInfo" MarkFirstMatch="true"></telerik:RadComboBox> 
                             
                        <br /> 
                        <asp:Panel runat="server" ID="pnlPlanDeInversion" Visible="false"> 
                            <a href="#" runat="server" id="lnkPlanDeInversion">Ver plan de inversion</a> 
                        </asp:Panel> 
                        <asp:RequiredFieldValidator ID="rqvObra" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="ddlObra"></asp:RequiredFieldValidator> 
                    </li> 
                    <li style="border:0"> 
                        <asp:Label runat="server" ID="lblInversor" CssClass="Title" Text="Inversor" /><br /> 
                        <telerik:RadComboBox runat="server" ID="ddlInversor" Width="265px" Height="150px" CausesValidation="false" 
                            AutoPostback="True" OnSelectedIndexChanged="SetPorcentual" MarkFirstMatch="true" Filter="Contains"></telerik:RadComboBox> 
                        <br /> 
                        <a href="javascript:ShowInsertForm();">Nuevo</a> 
                        <%--<asp:LinkButton runat="server" id="lnkNuevoInv" Text="Nuevo" CausesValidation="false"></asp:LinkButton>--%> 
                        <asp:RequiredFieldValidator ID="rqvInversor" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="ddlInversor"></asp:RequiredFieldValidator> 
                    </li> 
                     
                </ul> 
            </div> 
            <div class="listaItems" style="margin:0 20px; width:280px; float:left" onmouseover="boxOnHover(this);" onmouseout="boxOffHover(this);"> 
                <ul> 
                    <li> 
                        <asp:Label runat="server" ID="lblFormaDePago" CssClass="Title" Text="Forma de Pago" /><br /> 
                        <table cellpadding="0" cellspacing="0"> 
                            <tr> 
                                <td> 
                                    <telerik:RadComboBox runat="server" ID="ddlFormaDePago" Width="100px" CausesValidation="false"  
                                        AutoPostback="True" OnSelectedIndexChanged="ShowCheque" MarkFirstMatch="true"> 
                                        <Items> 
                                            <telerik:RadComboBoxItem Text="Cheque" Value="C" /> 
                                            <telerik:RadComboBoxItem Text="Efectivo" Value="E" Selected="true" /> 
                                            <telerik:RadComboBoxItem Text="Mixto" Value="M" /> 
                                        </Items> 
                                    </telerik:RadComboBox> 
                                </td> 
                                <td>&nbsp;&nbsp;</td> 
                                <td class="ColumnLabel" style="vertical-align:top"> 
                                    <asp:Panel runat="server" ID="pnlCheque" Visible="false"> 
                                        <asp:Label runat="server" ID="lblNroCheque" CssClass="Title" Text="Nro." /> 
                                        &nbsp; 
                                        <asp:TextBox runat="server" ID="txtNroCheque" MaxLength="50" CssClass="TextBoxMini" SkinID="None"></asp:TextBox> 
                                    </asp:Panel> 
                                </td> 
                            </tr> 
                        </table> 
                    </li> 
                    <li> 
                        <asp:Label runat="server" ID="lblConcepto" CssClass="Title" Text="Concepto" /><br /> 
                        <telerik:RadComboBox runat="server" ID="ddlCuota" Width="250px" Height="150px" CausesValidation="false"  
                            AutoPostback="True" OnSelectedIndexChanged="GetValorCuota" MarkFirstMatch="true"></telerik:RadComboBox> 
                        <br /> 
                        <asp:Panel runat="server" ID="pnlConcepto" Visible="false"> 
                            <asp:TextBox runat="server" ID="txtConcepto" MaxLength="128"></asp:TextBox> 
                        </asp:Panel> 
                        <asp:RequiredFieldValidator ID="rqvConcepto" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="ddlCuota"></asp:RequiredFieldValidator> 
                    </li> 
                    <li> 
                        <table cellpadding="0" cellspacing="0"> 
                            <tr> 
                                <td> 
                                    <asp:Label runat="server" ID="lblImporteDolares" CssClass="Title" Text="Importe U$S" /><br /> 
                                    <telerik:RadNumericTextBox ID="txtImporteDolares" runat="server" InvalidStyleDuration="100" CausesValidation="false" 
                                        ShowSpinButtons="True" Type="Number" width="100px" OnTextChanged="ChangeMonto" AutoPostBack="true"> 
                                        <NumberFormat DecimalDigits="2" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                                    </telerik:RadNumericTextBox> 
                                    <asp:RequiredFieldValidator ID="rqvImporteDolares" runat="server" ErrorMessage="obligatorio" 
                                        Display="Dynamic" ControlToValidate="txtImporteDolares"></asp:RequiredFieldValidator> 
                                </td> 
                                <td>&nbsp;&nbsp;</td> 
                                <td> 
                                    <asp:Label runat="server" ID="lblTipoCambio" CssClass="Title" Text="Tipo de Cambio" /><br /> 
                                    <telerik:RadNumericTextBox ID="txtTipoCambio" runat="server" InvalidStyleDuration="100" CausesValidation="false" 
                                        ShowSpinButtons="True" Type="Number" width="100px" OnTextChanged="ChangeMonto" AutoPostBack="true"> 
                                        <NumberFormat DecimalDigits="4" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                                    </telerik:RadNumericTextBox> 
                                    <asp:RequiredFieldValidator ID="rqvTipoCambio" runat="server" ErrorMessage="obligatorio" 
                                        Display="Dynamic" ControlToValidate="txtTipoCambio"></asp:RequiredFieldValidator> 
                                </td> 
                            </tr> 
                        </table> 
                    </li> 
                    <li style="border:0"> 
                        <asp:Label runat="server" ID="lblImportePesos" CssClass="Title" Text="Importe $" /><br /> 
                        <telerik:RadNumericTextBox ID="txtImportePesos" runat="server" InvalidStyleDuration="100" CausesValidation="false" 
                            ShowSpinButtons="True" Type="Number" width="100px" OnTextChanged="ChangeDolares" AutoPostBack="true"> 
                            <NumberFormat DecimalDigits="2" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                        </telerik:RadNumericTextBox> 
                        <asp:RequiredFieldValidator ID="rqvImportePesos" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="txtImportePesos"></asp:RequiredFieldValidator> 
                    </li> 
                </ul> 
            </div> 
            <div class="listaItems" style="margin:0 10px; width:200px; float:left" onmouseover="boxOnHover(this);" onmouseout="boxOffHover(this);"> 
                <ul> 
                    <li> 
                        <asp:Label runat="server" ID="lblTipoComprobante" CssClass="Title" Text="Comprobante" /><br /> 
                        <table cellpadding="0" cellspacing="0"> 
                            <tr> 
                                <td> 
                                    <telerik:RadComboBox runat="server" ID="ddlTipoComprobante" Width="140px" CausesValidation="false"  
                                        MarkFirstMatch="true"></telerik:RadComboBox> 
                                </td> 
                                <td>&nbsp;&nbsp;</td> 
                                <td class="ColumnLabel"> 
                                    <asp:Label runat="server" ID="lblNroComprobante" CssClass="Title" Text="Nro." /> 
                                </td> 
                                <td>&nbsp;</td> 
                                <td> 
                                    <asp:TextBox runat="server" ID="txtNroComprobante" MaxLength="50" CssClass="TextBoxMini" SkinID="None"></asp:TextBox> 
                                </td> 
                            </tr> 
                        </table> 
                    </li> 
                    <li style="border:0"> 
                        <asp:Label runat="server" ID="lblObservacion" CssClass="Title" Text="Observacion" /><br /> 
                        <asp:TextBox runat="server" ID="txtObservacion" MaxLength="512" SkinID="Observation" TextMode="MultiLine"></asp:TextBox> 
                    </li> 
                    <li style="border:0"></li> 
                    <li style="border:0"></li> 
                </ul> 
            </div> 
        </asp:Panel> 
    </div>   
    <br /> 
    <UC:FormFooter runat="server" ID="ucFormFooter" /> 
     
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">  
        <Windows> 
            <telerik:RadWindow ID="RadWindow1" runat="server" Title="Nuevo Inversor" Height="400px" Behaviors="Close,Move" 
                Width="400px" Left="150px" Top="250px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" OnClientClose="ClientClose" /> 
        </Windows> 
    </telerik:RadWindowManager> 
     
    <telerik:RadAjaxManager id="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="ucFormFooter$btnAceptar"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="ddlFormaDePago"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ddlFormaDePago"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlCheque"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="ddlCuota"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="txtImporteDolares"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="txtImportePesos"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="txtImporteDolares"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="txtImportePesos"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="txtImportePesos"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="txtImporteDolares"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="ddlSubTipoMovimiento"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="ddlSubTipoMovimiento"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="txtConcepto"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting>           
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">  
                <UpdatedControls>  
                       <telerik:AjaxUpdatedControl ControlID="ddlInversor" />  
                </UpdatedControls>  
            </telerik:AjaxSetting>  
            <%--<telerik:AjaxSetting AjaxControlID="lnkAgregarInv"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
             <telerik:AjaxSetting AjaxControlID="lnkCancelInv"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="lnkCancelInv2"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="pnlInfo" LoadingPanelID="AjaxLoadingPanel"></telerik:AjaxUpdatedControl> 
                    <telerik:AjaxUpdatedControl ControlID="pnlMsj"></telerik:AjaxUpdatedControl> 
                </UpdatedControls> 
            </telerik:AjaxSetting>--%> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadAjaxLoadingPanel ID="AjaxLoadingPanel" runat="server" Height="55px" Width="54px" Transparency="50"> 
        <br /><br /><br /><br /><br /><br /> 
        <asp:Image ID="imgLoading" runat="server" AlternateText="Loading..." SkinID="FormLoading"></asp:Image> 
    </telerik:RadAjaxLoadingPanel> 
     
    <asp:ValidationSummary ID="valSumPage" runat="server" SkinID="valSumDeEdicion" HeaderText="Han ocurrido los siguientes errores:" 
        EnableClientScript="true" ShowMessageBox="false" ShowSummary="false" /> 
    <asp:CustomValidator ID="valCustom" runat="server" Display="None" OnServerValidate="ServerValidate"></asp:CustomValidator>   
</asp:Content> 
 
 

and this id the popup code's

<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Nuevo Inversor</title> 
    <script type="text/javascript" src="../js/Windows.js"></script> 
</head> 
<body> 
    <form id="frmNuevoInversor" runat="server"> 
        <asp:ScriptManager ID="mainScriptManager" runat="Server"> 
        </asp:ScriptManager> 
         
        <div> 
            <div class="listaItems" style="width:150px; float:left; margin-left:10px"> 
                <ul> 
                    <li> 
                        <asp:Label runat="server" ID="lblNombre" CssClass="Title" Text="Nombre" /><br /> 
                        <asp:TextBox runat="server" ID="txtInvNombre" MaxLength="128" CssClass="TextBoxSmall" SkinID="None" ValidationGroup="NuevoInv"></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="rqvNombre" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="txtInvNombre" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                    </li> 
                    <li> 
                        <asp:Label runat="server" ID="lblSexo" CssClass="Title" Text="Sexo" /><br /> 
                        <telerik:RadComboBox runat="server" ID="ddlInvSexo" Width="160px" MarkFirstMatch="true" ValidationGroup="NuevoInv"> 
                            <Items> 
                                <telerik:RadComboBoxItem Text="Femenino" Value="F" /> 
                                <telerik:RadComboBoxItem Text="Masculino" Value="M" Selected="true" /> 
                            </Items> 
                        </telerik:RadComboBox> 
                    </li>                            
                    <li style="border:0"> 
                        <asp:Label runat="server" ID="lblDoc" CssClass="Title" Text="Tipo Documento" /><br /> 
                        <telerik:RadComboBox runat="server" ID="ddlInvTipoDocumento" Width="100px" MarkFirstMatch="true" ValidationGroup="NuevoInv"></telerik:RadComboBox> 
                    </li> 
                     
                </ul> 
            </div> 
            <div class="listaItems" style="width:150px; float:right"> 
                <ul> 
                    <li> 
                        <asp:Label runat="server" ID="lblApellido" CssClass="Title" Text="Apellido" /><br /> 
                        <asp:TextBox runat="server" ID="txtInvApellido" MaxLength="128" CssClass="TextBoxSmall" SkinID="None" ValidationGroup="NuevoInv"></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="rqvApellido" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="txtInvApellido" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                    </li> 
                    <li> 
                        <asp:Label runat="server" ID="lblInvPorcentual" CssClass="Title" Text="Porcentual %" /><br /> 
                        <telerik:RadNumericTextBox ID="txtInvPorcentual" runat="server" InvalidStyleDuration="100" 
                            ShowSpinButtons="True" Type="Percent" width="100px"> 
                             <NumberFormat DecimalDigits="2" DecimalSeparator="." GroupSizes="3" GroupSeparator=" " /> 
                        </telerik:RadNumericTextBox> 
                        <asp:RequiredFieldValidator ID="rqvPorcentual" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="txtInvPorcentual" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                    </li> 
                    <li style="border:0"> 
                        <asp:Label runat="server" ID="Label1" CssClass="Title" Text="Nro. Documento" /><br /> 
                        <UC:CustomTextBox runat="server" ID="txtInvNroDocumento" CssClass="TextBoxSmall" SkinID="None"  
                            CharacterExpression="[\d]" ValidationExpression="^\d+$" MaxLength="20"></UC:CustomTextBox> 
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="obligatorio" 
                            Display="Dynamic" ControlToValidate="txtInvNroDocumento" ValidationGroup="NuevoInv"></asp:RequiredFieldValidator> 
                    </li> 
                </ul> 
            </div>   
             
        </div> 
        <br /> 
        <div align="center" style="width:380px"> 
            <asp:ImageButton runat="server" ID="lnkAgregarInv" AlternateText="Aceptar"  
                OnClick="AgregarInversor" ValidationGroup="NuevoInv" ImageAlign="AbsMiddle" ImageUrl="~/Media/Images/Global/Accept.jpg" /> 
         
            <br /><br /> 
            <asp:Panel runat="server" ID="pnlMsj"> 
                <asp:Label runat="server" ID="lblMessage" ForeColor="Red"></asp:Label> 
            </asp:Panel> 
            <%--<asp:LinkButton runat="server" id="lnkCancelInv2" Text="Cancelar" OnClick="CancelarInversor" CausesValidation="false"></asp:LinkButton>--%> 
        </div> 
    </form> 
</body> 
</html> 
 


in the code behind i do this on button function:
Response.Write("<script type='text/javascript'>CloseRadWindow();</script>");

this is the .js
function GetRadWindow() 
{ 
    var oWindow = null; 
    if (window.radWindow) oWindow = window.radWindow; 
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; 
    else if (window.parent.frameElement.radWindow) oWindow = window.parent.frameElement.radWindow; 
    //alert(oWindow); 
    return oWindow; 
}  
 
function CloseRadWindow() 
{ 
    GetRadWindow().Close(); 
} 


what i'm doing wrong?

thanks










Mal
Top achievements
Rank 1
 answered on 17 Jun 2009
2 answers
201 views
Is there any event can be triggered immediately when user click on the DateView(The calendar) and TimeView(The clock)?
I mean the event that will be run after the user click on it, not after select the date or time. Thank You.
Jeff Tang
Top achievements
Rank 1
 answered on 17 Jun 2009
1 answer
117 views
Hi, I don't understand the purpose of the preview mode. I had thought that if I were zoomed in and then went to preview mode, it would show me the display at 100%, without effecting my current zoom setting. All it ever really seems to do is disable the editor controls and remove table borders if there are any tables, and show everything else exactly the same. Am I missing something?
Thanks!
Tervel
Telerik team
 answered on 17 Jun 2009
2 answers
150 views
Hi

how should I go about openning automatically the choose file dialogbox when the use click the input file box. so that the use will not be able to type in directly the file name and the directy to pick the file from.


Thanks.

best regards
Cherif 
Atanas Korchev
Telerik team
 answered on 17 Jun 2009
2 answers
261 views
Hello,

i'm using jqTransform:

http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/

on my page but during form transformation it tries to transform RadEditor textarea too. My plan is to modify jqTransform javascript file to skip textarea which has set some certain CSS class (for example .nojqTransform). Is there any way to set css class for RadEditor text area?

Thanks
GrZeCh
Top achievements
Rank 2
 answered on 17 Jun 2009
2 answers
398 views
Hello

I'm using rad q3 2008

I would like to implement what i think must be a fairly common scenario but i can't find anything on how to do it in the documentation.

I have a datagrid and one of the columns contains a hyperlink. When the user hovers over the hyperlink I would like a tooltip to be displayed.

The tooltip inside the radgrid row is created dynamically so I don't know how to add it to the target controls collection of the tool tip manager

I tried this but to no avail in the item data bound event of the grid

 

Dim tip As RadToolTip = e.Item.FindControl("tipStartAddress")

 

RadToolTipManager1.TargetControls.Add(tip.ClientID,

True)

Furthermore once i have got this bit to work I would like to have the tooltip load its content on demand. I really don't know how i would trigger an OnAjaxUpdate event for a tooltip and add controls to it on the server.

Also, the documenation only talks about the radtooltip with an updatepanel. I use radajax now. I presume you can use a tooltip with rad ajax

many thanks in advance

 

Tervel
Telerik team
 answered on 17 Jun 2009
1 answer
105 views
I've noticed a bug in Firefox when setting the AutoResizeHeight property of the RadEditor to "true". After the editor is re-sizes, the cursor repositions to the top of the editor - so, if you were to continue typing, your text would begin appear at the beginning of the editor. This is reproducible on the AutoResizeHeight demo here: http://demos.telerik.com/aspnet-ajax/editor/examples/autoresizeheight/defaultcs.aspx

Place your cursor after the last "9.0+" (in the Linux column of the Netscape row) and hit enter. Begin typing and your text will appear at the top of the editor.

I've been able to reproduce this in Firefox 3.0.9 & 3.0.11.
Tervel
Telerik team
 answered on 17 Jun 2009
1 answer
153 views
Hi all,

I have the following XML file as a data-source for the RadTreeView:

<?xml version="1.0" encoding="UTF-8"?> 
 
<codeBook xmlns:xsp="http://apache.org/xsp" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:xsp-session="http://apache.org/xsp/session/2.0" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0" version="1.2.2" ID="ZA4350"> 
<docDscr> 
<citation> 
<titlStmt> 
<titl> 
Title text goes here
</titl> 
</titlStmt> 
</citation> 
</docDscr> 
</codeBook> 
 

I load it using the following statement:

RadTreeView rt = new RadTreeView(); 
rt.LoadContentFile("file.xml"); 
 

I am getting the following error:

<codeBook xmlns=''> was not expected.


Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: <codeBook xmlns=''> was not expected.


I have read similar posts in these forums but don't see an answer to my problem.  I can't alter the data to add an xmlns attribute to each element.

Any ideas?

Ed Graham




Atanas Korchev
Telerik team
 answered on 17 Jun 2009
1 answer
80 views
2009.1.527.35   Even though HTML shows that ShowRowHeaders is false, RadCalendar still displays the week column.


    Private Sub CreateRadDatePicker(ByVal strLabel As String, ByVal myDateID As String, ByVal myDateValue As String)
        Dim cntrl As New RadDatePicker
        With cntrl
            .Attributes("runat") = "server"
            .Attributes("ShowRowHeaders") = "false"
            .Attributes("UseColumnHeadersAsSelectors") = "false"
            .Attributes("UseRowHeadersAsSelectors") = "false"
            .ID = myDateID
            .EnableViewState = True
        End With

        Me.myPlaceHolder.Controls.Add(cntrl)
    End Sub
Princy
Top achievements
Rank 2
 answered on 17 Jun 2009
3 answers
800 views
Is it possible to show the column headers when the grid is not connected to a datasource?  I would like to show in my wireframe were the grid will reside, but it shrinks when there is no data.


Princy
Top achievements
Rank 2
 answered on 17 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?