This is a migrated thread and some comments may be shown as answers.
RadImageTile
2 Answers 44 Views
This is a migrated thread and some comments may be shown as answers.
Sofiene
Top achievements
Rank 1
Sofiene asked on 26 Jun 2013, 03:35 PM
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 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 27 Jun 2013, 06:57 AM
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.
0
Sofiene
Top achievements
Rank 1
answered on 27 Jun 2013, 07:35 AM
Thank you . it work . the target must be '_parent'   Target="_parent"  . 
Tags
Ajax
Asked by
Sofiene
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Sofiene
Top achievements
Rank 1
Share this question
or