Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
136 views
Hi All,
           I have two levels of hireachy  Grid whose data iam trying to ExportToExcel . Iam using the code as:

 

this.radMainGrid.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML; 
in order to apply the styles to the Grid.
for the above code line it is throwing me error as  Object Referecnce not Set to Instance of an object.
Here we are using Trial version of the Grid.

 


 this.radMainGrid.ExportSettings.OpenInNewWindow = true;  
            this.radMainGrid.ExportSettings.ExportOnlyData = true;  
            this.radMainGrid.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML;  
            this.radMainGrid.MasterTableView.ExportToExcel(); 

Can any one pls let me why it is throwing me this error.

Pls let me know its very urgent.

Regards,
Asra.
Daniel
Telerik team
 answered on 17 Jun 2009
1 answer
138 views
Hi,

I want to be able to set a different style for my appointments and I have read the documentation to find out how to do this. My issue is that I do not want to set the style based on any of the "base" properties of my data source.

I have created my own object and have included the necessary properties for it to be considered an "appointment" and bound the datasource of the scheduler to a list of these objects.

The example I am following shows the overriding of the OnAppointmentCreated handler and then switching on the "subject" in order to set the CssClass property of the appointment object. So my question is - can I use a different property that I have in my custom "appointment" object to switch on? For example, I have a Rating property in my class and would like to check this property in order to set the CssClass property. Can this be done?

Any help is greatly appreciated,
Dan
Peter
Telerik team
 answered on 17 Jun 2009
2 answers
166 views
Hello,

I've implemented a slider control that is populated at runtime with a dynamic list of items. It works fine from a code point of view but the UI falls over in some cases when the number items exceeds the width parameter set for the slider. Needing to set this width parameter is essentially the cause of the problem. I want the width to be automatic dependent on the number of items loaded. Is this possible?

My code:

<telerik:RadSlider ID="sldrSurvey" runat="server" /> 

private void PopulateSlider() 
    { 
        sldrSurvey.ItemType = SliderItemType.Item; 
        sldrSurvey.Height = Unit.Pixel(40); 
        sldrSurvey.Width = Unit.Pixel(300); // I don't want to set this 
        sldrSurvey.Skin = "Vista"
 
        HashList<intstring> list = (HashList<intstring>)ValueList; 
        if (list.Count != 0) 
        { 
            foreach (KeyValuePair<intstring> item in list) 
            { 
                 RadSliderItem sliderItem = new RadSliderItem(); 
                 sliderItem.Text = item.Value; 
                 sliderItem.Value = item.Key.ToString(); 
                 sldrSurvey.Items.Add(sliderItem); 
            } 
        } 
 
        sldrSurvey.DataBind(); 
    } 
Michael Dunbar
Top achievements
Rank 2
 answered on 17 Jun 2009
13 answers
492 views
Is there any telerik control like Listbox available for a web page.
Ivo
Telerik team
 answered on 17 Jun 2009
1 answer
181 views
Code:

Aspx:

<telerik:GridTemplateColumn UniqueName="Temp" HeaderText="Title" Visible="false">
                                    <ItemTemplate>
                                    ....
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <asp:FileUpload ID="FileUpload1" runat="server" />
                                    </EditItemTemplate>
</telerik:GridTemplateColumn>

When Click Insert:

C#:
protected void RadGrid1_InsertCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
    {
        GridEditFormInsertItem InsertItem = (GridEditFormInsertItem)e.Item;
        FileUpload strvanban = (FileUpload)InsertItem ["Temp"].FindControl("FileUpload1");
        string strfilename = strvanban.FileName;
        string strpath = "/Uploadfiles/";
        strfilename.SaveAs(Server.MapPath(".") + strpath + strfilename );
..........
    }

Get values = "". Help me get Value strfilename

Thanks
Princy
Top achievements
Rank 2
 answered on 17 Jun 2009
1 answer
139 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"
                            <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 /> 
                        <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
195 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
113 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
146 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
254 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?