Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
86 views
Hai All,


i have a Radtext box in asp.net it will accept only number and decimals only in the format of XX,YY not more than two numbers means 

ex:12,45
12.45,24.5
0.57,34.5
it will accepct


not like this error:

Ex:12.34.34,23.45
,23.346,34
23.45,45.44.55
then it will show error

plz any one help me very urgent
Shinu
Top achievements
Rank 2
 answered on 21 Aug 2014
2 answers
218 views
Hello, I have this problem
I have this page i includ the html file, the isue is that anywhere i click, on the Grid, or any control ajaxfixed only the first time shows the image .gif loading
when i hit any ajaxfixed control for the second time, the image of loading dont show, but the action is done.

hope i'am getting understud
Greats
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Directorio.aspx.cs" Inherits="SIFGUA_II.Directorio" MaintainScrollPositionOnPostback="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
    <telerik:RadTabStrip id="RadTabStrip1" SelectedIndex="0" runat="server" MultiPageID="RadMultiPage1" Skin="MetroTouch">
        <Tabs>
            <telerik:RadTab runat="server" Text="Empresas" Selected="True"></telerik:RadTab>
            <telerik:RadTab runat="server" Text="Directorio de Empresas" Selected="True"></telerik:RadTab>
         </Tabs>
    </telerik:RadTabStrip>
    <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0"  Width="100%">
        <telerik:RadPageView ID="RadpageView1" runat="server"> <%--Empresas--%>
            <div>
                <center>
                    <asp:Label ID="Label1" runat="server" CssClass="Titulares" Text="Resumen de Empresas Activas en Registro Forestal"></asp:Label>
                </center>
                 
            </div>
            <div>
                <hr />
            </div>
            <center>
                <table>
                <tr>
                    <td>
                        <telerik:RadGrid runat="server" ID="GrdResEmpresas"  PageSize="20" Skin="Metro"
                            AutoGenerateColumns="false" Width="350px" AllowSorting="true"
                                AllowPaging="true" GridLines="Both" >
                            <PagerStyle Mode="NextPrevAndNumeric" NextPageText="Siguiente"
                                PrevPageText="Anterior" Position="Bottom"
                                PagerTextFormat="Change page: {4} &nbsp;Pagina <strong>{0}</strong> de <strong>{1}</strong>, registros <strong>{2}</strong> a <strong>{3}</strong> de <strong>{5}</strong>."
                                PageSizeLabelText="Regitros"/>
                            <MasterTableView Caption="" DataKeyNames="tiporegistro,cantidad" NoMasterRecordsText="No Hay Registros" ShowFooter="true">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="tiporegistro"  FooterText="Total de empresas registradas activas" FooterStyle-Font-Bold="true" HeaderText="Empresas registradas y activas en el RNF" HeaderStyle-Width="550px">
                                        <HeaderStyle Width="550px"></HeaderStyle>
                                    </telerik:GridBoundColumn
                                    <telerik:GridBoundColumn DataField="cantidad"  DataFormatString="{0:#,##0}" HeaderText="Totales" Aggregate="Sum" FooterStyle-Font-Bold="true" FooterAggregateFormatString="{0:#,##0}" HeaderStyle-Width="125px">
                                    </telerik:GridBoundColumn>
                                    <telerik:GridBoundColumn DataField="" UniqueName="Por"  DataFormatString="{0:#,##0.00}" HeaderText="Porcentaje" HeaderStyle-Width="125px">
                                    </telerik:GridBoundColumn>
                                </Columns>       
                            </MasterTableView>
                            <FilterMenu EnableTheming="true">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </FilterMenu>
                        </telerik:RadGrid>
                    </td>
                    <td>
                        <telerik:RadHtmlChart runat="server" ID="GraPieEmpresas" Width="450" Height="450" Transitions="true">
                            <Appearance>
                                 <FillStyle BackgroundColor="White"></FillStyle>
                            </Appearance>
                            <ChartTitle Text="">
                                 <Appearance Align="Center" BackgroundColor="White" Position="Top">
                                 </Appearance>
                            </ChartTitle>
                            <Legend>
                                 <Appearance BackgroundColor="White" Position="Bottom">
                                 </Appearance>
                            </Legend>
                            <PlotArea>
                                 <Appearance>
                                      <FillStyle BackgroundColor="White"></FillStyle>
                                 </Appearance>
                            </PlotArea>
                       </telerik:RadHtmlChart>
                    </td>
                </tr>
            </table>
            </center>
             
            <div>
                <hr />
            </div>
            <div>
                <center>
                    <asp:Label ID="Label2" runat="server" CssClass="Titulares" Text="Empresas Activas en Registro Forestal Por Departamento"></asp:Label>
                </center>
                 
            </div>
            <div>
                <center>
                    <table>
                        <tr>
                            <td>
                                <asp:ImageButton runat="server" ID="ImgExpDep" ImageUrl="~/Imagenes/Utiles/expxls.png" ToolTip="Exportar a Excel" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadGrid runat="server" ID="GrdDepartamentos"  PageSize="24" Skin="Metro"
                                AutoGenerateColumns="false" Width="100%" AllowSorting="true"
                                AllowPaging="true" GridLines="Both" >
                                <PagerStyle Mode="NextPrevAndNumeric" NextPageText="Siguiente"
                                PrevPageText="Anterior" Position="Bottom"
                                PagerTextFormat="Change page: {4} &nbsp;Pagina <strong>{0}</strong> de <strong>{1}</strong>, registros <strong>{2}</strong> a <strong>{3}</strong> de <strong>{5}</strong>."
                                PageSizeLabelText="Regitros"/>
                                <MasterTableView Caption="" DataKeyNames="AgrupacionId,NombreTerritorio" NoMasterRecordsText="No Hay Registros">
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="AgrupacionId" Visible="false"  HeaderText="Departamento" HeaderStyle-Width="350px">
                                            <HeaderStyle Width="350px"></HeaderStyle>
                                        </telerik:GridBoundColumn
                                        <telerik:GridBoundColumn DataField="NombreTerritorio" HeaderStyle-HorizontalAlign="Center" HeaderText="Departamento"  FooterText="Total General" FooterStyle-Font-Bold="true"  HeaderStyle-Width="350px">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="IF" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right" HeaderText="Industrias Forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="DP" ItemStyle-HorizontalAlign="Right" HeaderText="Depósitos forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="EXIM" ItemStyle-HorizontalAlign="Right" HeaderText="Exportadores - Importadores"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="80px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="SF" ItemStyle-HorizontalAlign="Right" HeaderText="Empresas de servicios forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="VF" ItemStyle-HorizontalAlign="Right" HeaderText="Viveros Forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="EPF" ItemStyle-HorizontalAlign="Right" HeaderText="Extractores y Recolectores"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="EMT" ItemStyle-HorizontalAlign="Right" HeaderText="Empresas de Motosierras"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridTemplateColumn HeaderText="Ver Municipios" AllowFiltering="false" ShowFilterIcon="false" Visible="true" UniqueName="Requi">
                                            <ItemTemplate>
                                                <asp:ImageButton runat="server" ID="ImgBorrar" ImageUrl="~/Imagenes/Utiles/file.png" ToolTip="Ver Municipios" CommandName="CmdVer"/>
                                            </ItemTemplate>
                                        </telerik:GridTemplateColumn>
                                    </Columns>       
                                </MasterTableView>
                            <FilterMenu EnableTheming="true">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </FilterMenu>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
                </center>
            </div>
             
            <div>
                <hr />
            </div>
            <div>
                <center>
                    <asp:Label ID="Label3" runat="server" CssClass="Titulares" Text="Empresas Activas en Registro Forestal Por Municipio"></asp:Label>
                </center>
                 
            </div>
            <div>
                <center>
                    <table>
                        <tr>
                            <td>
                                <asp:ImageButton runat="server" ID="ImgExpEmpMun" ImageUrl="~/Imagenes/Utiles/expxls.png" ToolTip="Exportar a Excel" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadGrid runat="server" ID="GrdMunicipio"  PageSize="35" Skin="Metro"
                                AutoGenerateColumns="false" Width="100%" AllowSorting="true"
                                AllowPaging="true" GridLines="Both" >
                                <PagerStyle Mode="NextPrevAndNumeric" NextPageText="Siguiente"
                                PrevPageText="Anterior" Position="Bottom"
                                PagerTextFormat="Change page: {4} &nbsp;Pagina <strong>{0}</strong> de <strong>{1}</strong>, registros <strong>{2}</strong> a <strong>{3}</strong> de <strong>{5}</strong>."
                                PageSizeLabelText="Regitros"/>
                                <MasterTableView  Caption="" DataKeyNames="AgrupacionId,NombreTerritorio" NoMasterRecordsText="No Hay Registros" ShowFooter="true">
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="AgrupacionId" Visible="false"  HeaderText="Municipio" HeaderStyle-Width="350px">
                                            <HeaderStyle Width="350px"></HeaderStyle>
                                        </telerik:GridBoundColumn
                                        <telerik:GridBoundColumn DataField="NombreTerritorio" HeaderStyle-HorizontalAlign="Center" HeaderText="Municipio"  FooterText="Total General" FooterStyle-Font-Bold="true"  HeaderStyle-Width="300px">
                                            <HeaderStyle Width="300px"></HeaderStyle>
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="IF" ItemStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right" HeaderText="Industrias Forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="50px">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="DP" ItemStyle-HorizontalAlign="Right" HeaderText="Depósitos forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="EXIM" ItemStyle-HorizontalAlign="Right" HeaderText="Exportadores - Importadores"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="SF" ItemStyle-HorizontalAlign="Right" HeaderText="Empresas de servicios forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="VF" ItemStyle-HorizontalAlign="Right" HeaderText="Viveros Forestales"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="EPF" ItemStyle-HorizontalAlign="Right" HeaderText="Extractores y Recolectores"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="" UniqueName="EMT" ItemStyle-HorizontalAlign="Right" HeaderText="Empresas de Motosierras"  FooterStyle-Font-Bold="true"  HeaderStyle-Width="75px" HeaderStyle-HorizontalAlign="Center" FooterStyle-HorizontalAlign="Right">
                                        </telerik:GridBoundColumn>
                                    </Columns>       
                                </MasterTableView>
                            <FilterMenu EnableTheming="true">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </FilterMenu>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
                </center>
            </div>
 
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadpageView2" runat="server"> <%--Directorio--%>
            <div>
                <center>
                    <asp:Label ID="Label4" runat="server" CssClass="Titulares" Text="Directorio de Empresas Forestales Activas"></asp:Label>
                </center>
                 
            </div>
            <div>
                <hr />
            </div>
            <div>
                <center>
                    <table>
                         
                        <tr>
                            <td>
                                <asp:ImageButton runat="server" ID="BtnExpExlsEmp" ImageUrl="~/Imagenes/Utiles/expxls.png" ToolTip="Exportar a Excel" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadGrid runat="server" ID="GrdEmpresas"  PageSize="24" Skin="Metro" AllowFilteringByColumn="true"
                                AutoGenerateColumns="false" Width="100%" AllowSorting="true"
                                AllowPaging="true" GridLines="Both" >
                                <PagerStyle Mode="NextPrevAndNumeric" NextPageText="Siguiente"
                                PrevPageText="Anterior" Position="Bottom"
                                PagerTextFormat="Change page: {4} &nbsp;Pagina <strong>{0}</strong> de <strong>{1}</strong>, registros <strong>{2}</strong> a <strong>{3}</strong> de <strong>{5}</strong>."
                                PageSizeLabelText="Regitros"/>
                                <MasterTableView  Caption="" DataKeyNames="No. registro,Fecha registro,Fecha vencimiento,Estado,Empresa,Telefono,Aldea,Municipio,Departamento,Tipo industria" NoMasterRecordsText="No Hay Registros" ShowFooter="true">
                                     
                                    <Columns>
                                        <telerik:GridBoundColumn DataField="Fecha registro" HeaderStyle-HorizontalAlign="Center" AllowFiltering="false" ShowFilterIcon="false"  HeaderText="Fecha registro" HeaderStyle-Width="350px">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="No. registro" HeaderStyle-HorizontalAlign="Center" FilterControlWidth="75px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderText="No. Registro"  HeaderStyle-Width="75px">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Empresa" HeaderStyle-HorizontalAlign="Center" HeaderText="Nombre comercial"  HeaderStyle-Width="250px" FilterControlWidth="150px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Aldea" HeaderStyle-HorizontalAlign="Center" HeaderText="Aldea"  HeaderStyle-Width="250px" AllowFiltering="false" ShowFilterIcon="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Municipio" HeaderStyle-HorizontalAlign="Center" HeaderText="Municipio"  HeaderStyle-Width="250px" FilterControlWidth="150px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Departamento" HeaderStyle-HorizontalAlign="Center" HeaderText="Departamento"  HeaderStyle-Width="250px" FilterControlWidth="150px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Telefono" HeaderStyle-HorizontalAlign="Center" HeaderText="Teléfono"  HeaderStyle-Width="250px" AllowFiltering="false" ShowFilterIcon="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Tipo industria" HeaderStyle-HorizontalAlign="Center" HeaderText="Tipo de Industria"  HeaderStyle-Width="100px" FilterControlWidth="100px" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Fecha vencimiento" HeaderStyle-HorizontalAlign="Center" HeaderText="Fecha de Vencimiento"  HeaderStyle-Width="250px" AllowFiltering="false" ShowFilterIcon="false">
                                        </telerik:GridBoundColumn>
                                        <telerik:GridBoundColumn DataField="Estado" HeaderStyle-HorizontalAlign="Center" HeaderText="Estatus"  HeaderStyle-Width="250px" AllowFiltering="false" ShowFilterIcon="false">
                                        </telerik:GridBoundColumn>
                                    </Columns>       
                                </MasterTableView>
                            <FilterMenu EnableTheming="true">
                                <CollapseAnimation Duration="200" Type="OutQuint" />
                            </FilterMenu>
                        </telerik:RadGrid>
                    </td>
                </tr>
            </table>
                </center>
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>
</div>
<asp:TextBox runat="server" ID="IdDep" Visible="false"></asp:TextBox>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"  EnableSkinTransparency="true" BackgroundPosition="Top" Skin="">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/Imagenes/Utiles/cargando.gif" AlternateText="cargando" />
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="GrdResEmpresas">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="GrdResEmpresas" />
                <telerik:AjaxUpdatedControl ControlID="GrdResEmpresas" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="GrdEmpresas">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="GrdEmpresas" />
                <telerik:AjaxUpdatedControl ControlID="GrdEmpresas" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="GrdDepartamentos">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="GrdDepartamentos" />
                <telerik:AjaxUpdatedControl ControlID="IdDep" />
                <telerik:AjaxUpdatedControl ControlID="GrdMunicipio" />
                <telerik:AjaxUpdatedControl ControlID="GrdMunicipio" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="GrdMunicipio">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="GrdMunicipio" />
                <telerik:AjaxUpdatedControl ControlID="GrdMunicipio" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
</asp:Content>
Hector Hernandez
Top achievements
Rank 2
 answered on 20 Aug 2014
1 answer
131 views
I've created a simple custom filter to set some default image spacing in content.

However, the filter is not getting applied to new content when its submitted the first time.

When I reload the content and save it a second time, the filter does its thing.

What might I be missing?
Randy
Top achievements
Rank 1
 answered on 20 Aug 2014
2 answers
117 views
Hi
I am using Radasyncupload and using a customhttphandler and saving files directly to the database. Sometimes the handler is failing because of some error in the code like DB is not available or someother error  and I want to return the exact error message to the application. How can I accomplish this? Any help is much appreciated.

Thanks
Rakesh
Rakesh
Top achievements
Rank 1
 answered on 20 Aug 2014
7 answers
196 views
Currently when you drag an element to drop you can move it all around the page, which is good if you need to drop onto a different area, but for reordering a grid is there anyway to restrict the dragging to just the y-axis? 

Basically the same idea that Netflix has when you reorder your queue. 
Eyup
Telerik team
 answered on 20 Aug 2014
4 answers
163 views
One of my Radgrid is a bit wide and by scrolling to right, upon clicking one of the last column the Radgrid filter button, the filter menu is not displaying correctly on IE. I have  attached is screenshot of the issue. I even try using RadGrid's client-side OnFilterMenuShowing to point to the correct position. (http://www.telerik.com/forums/inconsistant-filter-menu-locations-on-radgrid)
Pavlina
Telerik team
 answered on 20 Aug 2014
1 answer
93 views
Hello ,

I have to find the previous sibling of the element when I press enter of the text .

 For example
<h1>Telerik editor Text</h1>

when i press enter in the H1 tag in between the this text "Telerik editor Text" then the editor we create two H1 tag either of adding br tag in between so for that I want the element before the cursor position.

For example : in between in this I have a cursor at this text "Telerik editor Text" at the "tele |"cursor position" so i want the "tele" element .
I have used the getselectionhtml but it return null value
Nikolay
Telerik team
 answered on 20 Aug 2014
9 answers
414 views
Hi,
I have some photos which are large as 3000px X 4000px.
When I open one of them in my ie or chrome browser, the browser set it's size to browser size automatically. Bu when I open that photo in a radwindow (and resize radwindow), windows shows scrollbars. Is there any way to set image size to its parent container(radwindow).

I used this code to open a photo in a radwindow. (sender is a imagebutton).

        function OpenWindow(sender) {
            var link = sender.src;
            var wnd = window.radopen(link, null);
            wnd.set_status("");
            wnd.setSize(400, 400);
            return false;
        }

The Result is in the attachment. I want to shrink image automatically to its parent size.

Many thanks.

gozcelik
Top achievements
Rank 1
 answered on 20 Aug 2014
1 answer
132 views
Hello Support,

We are using 2013.1.220.32 version of telerik rad controls.

We are using multiple RadTabStrip as a sub Main Tab and inside that as a Sub Tab. We also have multiple RadTreeview inside that RadTabs. We have also used rad splitters and rad panes on that page in user control

While accessing that page on IE8 native browser It's throwing unable to open error message dialogue. Attaching snapshot here.

Thanks.
Princy
Top achievements
Rank 2
 answered on 20 Aug 2014
5 answers
1.0K+ views
Dear Team,

I have a rad tree view placed inside rad combo box. I need to retrieve the child node of the node inside the rad tree view dynamically. The rad tree view inside the rad combo box uses web services call for load on demand.

For example, if the tree node structure inside the rad combo box is as follows:

         Node 1
             Level 1
                  Level 2
 
        Node 2
             Level 1
                   Level 2

Initially, the combo box will display upon drop down Node 1 & Node 2. However, if we click Node 1 or Node 2, this will populate the child nodes.

My requirement is that I should be able to traverse from Node 1 through the deepest level via JavaScript API so that I can compare if this is the node or level that needs to remain selected on the rad combo box.

Kindly assist through me on achieving this.

Thanks in advance.


Shinu
Top achievements
Rank 2
 answered on 20 Aug 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?