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...
<
MasterTableView
GridLines
=
"None"
Width
=
"100%"
GroupLoadMode
=
"Client"
DataKeyNames
=
"Title"
AllowMultiColumnSorting
=
"True"
HierarchyLoadMode
=
"Client"
HierarchyDefaultExpanded
=
"true"
ExpandCollapseColumn-ButtonType
=
"ImageButton"
ExpandCollapseColumn-CollapseImageUrl
=
"/_layouts/images/minus.gif"
ExpandCollapseColumn-ExpandImageUrl
=
"/_layouts/images/plus.gif"
>
public GridDateTimeColumn AddGridDateTimeColumn(string columnHeader,string columnDataField,string uniqueName,string formatString,double percentWidth,bool readOnly,bool visible) { GridDateTimeColumn dateTimeColumn = new GridDateTimeColumn { HeaderText = columnHeader, DataField = columnDataField, UniqueName = uniqueName, ReadOnly = readOnly, Visible = visible, DataFormatString = formatString, PickerType = GridDateTimeColumnPickerType.DatePicker, DataType = typeof(DateTime) }; dateTimeColumn.ItemStyle.Width = Unit.Percentage(percentWidth); TelerikGrid.MasterTableView.Columns.Add(dateTimeColumn); return dateTimeColumn; }
GridEditableItem editedItem = e.Item as GridEditableItem; GridEditManager editMan = editedItem.EditManager;if (!(e.Item is GridEditFormInsertItem)){GridDateTimeColumnEditor dateTimeEditor = editMan.GetColumnEditor("StatementEndDateUniqueName") as GridDateTimeColumnEditor;} The GetColumnEditor method throws error Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: Editor cannot be initialized for column: StatementEndDateUniqueName The StatementEndDateUniqueName is valid. I am able to view the data , but while in Edit Mode, I get the error. Can someone help me with this? Thanks, Sunil Dixit
RadToolTipManager1.TargetControls.Clear();
However, I would like to do it on the client - OnClientHide event. My scenario is having a DetailView on the tooltip, all my fields are bind correctly, however for some reason there is a checkbox that start showing the value of true after i mouse over a record that has a value of true.
When I change the page it stop happening, given that the Radgrid_ItemCommand calls the above RadtooltipManager1.TargetControls.Clear() statement I suppose. however, once i mouse over a record with the checkbox value = true all my record in the page start showing value = true. It is important to point out that this is the only field in the detailview that is doing this.
I think that clearing the control everytime it hides can do the trick, how do i call the above clear statment on the client?
function OnClientHide(sender, eventArgs)
{
// RadTooltipManager Clear Statement.
}
function
OnEditorLoad(editor, args) {
if
(editor) {
editor.get_filtersManager().add(
new
myConvertFilter());
editor.attachEventHandler(
"onkeydown"
, reKeyDown);
editor.attachEventHandler(
"onkeyup"
, reKeyDown);
}
}
myConvertFilter =
function
() {
myConvertFilter.initializeBase(
this
);
this
.set_isDom(
false
);
this
.set_enabled(
true
);
this
.set_name(
"html filter"
);}
myConvertFilter.prototype =
{
getHtmlContent :
function
(content)
{
var
IndexValue = document.getElementById(
'ctl00_ContentPlaceHolder1_akvAssets_ucTextEditor_mpTextEditor_ucta_ddlOutputChannel'
).selectedIndex;
var
SelectedVal = document.getElementById(
'ctl00_ContentPlaceHolder1_akvAssets_ucTextEditor_mpTextEditor_ucta_ddlOutputChannel'
).options[IndexValue].value;
var
newContent = content;
if
(SelectedVal ==
"1"
) {
newContent = newContent.replace(/©/g,
"\[c\]"
);
newContent = newContent.replace(/®/g,
"\[r\]"
);
newContent = newContent.replace(/â„¢/g,
"\[t\]"
);
newContent = newContent.replace(/•/g,
"\[b\]"
);
newContent = newContent.replace(/–/g,
"\[n\]"
);
newContent = newContent.replace(/—/g,
"\[m\]"
);
newContent = newContent.replace(/¶/g,
"\[ps\]"
);
newContent = newContent.replace(/§/g,
"\[ds\]"
);
newContent = newContent.replace(/†/g,
"\[da\]"
);
newContent = newContent.replace(/‡/g,
"\[dd\]"
);
newContent = newContent.replace(/<STRONG>/g,
"<b>"
);
newContent = newContent.replace(/<\/STRONG>/g,
"<\/b>"
);
newContent = newContent.replace(/<FONT/g,
"<font"
);
newContent = newContent.replace(/<\/FONT>/g,
"<\/font>"
);
newContent = newContent.replace(/<B>/g,
"<b>"
);
newContent = newContent.replace(/<\/B>/g,
"<\/b>"
);
newContent = newContent.replace(/<strong>/g,
"<b>"
);
newContent = newContent.replace(/<\/strong>/g,
"<\/b>"
);
newContent = newContent.replace(/<U>/g,
"<u>"
);
newContent = newContent.replace(/<\/U>/g,
"<\/u>"
);
newContent = newContent.replace(/<BR>/g,
"<br>"
);
newContent = newContent.replace(/<\/BR>/g,
"<\/br>"
);
newContent = newContent.replace(/<SUP>/g,
"<sup>"
);
newContent = newContent.replace(/<\/SUP>/g,
"<\/sup>"
);
newContent = newContent.replace(/<EM>/g,
"<i>"
);
newContent = newContent.replace(/<\/EM>/g,
"<\/i>"
);
newContent = newContent.replace(/<I>/g,
"<i>"
);
newContent = newContent.replace(/<\/I>/g,
"<\/i>"
);
newContent = newContent.replace(/<P/g,
"<p"
);
newContent = newContent.replace(/<\/P>/g,
"<\/p>"
);
newContent = newContent.replace(/<T/g,
"<t"
);
newContent = newContent.replace(/<\/T>/g,
"<\/t>"
);
newContent = newContent.replace(/align=/g,
"alignment="
);
}
return
newContent;},
getDesignContent :
function
(content)
{
var
IndexValue = document.getElementById(
'ctl00_ContentPlaceHolder1_akvAssets_ucTextEditor_mpTextEditor_ucta_ddlOutputChannel'
).selectedIndex;
var
SelectedVal = document.getElementById(
'ctl00_ContentPlaceHolder1_akvAssets_ucTextEditor_mpTextEditor_ucta_ddlOutputChannel'
).options[IndexValue].value;
var
newContent = content;
if
(SelectedVal ==
"1"
) {
newContent = newContent.replace(/\[c\]/g,
"©"
);
newContent = newContent.replace(/\[r\]/g,
"®"
);
newContent = newContent.replace(/\[t\]/g,
"â„¢"
);
newContent = newContent.replace(/\[b\]/g,
"•"
);
newContent = newContent.replace(/\[n\]/g,
"–"
);
newContent = newContent.replace(/\[m\]/g,
"—"
);
newContent = newContent.replace(/\[ps\]/g,
"¶"
);
newContent = newContent.replace(/\[ds\]/g,
"§"
);
newContent = newContent.replace(/\[da\]/g,
"†"
);
newContent = newContent.replace(/\[dd\]/g,
"‡"
);
newContent = newContent.replace(/<b>/g,
"<STRONG>"
);
newContent = newContent.replace(/<\/b>/g,
"<\/STRONG>"
);
newContent = newContent.replace(/<font/g,
"<FONT"
);
newContent = newContent.replace(/<\/font>/g,
"<\/FONT>"
);
newContent = newContent.replace(/<b>/g,
"<B>"
);
newContent = newContent.replace(/<\/b>/g,
"<\/B>"
);
newContent = newContent.replace(/<b>/g,
"<strong>"
);
newContent = newContent.replace(/<\/b>/g,
"<\/strong>"
);
newContent = newContent.replace(/<u>/g,
"<U>"
);
newContent = newContent.replace(/<\/u>/g,
"<\/U>"
);
newContent = newContent.replace(/<br>/g,
"<BR>"
);
newContent = newContent.replace(/<\/br>/g,
"<\/BR>"
);
newContent = newContent.replace(/<sup>/g,
"<SUP>"
);
newContent = newContent.replace(/<\/sup>/g,
"<\/SUP>"
);
newContent = newContent.replace(/<i>/g,
"<EM>"
);
newContent = newContent.replace(/<\/i>/g,
"<\/EM>"
);
newContent = newContent.replace(/<i>/g,
"<I>"
);
newContent = newContent.replace(/<\/i>/g,
"<\/I>"
);
newContent = newContent.replace(/<p/g,
"<P"
);
newContent = newContent.replace(/<\/p>/g,
"<\/P>"
);
newContent = newContent.replace(/<t/g,
"<T"
);
newContent = newContent.replace(/<\/t>/g,
"<\/T>"
);
newContent = newContent.replace(/alignment=/g,
"align="
);
}
return
newContent; }
}
myConvertFilter.registerClass(
'myConvertFilter'
, Telerik.Web.UI.Editor.Filter);
this
.set_isDom(
false
);
this
.set_enabled(
true
);
this
.set_name(
"html filter"
);