Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
107 views
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...
Niko
Telerik team
 answered on 30 Jun 2011
2 answers
292 views
Hi
How do i change the mouse cursor for the menu so that  it is a hand when the user hovers over a menu item rather than an arrow?
thanks
NetGuru
Top achievements
Rank 1
 answered on 30 Jun 2011
5 answers
2.2K+ views
Hello,

I am using RadGrid from RadControls for ASP.NET v2008.1.619 to display and edit TEXT fields from a Microsoft SQL Server database.

I am trying to insert line breaks in the text using an ASP.NET TextBox (multi-line) in an EditFormTemplate.  When I press Enter the line break works as expected.  When I update the RadGrid the text in the RadGrid is not honoring the line break.  I also tried using Shift-Enter which works in the ASP.NET TextBox but when displayed back in the Grid after updating does not work.  I tried using <br> tags but they just render in grid as <br> and do not break the line.

Is there a way to enter line breaks and have them work in the RadGrid?

Thanks,

Randall Price
Randall
Top achievements
Rank 2
 answered on 30 Jun 2011
3 answers
152 views
I've been searching around and I can't find anything pointing me in the right direction to do this. I need to add a custom attribute to each checkbox associated with a RadTreeNode inside of a RadTreeView. Not every node is checkable, but for the ones that are I need to figure out a way to add a custom attribute to those checkboxes. Does anyone have any suggestions?

Let me know if you need more info to help me out.
Dave
Top achievements
Rank 1
 answered on 30 Jun 2011
6 answers
669 views
Hi,

I am using radgrid for a long time now. Earlier I simply use to throw exceptions which occurred in RadGrid ItemCommand or InsertCommand or UpdateCommand and they use to appear as alerts in IE.

I don't know whether it was IE version update or rad grid version update or did I missed some property of RadGrid because of which instead of alerts all my validations are appearing as IE errors.

I just wish to catch exceptions inside RadGrid ItemCommand or InsertCommand or UpdateCommand and show them as alerts. Please help me out with this.

Thanks
Dante696
Top achievements
Rank 1
 answered on 30 Jun 2011
2 answers
138 views
Hi,

When MasterTableView is Set with HierarchyLoadMode="Client" HierarchyDefaultExpanded="true", the custom edit form on DetailsTable does not load. And also all the items within that hierarchy disappear with edit button is clicked.
<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">

Can you please let me know how to load the edit form (UserControl) on child items with HierarchyLoadMode="Client" HierarchyDefaultExpanded="true" set on master tableview?

Regards,
Kalyan
Kalyan
Top achievements
Rank 1
 answered on 30 Jun 2011
3 answers
435 views
We are programmatically creating the grid in the code base.

We have added a DateTime column in the Grid by the following way

  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;
        }


When we click on Edit button on the row of the Grid.

I am trying to fetch the GridDateTimeColumnEditor by the following line of code

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
Tsvetina
Telerik team
 answered on 30 Jun 2011
1 answer
71 views
I am using Rad Charts in my ASP.Net pages.

My machine configuration is as folllows

Windows Edition: Windows Server 2008 R2 Enterprise
64-bit OS
It has IIS7 & .Net framework 3.5

My code details are as follows.

I am using Telerik.Web.UI.dll (version: 2009.2.701.35)


Added following in my Web.Config httpHandlers section.
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
            <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2009.2.701.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>

Also added ScriptManager tag to the top of our web page.


It worked fine when my website in the Classic ASP.Net application pool.
But gave error when my website is moved to integrated application pool.
redirecting to  /ChartImage.axd?UseSession=true&ChartID=f83b7f0a-99df-4b5b-bda9-cf3bb9613568_chart_ctl00$MainContentPlace$radCharts&imageFormat=Png&random=0.574960174772404


Can you please get back to me why I am getting this error?
What additional configurations I need to do to get the rad charts in my website when it is in inegrated application pool?

FYI: We are using SQL Server sessions. (Session State : SQL Server)

Thanks in advance

Regards
Naga Kiran
Giuseppe
Telerik team
 answered on 30 Jun 2011
5 answers
185 views
Greetings

I would like to Clear my RadTooltipManage similarly to how is Clear on the Tooltipified Radgrid example.

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.
        }


Svetlina Anati
Telerik team
 answered on 30 Jun 2011
3 answers
235 views
Hello Telerik!

Here's a challenge for you! I have implemented a RadEditor coupled with a RadTreeView(within a RadPanelBar) with Drag-and-Drop functionality packaged into a user control(example taken from this site).

When this user control is placed squarely onto an aspx page, it works perfectly fine. My problem is this, I have two instances of this user control within my web project: The one on the page(instance #1; works fine), and there is another instance placed within a custom user control(instance #2; broken); which is a custom-built(legacy) ModalPopup user control using an UpdatePanel. This ModalPopup is then placed within another user control(let's call it KeyView). And KeyView is placed on an aspx page within an UpdatePanel on the page.

I do realize that instance #2 is not ideal or optimal, but I have to figure out a way to make this work in the most time efficient manner possible; the various layers of UpdatePanels have created a multitude of issues with script tags and CSS within markup not being recognized. Most of these issues have been resolved when I migrated all of the script tags/CSS into external files and registered them from the code behind on the page.

The last remaining issue that I am seeing is that when I create a custom ContentFilter for my RadEditor, I am configuring what is seemingly basic functionality for the ContentFilter and it is not being recognized, I am attaching a screenshot of the error, and I will paste my code below:
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);

As you can see from the screenshot, it breaks on: this.set_isDom(false);. If I were to comment out that line, it breaks on any of the following lines:
this.set_isDom(false);
this.set_enabled(true);
this.set_name("html filter");

I am also seeing, and this is notated in the bordered section of the screenshot, that set_isDom, set_enabled, and set_name are not available methods of "this".

Anyway, I hope someone can shed some light on this issue, I welcome any and all suggestions and comments, I do realize that this is not an ideal way to be doing this. I just need some help on how to get this to a working state until I can have enough time to fix this in a proper manner.

Thanks in advance!
Dobromir
Telerik team
 answered on 30 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?