This is a migrated thread and some comments may be shown as answers.

TileList Programmatic hiding of tiles breaks navigateUrl

1 Answer 72 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Gabor
Top achievements
Rank 1
Gabor asked on 02 Nov 2013, 10:09 PM
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

1 Answer, 1 is accepted

Sort by
0
Stanimir
Telerik team
answered on 05 Nov 2013, 06:36 AM
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.
Tags
TileList
Asked by
Gabor
Top achievements
Rank 1
Answers by
Stanimir
Telerik team
Share this question
or