Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
72 views
Hello,
I Opened a RadWindow1 in Splitter which is height 500px.
I want to open another Radwindow2(need to show big window) from RadWindow1.
But new Radwindow2 opens within the RadWindow1.
I want to open Radwindow2 big just like a window.open method
How can i do that.?
Marin Bratanov
Telerik team
 answered on 15 Jan 2015
2 answers
749 views
using telerik v.2014.3.1024.45 with ASP.NET 4.5
How can i use the boostrap glyphicons for my edit / insert / delete buttons?
so far i have used this

                    <telerik:TreeListEditCommandColumn UniqueName="InsertCommandColumn" ButtonType="ImageButton" ShowAddButton="true" ShowEditButton="true" HeaderStyle-Width="50px" ItemStyle-HorizontalAlign="Center">

but i cannot find a simple way to change the icons.

let me know please
thanks

ck
Top achievements
Rank 1
 answered on 15 Jan 2015
3 answers
89 views
I'm just starting to use grouping as it solves a big problem we have, and so far the display for rendering the data is great.

The way we add appointments is to open our own in house booking form, via javascript.

Now with the scheduler showing several locations, when we click in a column (for horizontal grouping) or a row for vertical grouping) how do I get a handle on the resource ID?

Andy
Boyan Dimitrov
Telerik team
 answered on 15 Jan 2015
5 answers
233 views
Hi,

I use the File Explorer with a large document library.

Upon starting the web application I get a javascript error: "NonExistingFolder". When I close the error everything works as it should but i cant seem to get rid of this error message. Has anyone encountered this before? Also. This only happens on the server and not on my local machine.

Please assist. 

Vessy
Telerik team
 answered on 15 Jan 2015
2 answers
232 views
I have installed Telerik Controls on MOSS site as per MOSS_WhitePaper. Following error message is logged in MOSS Log files. Please let me know how to fix this?

SafeControl load exception:Telerik.Web.UI, Version=2007.3.1323.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4 Exception: Could not load file or assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Thanks
Shujaat
Top achievements
Rank 1
 answered on 15 Jan 2015
2 answers
74 views

I have a search form I'd like to save the user's text when they come back to the form.

I would think RadTextBox would be one of the built-in controls for the persistence framework.

But I don't see it on this page:  http://www.telerik.com/help/aspnet-ajax/persistence-framework-supported-controls.html 

I can very easily add it as a custom setting but why not built in?


Bryan Patrick
Top achievements
Rank 1
 answered on 15 Jan 2015
8 answers
255 views
Hi,

Your new control is great ;)
I'd like to load the dropdown's items dynamically when the user types letters. So each time the user types a letter, a callback would be made to load the dropdown's content.
Is there a built-in feature for that? otherwise, what would be the easiest way to achieve that?
Thanks
Lee Nessling
Top achievements
Rank 1
 answered on 14 Jan 2015
3 answers
119 views
Hello,

I am testing the Grid and I cannot find an option to get rid of the blue border that is displayed once you click anywhere inside the control.

Many thanks,
Tobias
Pavlina
Telerik team
 answered on 14 Jan 2015
1 answer
154 views
Hi,

I have a user control with a combox on it. There is some javascript defined on the user control.

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RSSA.ascx.cs"
Inherits="Auto.RSSA" %>

<script type="text/javascript">
 
      function Function1() {
}
</script>
<div class="test">
<telerik:RadComboBox ID="SSSL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="SSSL_SelectedIndexChanged" OnClientSelectedIndexChanged="Function1" Width="300px" Filter="Contains">
</telerik:RadComboBox>
</div>


A page has the usercontrol with in updatepanel. the usercontrol is not visible on pageload. the control is made visible after a postback. the radcombox but the javascript is not being loaded. Function1 is undefined.

Any help is appreciated.

Thanks,
TJ
Robert Helm
Top achievements
Rank 1
 answered on 14 Jan 2015
2 answers
240 views
I have the following scenario
- a group of filter , and a Button "Consultar". This button fill the radgrid. (that's working Ok).
- When I try to export to excel the  get "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"
This error starts today when I change from free library to the  new library with license.

This is my code:

ASPX:
    <%@ MasterType VirtualPath="~/UI/EstudiosElectricos.Master" %>
        <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"></asp:Content>
        <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
            <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="btnCalcular">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="lblTotal" />
                            <telerik:AjaxUpdatedControl ControlID="pnlValores" LoadingPanelID="LoadingPanel" />
                            <telerik:AjaxUpdatedControl ControlID="tablaFecha" LoadingPanelID="LoadingPanel" /> </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="btnExportToXLS">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="LoadingPanel" />
                            <telerik:AjaxUpdatedControl ControlID="btnExportarXLS" LoadingPanelID="LoadingPanel" />
                            <telerik:AjaxUpdatedControl ControlID="Listado" LoadingPanelID="LoadingPanel" /> </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="grillaListado">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="grillaListado" LoadingPanelID="LoadingPanel" /> </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel1" LoadingPanelID="LoadingPanel" />
                            <telerik:AjaxUpdatedControl ControlID="btnExportToXLS" UpdatePanelRenderMode="Inline" LoadingPanelID="LoadingPanel" />
                            <telerik:AjaxUpdatedControl ControlID="Listado" UpdatePanelRenderMode="Inline" LoadingPanelID="LoadingPanel" />
                            <telerik:AjaxUpdatedControl ControlID="grillaListado" LoadingPanelID="LoadingPanel" /> </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManagerProxy>
            <div id="Div1">
                <asp:Panel ID="Panel2" GroupingText="Filtros" runat="server" CssClass="pnlFiltroGrande">
                    <asp:Table runat="server" CssClass="Tabla" ID="tablaFecha">
                        <asp:TableHeaderRow>
                            <asp:TableCell CssClass="columna1">Año Desde</asp:TableCell>
                            <asp:TableCell CssClass="columna1">Año Hasta</asp:TableCell>
                            <asp:TableCell CssClass="columna1">Tipo de Proyecto</asp:TableCell>
                            <asp:TableCell CssClass="columna1">País</asp:TableCell>
                            <asp:TableCell CssClass="columna3">
                                <telerik:RadButton ID="btnLimpiar" TabIndex="5" runat="server" AutoPostBack="true" Text="Limpiar" ToolTip="Limpiar los filtros y resultados" OnClick="btnLimpiar_Click">
                                    <Icon PrimaryIconUrl="~/UI/Imagenes/limpiar.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px" PrimaryIconTop="3px" PrimaryIconLeft="5px" /> </telerik:RadButton>
                            </asp:TableCell>
                        </asp:TableHeaderRow>
                        <asp:TableRow>
                            <asp:TableCell CssClass="columna1">
                                <telerik:RadNumericTextBox ID="ntxtAnioDesde" TabIndex="0" runat="server" NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" Type="Number" MaxLength="4" MinValue="2000" MaxValue="2200"></telerik:RadNumericTextBox>
                                <label class="validador">*</label>
                                <asp:RequiredFieldValidator ID="fvAnioDesde" runat="server" ControlToValidate="ntxtAnioDesde" ValidationGroup="filtro"></asp:RequiredFieldValidator>
                            </asp:TableCell>
                            <asp:TableCell CssClass="columna1">
                                <telerik:RadNumericTextBox ID="ntxtAnioHasta" TabIndex="1" runat="server" NumberFormat-DecimalDigits="0" NumberFormat-GroupSeparator="" MaxLength="4" Type="Number" MinValue="2000" MaxValue="2200"></telerik:RadNumericTextBox>
                            </asp:TableCell>
                            <asp:TableCell CssClass="columna1">
                                <telerik:RadComboBox ID="cbTipoProyecto" runat="server" TabIndex="2">
                                    <Items>
                                        <telerik:RadComboBoxItem Text="Ensayos" Value="1" />
                                        <telerik:RadComboBoxItem Text="Estudios" Value="2" />
                                        <telerik:RadComboBoxItem Text="Capacitación" Value="3" />
                                        <telerik:RadComboBoxItem Text="Otros" Value="4" /> </Items>
                                </telerik:RadComboBox>
                            </asp:TableCell>
                            <asp:TableCell CssClass="columna1">
                                <telerik:RadComboBox ID="cbPaises" runat="server" TabIndex="4" Width="80%"> </telerik:RadComboBox>
                            </asp:TableCell>
                            <asp:TableCell CssClass="columna3">
                                <telerik:RadButton ID="btnBuscar" TabIndex="4" runat="server" AutoPostBack="true" Text="Buscar" ToolTip="Buscar antecedentes entre años" OnClick="btnCalcular_Click">
                                    <Icon PrimaryIconUrl="~/UI/Imagenes/buscar.png" PrimaryIconWidth="21px" PrimaryIconHeight="25px" PrimaryIconTop="3px" PrimaryIconLeft="5px" /> </telerik:RadButton>
                            </asp:TableCell>
                        </asp:TableRow>
                    </asp:Table>
                </asp:Panel>
                <asp:Panel runat="server" GroupingText="Antecedentes" Style="display: none" ID="pnlValores" ScrollBars="Auto" CssClass="pnlValores" Height="85%">
                    <asp:ImageButton ID="btnImprimir" OnClientClick="Imprimir()" runat="server" ToolTip="Imprimir Pantalla" ImageUrl="~/UI/Imagenes/impresora.png"></asp:ImageButton>
                    <asp:ImageButton ID="btnExportToXLS" runat="server" ToolTip="Exportar a Excel" ImageUrl="~/UI/Imagenes/iconoxls.png" OnClick="btnExportToXLS_Click"></asp:ImageButton>
                    <telerik:RadGrid ID="grillaListado" runat="server" AllowPaging="false" AllowSorting="true" AutoGenerateColumns="false" EnableLinqExpressions="false"   >
                        <MasterTableView Caption="Antecedentes" UseAllDataFields="true">
                            <Columns>
                                <telerik:GridBoundColumn DataField="numeroOC" HeaderText="Número OC" ItemStyle-Width="10%"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="empresa" HeaderText="Empresa OC" ItemStyle-Width="15%"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="codigoEE" HeaderText="Codigo EE" ItemStyle-Width="8%"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="fecha" HeaderText="Fecha OC" DataType="System.DateTime" DataFormatString="{0:dd/MM/yy}" ItemStyle-Width="8%"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="titulo" HeaderText="Título Proyecto" ItemStyle-Width="39%"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="pais" HeaderText="País Proyecto" ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="moneda" HeaderText="Moneda" ItemStyle-Width="3%" ItemStyle-HorizontalAlign="Center"></telerik:GridBoundColumn>
                                <telerik:GridBoundColumn DataField="total" HeaderText="Total" ItemStyle-Width="8%" ItemStyle-HorizontalAlign="Right"></telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </asp:Panel>
            </div>
            <telerik:RadCodeBlock ID="indexBlockCode" runat="server">
                <script type="text/javascript">
                    loadCSS("/UI/Estilos/ControlesUsuarios/listados.css");

                    function Imprimir() {
                        var radGrid = $find('<%= grillaListado.ClientID %>');
                        radGrid.MasterTableView.get_element().style.fontSize = "10px";
                        var anioDesde = $find('<%= ntxtAnioDesde.ClientID %>').get_value();
                        var anioHasta = $find('<%= ntxtAnioHasta.ClientID %>').get_value();
                        var tproyecto = $find('<%= cbTipoProyecto.ClientID %>').get_selectedItem().get_text();
                        var pais = $find('<%= cbPaises.ClientID %>').get_selectedItem().get_text();
                        var previewWnd = window.open('about:blank', 'Antecedentes', '', false);
                        var styleStr = "<html><head><title>Antecedentes</title></head>";
                        var htmlcontent = styleStr +"<body> <label style='font-size:10px'>Año desde:" + anioDesde + " - hasta " + anioHasta + " Tipo de Proyecto: " + tproyecto + " País: " + pais + "</label><br/>" + radGrid.get_element().outerHTML + "</body></html>";
                        previewWnd.document.open();
                        previewWnd.document.write(htmlcontent);
                        previewWnd.document.close();
                        previewWnd.print();
                        previewWnd.close();
                    }
                </script>
            </telerik:RadCodeBlock>
        </asp:Content>

C#:
      protected void Page_Load(object sender, EventArgs e)
        {
          
            Inicializar(); if (!Page.IsPostBack)
            { Fcombos.CargaPaises(cbPaises); cbPaises.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("-- Todos los países ---", "0"));
              ntxtAnioHasta.Value = DateTime.Now.Year; ntxtAnioDesde.Value = DateTime.Now.AddYears(-1).Year; 
            }
            
        }
        private void Inicializar()
        { _notificacion = (((EstudiosElectricos)this.Master).ObtenerControlNotificacion()); }
        protected void btnCalcular_Click(object sender, EventArgs e)
        {
            DateTime comenzo = DateTime.Now;
            LlenaGrilla();
            ((EstudiosElectricos)this.Master).tiempoTotal = String.Format("{0:0.00}", (DateTime.Now.Subtract(comenzo)).TotalSeconds) + " Segs";
        }
        private void LlenaGrilla()
        {
            Page.Validate("filtro"); if (!Page.IsValid) { grillaListado.DataSource = null; return; }  pnlValores.Style.Add("display", "block"); List<eeConsultas.eeAntecedentes> lValores = eeConsultas.eeAntecedentes.BuscarProyectos((int)ntxtAnioDesde.Value, (int)ntxtAnioHasta.Value, (short)Convert.ToInt16(cbTipoProyecto.SelectedValue), (short)Convert.ToInt16(cbPaises.SelectedValue)); grillaListado.DataSource = lValores; grillaListado.DataBind();
        }
        protected void btnLimpiar_Click(object sender, EventArgs e)
        { cbPaises.Items.Clear(); Fcombos.CargaPaises(cbPaises); pnlValores.Style.Add("display", "none"); btnExportToXLS.Style.Add("display", "none"); grillaListado.DataSource = null; }
        protected void btnExportToXLS_Click(object sender, ImageClickEventArgs e)
        {
            try
            {

                grillaListado.MasterTableView.Caption = "    Antecedentes  " + Environment.NewLine + "Año Desde - Hasta: " + ntxtAnioDesde.Value.ToString() + "-" +
                      ntxtAnioHasta.Value.ToString() + " Tipo de Proyecto: " + cbTipoProyecto.Text + "  País: " + cbPaises.Text;
                grillaListado.ExportSettings.Excel.Format = GridExcelExportFormat.Biff; grillaListado.ExportSettings.IgnorePaging = true; 
                grillaListado.ExportSettings.ExportOnlyData = true; grillaListado.ExportSettings.OpenInNewWindow = true;
                grillaListado.ExportSettings.FileName = "Antecedentes"; 
                grillaListado.MasterTableView.ExportToExcel();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }


Can you help me?







Bill Wolff
Top achievements
Rank 1
 answered on 14 Jan 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?