Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ColorPicker > Multiple RadColorPickers consuming too much memory

Not answered Multiple RadColorPickers consuming too much memory

Feed from this thread
  • Joshua Foulk avatar

    Posted on Jun 28, 2011 (permalink)

    I am using the RadColorPicker in an asp.net repeater control.
    Everything works well except that the browser (any browser) is consuming approximately 500MB of memory 
    with only 13 items loaded into the repeater.
    If I comment out the radcolorpicker, memory consumption drops to around 60-70MB...  which is a little 
    more appropriate.

    Memory usage is the same regardless of whether or not I handle the OnClientColorChange event, so I'm 
    pretty sure that whatever is going in is happening as a part the control's default behavior.  

    I am using the latest available controls.

    Are there any known issues with this control and memory leaks/consumption?

    Thanks...

    Reply

  • Joshua Foulk avatar

    Posted on Jun 28, 2011 (permalink)

    Code:

    <asp:Panel runat="server" ID="PropertiesPanel" GroupingText="Calendars" Font-Names="Trebuchet MS">
        <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ResDataSource" OnItemDataBound="Repeater1_ItemDataBound">
            <ItemTemplate>
                <asp:Panel ID="ResPanel" runat="server">
                    <div id="spnRes" runat="server" style="font-family: Trebuchet MS; width: 100%">
                        <table width="100%" border="0">
                            <tr>
                                <td width="100%">
                                    <asp:CheckBox ID="CheckBox1" AutoPostBack="false" onclick="CheckCheck(this.id)" Width="100%"
                                        runat="server" Text=' <%# Eval("name") %>' Font-Size="X-Small" /><input id="hidID"
                                            type="hidden" runat="server" value='<%# Eval("userid") %>' /><input id="hidChecked"
                                                type="hidden" runat="server" value='<%# Eval("ischecked") %>' />
                                </td>
                                <td>
                                    <telerik:RadColorPicker ID="RadColorPicker1" runat="server" Skin="Default" Columns="6"
                                        OnClientColorChange="ColChange" Preset="None" AutoPostBack="false" PreviewColor="False"
                                        ShowEmptyColor="False" ShowIcon="True">
                                        <telerik:ColorPickerItem Title="rsCategory000000" Value="#000000" />
                                        <telerik:ColorPickerItem Title="rsCategory0000ff" Value="#0000ff" />
                                        <telerik:ColorPickerItem Title="rsCategory003d79" Value="#003d79" />
                                        <telerik:ColorPickerItem Title="rsCategory008000" Value="#008000" />
                                        <telerik:ColorPickerItem Title="rsCategory008080" Value="#008080" />
                                        <telerik:ColorPickerItem Title="rsCategory092bcc" Value="#092bcc" />
                                        <telerik:ColorPickerItem Title="rsCategory0ed850" Value="#0ed850" />
                                        <telerik:ColorPickerItem Title="rsCategory16aa06" Value="#16aa06" />
                                        <telerik:ColorPickerItem Title="rsCategory202b3f" Value="#202b3f" />
                                        <telerik:ColorPickerItem Title="rsCategory29b382" Value="#29b382" />
                                        <telerik:ColorPickerItem Title="rsCategory2b3f20" Value="#2b3f20" />
                                        <telerik:ColorPickerItem Title="rsCategory2b4f53" Value="#2b4f53" />
                                        <telerik:ColorPickerItem Title="rsCategory333333" Value="#333333" />
                                        <telerik:ColorPickerItem Title="rsCategory353db0" Value="#353db0" />
                                        <telerik:ColorPickerItem Title="rsCategory3c4d17" Value="#3c4d17" />
                                        <telerik:ColorPickerItem Title="rsCategory3f2020" Value="#3f2020" />
                                        <telerik:ColorPickerItem Title="rsCategory3f3209" Value="#3f3209" />
                                        <telerik:ColorPickerItem Title="rsCategory470ae9" Value="#470ae9" />
                                        <telerik:ColorPickerItem Title="rsCategory4f3b6e" Value="#4f3b6e" />
                                        <telerik:ColorPickerItem Title="rsCategory514389" Value="#514389" />
                                        <telerik:ColorPickerItem Title="rsCategory519763" Value="#519763" />
                                        <telerik:ColorPickerItem Title="rsCategory540042" Value="#540042" />
                                        <telerik:ColorPickerItem Title="rsCategory5fe007" Value="#5fe007" />
                                        <telerik:ColorPickerItem Title="rsCategory65657a" Value="#65657a" />
                                        <telerik:ColorPickerItem Title="rsCategory674750" Value="#674750" />
                                        <telerik:ColorPickerItem Title="rsCategory6e4731" Value="#6e4731" />
                                        <telerik:ColorPickerItem Title="rsCategory7a350d" Value="#7a350d" />
                                        <telerik:ColorPickerItem Title="rsCategory7a3552" Value="#7a3552" />
                                        <telerik:ColorPickerItem Title="rsCategory7a7703" Value="#7a7703" />
                                        <telerik:ColorPickerItem Title="rsCategory800000" Value="#800000" />
                                        <telerik:ColorPickerItem Title="rsCategory803eb0" Value="#803eb0" />
                                        <telerik:ColorPickerItem Title="rsCategorya1eed4" Value="#a1eed4" />
                                        <telerik:ColorPickerItem Title="rsCategorya633a6" Value="#a633a6" />
                                        <telerik:ColorPickerItem Title="rsCategoryadd8e6" Value="#add8e6" />
                                        <telerik:ColorPickerItem Title="rsCategoryb44612" Value="#b44612" />
                                        <telerik:ColorPickerItem Title="rsCategoryb90000" Value="#b90000" />
                                        <telerik:ColorPickerItem Title="rsCategorybbd0ec" Value="#bbd0ec" />
                                        <telerik:ColorPickerItem Title="rsCategorycbab12" Value="#cbab12" />
                                        <telerik:ColorPickerItem Title="rsCategoryd0ecbb" Value="#d0ecbb" />
                                        <telerik:ColorPickerItem Title="rsCategoryd267d3" Value="#d267d3" />
                                        <telerik:ColorPickerItem Title="rsCategoryecbbbb" Value="#ecbbbb" />
                                        <telerik:ColorPickerItem Title="rsCategoryedd5b7" Value="#edd5b7" />
                                        <telerik:ColorPickerItem Title="rsCategoryefe908" Value="#efe908" />
                                        <telerik:ColorPickerItem Title="rsCategoryf1dcff" Value="#f1dcff" />
                                        <telerik:ColorPickerItem Title="rsCategoryf48a18" Value="#f48a18" />
                                        <telerik:ColorPickerItem Title="rsCategoryff6600" Value="#ff6600" />
                                        <telerik:ColorPickerItem Title="rsCategoryfffbc7" Value="#fad196" />
                                        <telerik:ColorPickerItem Title="rsCategoryfffbc7" Value="#fffbc7" />
                                    </telerik:RadColorPicker>
                                </td>
                            </tr>
                        </table>
                    </div>
                </asp:Panel>
            </ItemTemplate>
        </asp:Repeater>
        <asp:HiddenField ID="HiddenField1" runat="server" Value="" />
    </asp:Panel>

    Reply

  • Niko Niko admin's avatar

    Posted on Jun 30, 2011 (permalink)

    Hi Joshua,

      After extended testing in the major browsers on the market today, i.e. IE, Firefox, Chrome, Opera and Safari. I couldn't reproduce the issue that you are reporting. The only browser that performed a bit worse was the newest version of Firefox, but the memory consumption didn't go very high altogether. With the other browsers the memory usage varied in a range from around 2-3 MB.
    Still we will observe more closely the behavior of the ColorPicker in various scenarios.

    Thank you for your active involvement in this matter.

    Kind regards,
    Niko
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ColorPicker > Multiple RadColorPickers consuming too much memory
Related resources for "Multiple RadColorPickers consuming too much memory"

ASP.NET ColorPicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]