RadImageTile

3 posts, 0 answers
  1. Sofiene
    Sofiene avatar
    21 posts
    Member since:
    Feb 2012

    Posted 26 Jun 2013 Link to this post

    hi , 
    i am using telerik 2013 Q3 , i can't use javascript in NavigateURL of RadImageTile . have y a way to do it ? thnak you . 

    function openRadWindow(Page) {
             var oWnd = radopen(Page, Page + "1");
             oWnd.setSize(315, 250);
             oWnd.Center();
         }

    <telerik:RadImageTile Name="Sofia"  Shape="Wide"    
                                          NavigateUrl='javascript:openRadWindow("..\Shared/Form/FormReport.aspx?report=Rep1"); return false;' Target="_blank" Width="300"   Font-Bold="True" ForeColor="White" ToolTip='Cliquez ici pour afficher le rapport'  Selected="False" Font-Italic="True" Font-Size="X-Large">
                                          
                                          <Title Text="MyText"   ></Title>
                                          
                                          <PeekTemplateSettings AnimationDuration="900" ShowInterval="8000" CloseDelay="7000"
                                               Animation="Slide" Easing="easeInQuint" ShowPeekTemplateOnMouseOver="true" HidePeekTemplateOnMouseOut="true" />
                                     </telerik:RadImageTile>


  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 Jun 2013 Link to this post

    Hi Sofiene,

    Try removing the "return false" statement given along with the JavaScript in the NavigateUrl property of the RadImageTile. Also check the following code I tried which works fine at my end.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    </telerik:RadWindowManager>
    <telerik:RadTileList runat="server" ID="RadTileList1" Width="634px" TileRows="3"
        SelectionMode="Multiple" AutoPostBack="false">
        <Groups>
            <telerik:TileGroup>
                <telerik:RadImageTile Name="Sofia" Shape="Wide" NavigateUrl='javascript:openRadWindow("Default.aspx");' Target="_parent"
                    Width="300" Font-Bold="True" ForeColor="White" ToolTip='Cliquez ici pour afficher le rapport'
                    Selected="False" Font-Italic="True" Font-Size="X-Large">
                    <Title Text="MyText"></Title>
                    <PeekTemplateSettings AnimationDuration="900" ShowInterval="8000" CloseDelay="7000"
                        Animation="Slide" Easing="easeInQuint" ShowPeekTemplateOnMouseOver="true" HidePeekTemplateOnMouseOut="true" />
                </telerik:RadImageTile>
            </telerik:TileGroup>
        </Groups>
    </telerik:RadTileList>

    JavaScript:
    <script type="text/javascript">
        function openRadWindow(page) {
            var oWnd = radopen(page);
            oWnd.setSize(315, 250);
            oWnd.Center();
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sofiene
    Sofiene avatar
    21 posts
    Member since:
    Feb 2012

    Posted 27 Jun 2013 Link to this post

    Thank you . it work . the target must be '_parent'   Target="_parent"  . 
Back to Top