TileList Programmatic hiding of tiles breaks navigateUrl

2 posts, 0 answers
  1. Gabor
    Gabor avatar
    1 posts
    Member since:
    Jul 2012

    Posted 02 Nov 2013 Link to this post

    Hi, 

    I think I found a bug with my q2 2013 controls, where if I programmatically remove some items from the list by setting its property to visible = false, the navigation breaks also. It navigates to the index of the items it thinks should be there. 

    <telerik:RadTileList ID="tllReporting" runat="server" Skin="FriskaMetro" EnableEmbeddedSkins="False"
            Height="500px">
            <Groups>
                <%--Sales--%>
                <telerik:TileGroup>
                    <Tiles>
                        <telerik:RadContentTemplateTile NavigateUrl="Sales/CombinedSales.aspx" Shape="Square" Name="tileSalesCombined">
                            <ContentTemplate>
                                <div class="SlidePanel" style="width100%height80px">
                                    <h1>
                                        Combined Sales</h1>
                                </div>
                                <div class="SlidePanelTitle" style="width100%height50px">
                                    <h3>
                                        Sales</h3>
                                </div>
                            </ContentTemplate>
                            <PeekTemplate>
                                <div class="SlidePanel" style="width88%height120px">
                                    Report to show the combined retail and catering sales for period
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="Slide" AnimationDuration="800" Easing="easeInOutBack"
                                ShowInterval="0" CloseDelay="5000" ShowPeekTemplateOnMouseOver="true" HidePeekTemplateOnMouseOut="true" />
                        </telerik:RadContentTemplateTile>
                        <telerik:RadContentTemplateTile NavigateUrl="Sales/ProductsSoldReport.aspx" Shape="Square" Name="tileSalesProductsSold">
                            <ContentTemplate>
                                <div class="SlidePanel" style="width100%height80px">
                                    <h1>
                                        Product <br />Sales</h1>
                                </div>
                                <div class="SlidePanelTitle" style="width100%height50px">
                                    <h3>
                                        Sales</h3>
                                </div>
                            </ContentTemplate>
                            <PeekTemplate>
                                <div class="SlidePanel" style="width88%height120px">
                                    Report to show the total number of products sold in a period
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="Slide" AnimationDuration="800" Easing="easeInOutBack"
                                ShowInterval="0" CloseDelay="5000" ShowPeekTemplateOnMouseOver="true" HidePeekTemplateOnMouseOut="true" />
                        </telerik:RadContentTemplateTile>
                        <telerik:RadContentTemplateTile NavigateUrl="Sales/SalesPOReceiptsReport.aspx" Shape="Wide" Name="tileSalesPOReceipts">
                            <ContentTemplate>
                                <div class="SlidePanel" style="width100%height80px">
                                    <h1>
                                        Paid Out Receipts</h1>
                                </div>
                                <div class="SlidePanelTitle" style="width100%height50px">
                                    <h3>
                                        Sales</h3>
                                </div>
                            </ContentTemplate>
                            <PeekTemplate>
                                <div class="SlidePanel" style="width88%height120px">
                                    Report to show the paid out cash receipts per store
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="Slide" AnimationDuration="800" Easing="easeInOutBack"
                                ShowInterval="0" CloseDelay="5000" ShowPeekTemplateOnMouseOver="true" HidePeekTemplateOnMouseOut="true" />
                        </telerik:RadContentTemplateTile>
                        <telerik:RadContentTemplateTile NavigateUrl="Sales/SalesSummaryReport.aspx" Shape="Square"
                            Name="tileSalesSalesSummary">
                            <ContentTemplate>
                                <div class="SlidePanel" style="width100%height80px">
                                    <h1>
                                        Sales Summary</h1>
                                </div>
                                <div class="SlidePanelTitle" style="width100%height50px">
                                    <h3>
                                        Sales</h3>
                                </div>
                            </ContentTemplate>
                            <PeekTemplate>
                                <div class="SlidePanel" style="width88%height120px">
                                    Report to show the value of the sales in a period per store
                                </div>
                            </PeekTemplate>
                            <PeekTemplateSettings Animation="Slide" AnimationDuration="800" Easing="easeInOutBack"
                                ShowInterval="0" CloseDelay="5000" ShowPeekTemplateOnMouseOver="true" HidePeekTemplateOnMouseOut="true" />
                        </telerik:RadContentTemplateTile>
       </Tiles>
                </telerik:TileGroup>
            </Groups>
        </telerik:RadTileList>
    
    Thenn I set the visible property as such: 
    
    
    foreach (RadBaseTile tile in tllReporting.GetAllTiles())
                {
                    tile.Visible = Authentication.HasUserPageAccess("~/Reporting/"+tile.NavigateUrl);
                }
    Is this a bug?

    Many thanks!
    Gabor
  2. Stanimir
    Admin
    Stanimir avatar
    1653 posts

    Posted 05 Nov 2013 Link to this post

    Hi Gabor,

    This problem is fixed in the latest 2013.Q3 release of RadControls for ASP.NET AJAX. I suggest you upgrade to the latest 2013.3.1015 version of the controls.


    Regards,
    Stanimir
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top