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

Delete images in TempImageFolder

3 Answers 44 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jun Ting
Top achievements
Rank 1
Jun Ting asked on 19 Apr 2010, 12:21 PM
Hi,

How to automatically delete the images in TempImageFolder? Is there any setting for it?

Here is the code that i used. But the images still keep in the TempImageFolder after few days.
  <telerik:RadChart ID="RadChart_Overall" runat="server" Width="450px"    
            IntelligentLabelsEnabled="True" DefaultType="Pie" AutoLayout="True" AutoTextWrap="True" Height="350px" TempImagesFolder="~/images/articles" UseSession="False" OnItemDataBound="RadChart_Overall_ItemDataBound" SeriesPalette="MyPalette">  
             <Series> 
                <telerik:ChartSeries Name="Series" Type="Pie" DataYColumn="cnt">  
                  <appearance centerxoffset="-50" barwidthpercent="5">  
                        <textappearance autotextwrap="True" textproperties-color="Black">  
                        </textappearance>   
                    </appearance> 
                </telerik:ChartSeries> 
            </Series> 
              <CustomPalettes> 
                                <telerik:Palette Name="MyPalette">  
                                    <Items> 
                                     <telerik:PaletteItem MainColor="DarkGreen" SecondColor="DarkGreen" /> 
                                       <telerik:PaletteItem MainColor="LightBlue" SecondColor="LightBlue" /> 
                                        <telerik:PaletteItem MainColor="Crimson"  SecondColor="Crimson" /> 
                                        <telerik:PaletteItem MainColor="DarkOrange" SecondColor="DarkOrange"  /> 
                                         <telerik:PaletteItem MainColor="MediumPurple" SecondColor="MediumPurple" /> 
                                          <telerik:PaletteItem MainColor="Yellow" SecondColor="Yellow" /> 
                                          <telerik:PaletteItem MainColor="PeachPuff" SecondColor="PeachPuff" /> 
                                          <telerik:PaletteItem MainColor="Brown" SecondColor="white" /> 
                                            
                                    </Items> 
                                </telerik:Palette> 
                            </CustomPalettes> 
                                <charttitle> 
                <textblock> 
                    <appearance textproperties-color="Black" textproperties-font="Arial, 10pt,style=bold">  
                    </appearance> 
                </textblock> 
                <appearance position-alignedposition="TopLeft" Dimensions-Width="450px">  
                </appearance> 
            </charttitle> 
            <PlotArea> 
        <xaxis> 
               <appearance color="76, 255, 255, 255" majortick-color="179, 255, 255, 255">  
                   <majorgridlines color="179, 255, 255, 255" width="2" /> 
                   <textappearance textproperties-color="Black">  
                   </textappearance> 
               </appearance> 
               <axislabel> 
                   <appearance dimensions-paddings="1px, 1px, 10%, 1px">  
                   </appearance> 
                   <textblock> 
                       <appearance textproperties-color="Black">  
                       </appearance> 
                   </textblock> 
               </axislabel> 
           </xaxis> 
             <Appearance Border-Width="0" Dimensions-AutoSize="true">  
            <fillstyle maincolor="" secondcolor="Transparent">  
            </fillstyle> 
      
             
             </Appearance> 
       </PlotArea> 
         
        <legend visible="true">  
              <appearance visible="true"   
                    location="InsidePlotArea" dimensions-margins="2px, 2px, 2px, 3px"   
                    position-alignedposition="Right" position-auto="True" > 
                   <itemtextappearance autotextwrap="True" textproperties-color="Black"></itemtextappearance> 
                    <fillstyle maincolor="37, 255, 255, 255">  
                    </fillstyle> 
                    <border color="White" /> 
                </appearance> 
                <textblock><appearance autotextwrap="True" position-alignedposition="Top"   
                    textproperties-color="220, 158, 119">  
                </appearance></textblock>  
            </legend> 
              
            </telerik:RadChart> 


3 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 22 Apr 2010, 05:39 AM
Hello Jun Ting,

Each image in that folder is automatically deleted the first time it is requested by the HTTP handler. Once it is read for the first time, it is placed in the Cache and then it is deleted from the file storage.

Sincerely yours,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jun Ting
Top achievements
Rank 1
answered on 01 Jun 2010, 07:39 AM
Hi,

The images still not deleted. Is there any setting need to do?
0
Vladimir Milev
Telerik team
answered on 03 Jun 2010, 10:53 AM
Hello Jun Ting,

One reason they might not get deleted is if there are no sufficient permissions.

Another case - a bit more complicated may be the following:
1) The chart control gets loaded and rendered. (thus generating the image file)
2) However, the browser has turn off the option to load images, or some plugin is blocking the download.
3) As a consequence from (2) the HTTP Handler never loads up and deletes the image from disk.

If this becomes a problem I suggest using the Session to store images.

Kind regards,
Vladimir Milev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Chart (Obsolete)
Asked by
Jun Ting
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Jun Ting
Top achievements
Rank 1
Share this question
or