Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
173 views
I have the fallowing problem :

Added RestrictionZoneID and MinimizeZoneID for RadWindowManager in 2 div's

When i run the code and open a window and then minimize it , if i resize the browser the minimzed window change location or disappers completly.

I manage to pin point the problem with chrome dev tools ....

the problem is the style of the wrapper div inside the minimize zone ... is doing the calculations wrong (position , left and top).

please check the code bellow:

Default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="multiple_windows_from_code_behind_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<body>
    <form id="form1" runat="server">
    
    <asp:ScriptManager ID="Scriptmanager1" runat="server" />
    <telerik:RadWindowManager runat="server" ID="RadWindowManager1"
    RestrictionZoneID="main"
    MinimizeZoneID ="bar" DestroyOnClose="true">
    </telerik:RadWindowManager>
 
<asp:UpdatePanel ID="Updatepanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Button ID="Button1" Text="open a new RadWindow from the server" OnClick="Button1_Click" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>
<script type="text/javascript">
    function opeNewRadWindow(url)    {
        owin = radopen(url, null);
    }
</script>
    <div id="main" style="border: 1px solid green; width:auto; height:600px;"></div>
    <div id="bar" style="border: 1px solid red; width:auto; height:40px;"></div>
    </form>
</body>
</html>

Default.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class multiple_windows_from_code_behind_Default : System.Web.UI.Page
{
 
    protected void Button1_Click(object sender, EventArgs e)
    {
        string url = "someurl.aspx?pageid=999"; //built the URL here
        ScriptManager.RegisterStartupScript(this.Page, this.Page.GetType(), "testing", "opeNewRadWindow" + "(\"" + url + "\");", true);
    }
 
}




Kalin
Telerik team
 answered on 26 Oct 2018
2 answers
243 views

When adding the RadDropDownList "ddlManifiestoVehiculo" the RadAjaxManager stopped working, what is the reason it does not work?

 

<telerik:RadAjaxManager ID="ramServicioVehiculo" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ddlManifiesto">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ddlEscotilla" />
                    <telerik:AjaxUpdatedControl ControlID="rgCargaManifestada" />
                    <telerik:AjaxUpdatedControl ControlID="ddlManifiestoVehiculo" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlEscotilla">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ddlManifiesto" />
                    <telerik:AjaxUpdatedControl ControlID="rgCargaManifestada" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rgCargaManifestada">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgCargaManifestada" LoadingPanelID="radpControlVehiculo" />
                    <telerik:AjaxUpdatedControl ControlID="rgDetalleChequeo" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rgDetalleChequeo">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgDetalleChequeo" LoadingPanelID="radpControlDetalleVehiculo" />
                    <telerik:AjaxUpdatedControl ControlID="lblMensaje" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="radpControlVehiculo" runat="server"></telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxLoadingPanel ID="radpControlDetalleVehiculo" runat="server"></telerik:RadAjaxLoadingPanel>
    <telerik:RadLabel ID="lblIdManifiesto" runat="server" Text="Manifiesto:"></telerik:RadLabel>
    <telerik:RadDropDownList ID="ddlManifiesto" runat="server" DataSourceID="sdsManifiesto"
        DataTextField="ManNave" DataValueField="man_id_manifiesto" DefaultMessage="Seleccione el manifiesto" ToolTip="Manifiestos" AutoPostBack="True" Width="220px">
    </telerik:RadDropDownList>
    <asp:SqlDataSource ID="sdsManifiesto" runat="server" ConnectionString='<%$ ConnectionStrings:csOp_SPC %>' SelectCommand="SELECT CONCAT(man_id_manifiesto, ' - ', man_nom_nave) AS ManNave, man_id_manifiesto FROM op_manifiesto WITH (NOLOCK) ORDER BY man_id_manifiesto DESC"></asp:SqlDataSource>
    <br />
    <telerik:RadLabel ID="lblEscotilla" runat="server" Text="Escotilla:"></telerik:RadLabel>
    <telerik:RadDropDownList ID="ddlEscotilla" runat="server" DataSourceID="sdsEscotilla"
        DataTextField="DsEscotilla" DataValueField="IxEscotilla" DefaultMessage="Seleccione la escotilla" ToolTip="Escotillas" AutoPostBack="True" Width="220px">
    </telerik:RadDropDownList>
    <asp:SqlDataSource ID="sdsEscotilla" runat="server" ConnectionString='<%$ ConnectionStrings:csOp_SPC %>' SelectCommand="SELECT TOP (SELECT arr_escotillas FROM ss_arribo WITH (NOLOCK) WHERE arr_manifiesto = @IdManifiesto) IxEscotilla, DsEscotilla FROM Escotilla WITH (NOLOCK)">
        <SelectParameters>
            <asp:ControlParameter ControlID="ddlManifiesto" PropertyName="SelectedValue" Name="IdManifiesto"></asp:ControlParameter>
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <h6>Control del Chequeo</h6>
    <telerik:RadTabStrip runat="server" ID="rtsCV" MultiPageID="rmpCV" SelectedIndex="0">
        <Tabs>
            <telerik:RadTab PageViewID="rpvCargaManifestada" Text="Carga Manifestada"></telerik:RadTab>
            <telerik:RadTab PageViewID="rpvDetalleChequeo" Text="Detalle Chequeo"></telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage runat="server" ID="rmpCV" SelectedIndex="0">
        <telerik:RadPageView runat="server" ID="rpvCargaManifestada">
            <telerik:RadGrid ID="rgCargaManifestada" runat="server" DataSourceID="sdsCargaManifestada" OnItemCommand="rgCargaManifestada_ItemCommand"
                AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" Culture="es-ES" CssClass="RadGrid_ModernBrowsers"
                FilterType="HeaderContext" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" PagerStyle-AlwaysVisible="true"
                EnableLinqExpressions="False" ShowGroupPanel="True">
 
                <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
 
                <ExportSettings FileName="Carga Manifestada" ExportOnlyData="True" HideStructureColumns="True" IgnorePaging="True" OpenInNewWindow="True">
                    <Excel Format="Xlsx" FileExtension="xlsx"></Excel>
                </ExportSettings>
 
                <ClientSettings AllowDragToGroup="True">
                    <Selecting AllowRowSelect="True"></Selecting>
                    <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" AllowResizeToFit="true" />
                </ClientSettings>
 
                <MasterTableView DataKeyNames="IxMDC" DataSourceID="sdsCargaManifestada" AutoGenerateColumns="False" CommandItemDisplay="Top">
                    <CommandItemSettings ShowAddNewRecordButton="false"></CommandItemSettings>
                    <Columns>
                        <telerik:GridBoundColumn DataField="IxMDC" Display="false" ReadOnly="True" HeaderText="Indice MDC" SortExpression="IxMDC" UniqueName="IxMDC" DataType="System.Int32" FilterControlAltText="Filter IxMDC column"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="tcar_descripcion" HeaderText="Carga" SortExpression="tcar_descripcion" UniqueName="tcar_descripcion" FilterControlAltText="Filter tcar_descripcion column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="DsCliente" HeaderText="Cliente" SortExpression="DsCliente" UniqueName="DsCliente" FilterControlAltText="Filter DsCliente column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CantidadManifestada" HeaderText="Cantidad Manifestada" SortExpression="CantidadManifestada" UniqueName="CantidadManifestada" DataType="System.Int32" FilterControlAltText="Filter CantidadManifestada column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CantidadChequeada" HeaderText="Cantidad Chequeada" SortExpression="CantidadChequeada" UniqueName="CantidadChequeada" DataType="System.Int32" FilterControlAltText="Filter CantidadChequeada column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn HeaderText="Detalle" HeaderStyle-Width="70px" CommandName="detalle" Text="Ver detalle" UniqueName="Detalle" ButtonType="ImageButton" ImageUrl="/Shared/Images/detalle.png">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <HeaderContextMenu RenderMode="Auto"></HeaderContextMenu>
            </telerik:RadGrid>
            <asp:SqlDataSource runat="server" ID="sdsCargaManifestada" ConnectionString='<%$ ConnectionStrings:csOp_SPC %>' SelectCommand="SELECT ManifiestoDetalleCarga.IxMDC, op_tipocarga.tcar_descripcion, ClienteExactus.DsCliente, ManifiestoDetalleCarga.CantidadManifestada, ManifiestoDetalleCarga.CantidadChequeada FROM ManifiestoDetalleCarga INNER JOIN Escotilla ON ManifiestoDetalleCarga.IxEscotilla = Escotilla.IxEscotilla INNER JOIN ClienteExactus ON ManifiestoDetalleCarga.IdCliente = ClienteExactus.IdCliente COLLATE SQL_Latin1_General_CP1_CI_AS INNER JOIN op_tipocarga ON ManifiestoDetalleCarga.IdTipoCarga = op_tipocarga.tcar_idtipocarga WHERE (ManifiestoDetalleCarga.IdManifiesto = @IdManifiesto) AND (ManifiestoDetalleCarga.IxEscotilla = @IxEscotilla)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="ddlManifiesto" PropertyName="SelectedValue" Name="IdManifiesto"></asp:ControlParameter>
                    <asp:ControlParameter ControlID="ddlEscotilla" PropertyName="SelectedValue" Name="IxEscotilla"></asp:ControlParameter>
                </SelectParameters>
            </asp:SqlDataSource>
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="rpvDetalleChequeo">
            <telerik:RadLabel ID="lblMensaje" runat="server" Visible="false" ForeColor="DarkBlue" Font-Bold="true" Font-Size="11"></telerik:RadLabel>
            <telerik:RadGrid ID="rgDetalleChequeo" runat="server" DataSourceID="sdsDetalleChequeo" OnItemCommand="rgDetalleChequeo_ItemCommand"
                AllowPaging="True" AllowSorting="True" AllowFilteringByColumn="True" Culture="es-ES" CssClass="RadGrid_ModernBrowsers"
                AllowAutomaticUpdates="True" FilterType="HeaderContext" EnableHeaderContextMenu="true" EnableHeaderContextFilterMenu="true" PagerStyle-AlwaysVisible="true"
                EnableLinqExpressions="False" ShowGroupPanel="True">
 
                <GroupingSettings CollapseAllTooltip="Collapse all groups" CaseSensitive="False"></GroupingSettings>
 
                <ExportSettings FileName="Detalle Chequeo" ExportOnlyData="True" HideStructureColumns="True" IgnorePaging="True" OpenInNewWindow="True">
                    <Excel Format="Xlsx" FileExtension="xlsx"></Excel>
                </ExportSettings>
 
                <ClientSettings AllowDragToGroup="True">
                    <Selecting AllowRowSelect="True"></Selecting>
                    <Resizing AllowColumnResize="true" ResizeGridOnColumnResize="false" AllowResizeToFit="true" />
                </ClientSettings>
 
                <MasterTableView DataKeyNames="IxMDCCV" DataSourceID="sdsDetalleChequeo" AutoGenerateColumns="False" CommandItemDisplay="Top" EditMode="Batch">
                    <CommandItemSettings SaveChangesText="Guardar cambios" CancelChangesText="Cancelar cambios" ShowExportToExcelButton="True" ShowAddNewRecordButton="false"></CommandItemSettings>
                    <BatchEditingSettings EditType="Row" />
                    <Columns>
                        <telerik:GridBoundColumn Display="false" DataField="IxMDCCV" ReadOnly="True" HeaderText="Indice MDCCV" SortExpression="IxMDCCV" UniqueName="IxMDCCV" DataType="System.Int32" FilterControlAltText="Filter IxMDCCV column"></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Consecutivo" ReadOnly="true" HeaderText="Consecutivo" SortExpression="Consecutivo" UniqueName="Consecutivo" DataType="System.Int32" FilterControlAltText="Filter Consecutivo column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="FcMDCCV" ReadOnly="true" HeaderText="Fecha" SortExpression="FcMDCCV" UniqueName="FcMDCCV" DataType="System.DateTime" FilterControlAltText="Filter FcMDCCV column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn DataField="IxMV" HeaderText="Número de chasis (VIN)" SortExpression="IxMV" UniqueName="IxMV" DataType="System.Int32" FilterControlAltText="Filter IxMV column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                            <EditItemTemplate>
                                <telerik:RadDropDownList ID="ddlManifiestoVehiculo" runat="server" DataValueField="IxMV" DataTextField="DsMV" DataSourceID="sdsManifiestoVehiculo"></telerik:RadDropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "DsMV")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn DataField="IxChofer" HeaderText="Chofer" SortExpression="IxChofer" UniqueName="IxChofer" DataType="System.Int32" FilterControlAltText="Filter IxChofer column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                            <EditItemTemplate>
                                <telerik:RadDropDownList ID="ddlChofer" runat="server" DataValueField="IxChofer" DataTextField="NumChofer" DataSourceID="sdsChofer"></telerik:RadDropDownList>
                            </EditItemTemplate>
                            <ItemTemplate>
                                <%#DataBinder.Eval(Container.DataItem, "NumChofer")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="Observacion" HeaderText="Observación" SortExpression="Observacion" UniqueName="Observacion" FilterControlAltText="Filter Observacion column" CurrentFilterFunction="Contains">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridButtonColumn ConfirmText="¿Desea eliminar este chequeo?" ConfirmDialogType="Classic" ConfirmTitle="Eliminar" HeaderText="Eliminar" HeaderStyle-Width="70px" CommandName="eliminar" Text="Eliminar" UniqueName="Eliminar" ButtonType="ImageButton" ImageUrl="/Shared/Images/eliminar.png">
                            <HeaderStyle HorizontalAlign="Center" Font-Bold="true" Font-Size="11"></HeaderStyle>
                            <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        </telerik:GridButtonColumn>
                    </Columns>
                </MasterTableView>
                <HeaderContextMenu RenderMode="Auto"></HeaderContextMenu>
            </telerik:RadGrid>
            <asp:SqlDataSource runat="server" ID="sdsDetalleChequeo" ConnectionString='<%$ ConnectionStrings:csOp_SPC %>' SelectCommand="SELECT MDCControlV.IxMDCCV, MDCControlV.Consecutivo, MDCControlV.FcMDCCV, MDCControlV.IxMV, MDCControlV.IxChofer, MDCControlV.Observacion, ManifiestoVehiculo.DsMV, CONCAT(MVChofer.NumeroChofer, ' - ', MVChofer.Nombre) AS NumChofer FROM MDCControlV WITH (NOLOCK) INNER JOIN MVChofer WITH (NOLOCK) ON MDCControlV.IxChofer = MVChofer.IxChofer INNER JOIN ManifiestoVehiculo ON MDCControlV.IxMV = ManifiestoVehiculo.IxMV WHERE (MDCControlV.IxMDC = @IxMDC)" UpdateCommand="UPDATE MDCControlV SET IxMV = @IxMV, IxChofer = @IxChofer, Observacion = @Observacion WHERE (IxMDCCV = @IxMDCCV)">
                <SelectParameters>
                    <asp:Parameter Name="IxMDC"></asp:Parameter>
                </SelectParameters>
                <UpdateParameters>
                    <asp:Parameter Name="IxMV"></asp:Parameter>
                    <asp:Parameter Name="IxChofer"></asp:Parameter>
                    <asp:Parameter Name="Observacion"></asp:Parameter>
                    <asp:Parameter Name="IxMDCCV"></asp:Parameter>
                </UpdateParameters>
            </asp:SqlDataSource>
            <asp:SqlDataSource runat="server" ID="sdsChofer" ConnectionString='<%$ ConnectionStrings:csOp_SPC %>' SelectCommand="SELECT CONCAT(NumeroChofer, ' - ', Nombre) AS NumChofer, IxChofer FROM MVChofer WITH(NOLOCK) ORDER BY NumeroChofer"></asp:SqlDataSource>
            <asp:SqlDataSource runat="server" ID="sdsManifiestoVehiculo" ConnectionString='<%$ ConnectionStrings:csOp_SPC %>' SelectCommand="SELECT IxMV, DsMV FROM ManifiestoVehiculo WITH (NOLOCK) WHERE (IdManifiesto = @IdManifiesto) AND (IxMV NOT IN (SELECT MDCControlV.IxMV FROM MDCControlV WITH (NOLOCK) INNER JOIN ManifiestoDetalleCarga WITH (NOLOCK) ON MDCControlV.IxMDC = ManifiestoDetalleCarga.IxMDC WHERE (ManifiestoDetalleCarga.IdManifiesto = @IdManifiesto) AND (MDCControlV.IxMV IS NOT NULL)))">
                <SelectParameters>
                    <asp:ControlParameter ControlID="ddlManifiesto" PropertyName="SelectedValue" Name="IdManifiesto"></asp:ControlParameter>
                </SelectParameters>
            </asp:SqlDataSource>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
Carlos
Top achievements
Rank 1
 answered on 25 Oct 2018
0 answers
110 views

Hi Telerik Team,

 

Our application try to customize "Paste from word" and "Paste from word, strip font" dialogs. I downloaded the Telerik_UI_for_ASP.NET_AJAX_2014_2_724_Dev.zip file but I cannot find user control files in the EditorDialogs folder. We are using Telerik 2014.2.724 version. Could you please let me know where I can find the source code?

 

Thanks,

 

Lan

lan luo
Top achievements
Rank 1
Iron
 asked on 25 Oct 2018
2 answers
1.2K+ views
Hi team,

I found many thread about this issue. Like below

http://www.telerik.com/community/forums/wpf/gridview/export-to-excel-2007.aspx
http://www.telerik.com/community/forums/aspnet-ajax/grid/excel-export-the-file-you-are-trying-to-open-filename-is-in-a-different-format-than-specified-by-the-file-extension.aspx

And the link how to fix (use registry)
http://www.itexperience.net/2008/03/17/excel-2007-error-different-format-than-specified-by-the-file-extension/

But seem, it was before 2012. Our client has concern this warning message. So I would like to receive the ways to solve but not use Registry.

Thanks.

Attila Antal
Telerik team
 answered on 25 Oct 2018
6 answers
381 views

Hi,

I have used teleric RadGrid inside the RadAjaxPanel somehow the pagination is NOT working. I'm NOT sure why it is working over the integration server. I have seen the versions of the dlls and both are same.
Please let me know if you have any idea.

Thanks in Advance, Pravin

I'm using  following code-

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" >

<telerik:RadGrid runat="server" ID="grdEmployee" Width="100%" DataSourceID="objEmpSource"
                PageSize="5" EnableAjaxSkinRendering="true" AllowPaging="True" AutoGenerateColumns="False"
                EnableEmbeddedSkins="false" OnItemDataBound="grdEmployeeItemDataBound">
                <MasterTableView CommandItemDisplay="None" ShowHeader="false" DataSourceID="objEmpSource">
                    <Columns>
                        <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Name"
                            HeaderText="Name" SortExpression="Name" UniqueName="Name">
                        </telerik:GridBoundColumn>
                    </Columns>
                    <PagerStyle Mode="NextPrev" />
                </MasterTableView>
                <FilterMenu EnableImageSprites="False">
                </FilterMenu>
                <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_WebBlue">
                </HeaderContextMenu>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>

Marin Bratanov
Telerik team
 answered on 25 Oct 2018
2 answers
234 views

I got an web application with a RadWindowManager.

That windows calls a function named "cerrarVentanaEstatica" when I close windows. This code clear various items in parent page (default.aspx).

The functionality works fine, but when I press ALT+TAB sometimes (we only use Internet Explorer), not always work correctly, don't close window, can't move or maximize or minimize. This too occurs when I open more than one window.

I don't know what's the problem, but not always occurs.

Default.aspx

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
    <telerik:RadWindowManager ReloadOnShow="true" ID="TRKadministradorVentanas" runat="server"
        OffsetElementID="OffsetImage" Width="400px" Height="600px"
        Behaviors="Default" DestroyOnClose="True" InitialBehaviors="None"
        Top="" VisibleStatusbar="False" ShowOnTopWhenMaximized="false"
        ShowContentDuringLoad="False" Localization-Cancel="Cancelar" Localization-Close="Cerrar"
        Localization-Maximize="Maximizar" Localization-Minimize="Minimizar" Localization-PinOff="Quitar fijar"
        Localization-PinOn="Fijar" Localization-Reload="Recargar" Localization-Restore="Restaurar" Localization-Yes="Si" Opacity="100"
        OnClientCommand="OnClientCommand">
        <Windows>
            <telerik:RadWindow
                ID="TRKventana"
                runat="server">
            </telerik:RadWindow>
            <telerik:RadWindow ID="multiobjetos" Title="Búsqueda Multiobjeto" runat="server" DestroyOnClose="false" Width="935" Height="600" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_multiobjeto.aspx"></telerik:RadWindow>
 
            <telerik:RadWindow ID="productos" Title="Búsqueda de Productos" runat="server" DestroyOnClose="false" Width="935" Height="560" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_productos.aspx"></telerik:RadWindow>
            <telerik:RadWindow ID="albumes" Title="Búsqueda de Álbumes" runat="server" DestroyOnClose="false" Width="935" Height="560" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_albumes.aspx"  ></telerik:RadWindow>
            <telerik:RadWindow ID="peticiones" Title="Búsqueda de Peticiones" runat="server" DestroyOnClose="false" Width="935" Height="560" OnClientClose="cerrarVentanaEstatica" NavigateUrl="~/pages/consultas/busqueda_peticiones.aspx?tipoObjeto=PETICION" ></telerik:RadWindow>
             
        </Windows>
    </telerik:RadWindowManager>   
</telerik:RadAjaxPanel>

 

function cerrarVentanaEstatica(e) {
   cerrarVentana(e._name);
}

 

forms.js

function cerrarVentana(id) {
    //code for delete any items on parent
}

 

Thanks.

Marin Bratanov
Telerik team
 answered on 25 Oct 2018
1 answer
597 views

I have radcombobox with multiple selection of check boxes, by unchecking a checkbox i am trying to hide a div which has radgrids inside. And further making  the user to click on a button to show the div again with the remaining selected radcombobox items and bind radgrid data depending upon the selection. I have tried the following code with the given telerik discussion https://www.telerik.com/forums/no-check-uncheck-all-event 

But the div is still visible. Is there any way to hide the div ? Please correct me if i understood it wrong . Thanks. !

function OnClientItemChecked(sender, args) {
            var check = true;
            var uncheck = true;
            var checkedItems = sender.get_checkedItems().length;
            var c = sender.get_items().get_count();
            for (var i = 0; i < sender.get_items().get_count(); i++) {
                if (!sender.get_items()._array[i].get_checked()) {
                    check = false;
                }
                if (sender.get_items()._array[i].get_checked()) {
                    uncheck = false;
                }
            }
            if (check) {
                        }
            if (uncheck) {
                    document.getElementById('<%=divGrids.ClientID%>').style.display = 'none';
            }
        }

Marin Bratanov
Telerik team
 answered on 25 Oct 2018
1 answer
130 views

Is there any way to change the template based on a item count in any way?

have a scenario where i need to create a grid system where every 12e item has a different layout altoghether.

 

Someone surely must have had this come about at some point and not to familiular with the listview control. 

 

Christian

Marin Bratanov
Telerik team
 answered on 25 Oct 2018
4 answers
493 views
Hi all,

I call a RadWindow which contain an user control (frmEditSteps)

Parent Page:
<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false"
          ReloadOnShow="true" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server" Skin="Telerik" Behaviors="Close, Move" Modal="true" AutoSize="true" >
                <ContentTemplate>
                    <uc1:frmEditSteps runat="server" id="frmEditSteps" />  //My User Control
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
</telerik:RadWindowManager>

After that, I close the RadWindow1 by clicking a button in user control. But it doesn't work.
User control frmEditSteps
<button title="Submit" id="close" onclick="ClosePopcmn(); return false;">Submit</button>
<script type="text/javascript">
    function GetRadWindow() {
        var oWindow = null;
        if (window.radWindow) oWindow = window.radWindow;
        //else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;        
        return oWindow;
    }

    function ClosePopcmn() {        
        var oWnd = GetRadWindow();
        oWindow.close(); --------------------------> It doesn't work??????      
    }    
</script>
I don't know why.
But when I run Website on Internet Explorer, it generate an error at oWindow.close()
That error is: 0x800a138f - JavaScript runtime error: Unable to get property 'close' of undefined or null reference

Please help me.
Marin Bratanov
Telerik team
 answered on 25 Oct 2018
1 answer
149 views

Hello,

Is it possible for the dialog's (link manager, image manager etc) of a RadEditor to use a different skin to the editor. 

I've got my default skin set in my Web.Config file. I then tried to override certain controls within the Web.Config file but they only seem to work when the controls are directly on the page. 

    <add key="Telerik.Skin" value="{CustomSkinName}" />
    <add key="Telerik.FileExplorer.Skin" value="{CustomSkinName}" />

 

Is it possible to do what I'm after?

I have tried to use a "DialogsCssFile" but that brings in other issues, for example for the RadEditor styling completely messes up as class names have changed.

"RadEditor RadEditor_{CustomSkinName}" becomes "RadEditor {CustomSkinName}"

Amongst many other problems.

Rumen
Telerik team
 answered on 25 Oct 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?