Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
181 views
Hi,

We are using RadSearchBox on one of our ASP.NET WebForms application pages and have noticed browser memory leaks running in IE8 (using
sIEve to detect the memory leaks).

It appears that leaks occur when SearchContextItems are added to the RadSearchBox.

I have created a sample app that demonstrates the leaks. The sample app is built in VS2012 .NET 4.0 using Telerik RadControls for Ajax Q3 2013 v 2013.3.1114.40.

Attached is screenshot of sIEve results. Memory usage in red is when I reloaded the page (ie, click Go button). Memory usage in green is when I unloaded the page (ie, clicking about:blank).

It is likely that upgrading to a newer browser would correct the leaks, but unfortunately, we're mandated by corporate IT to use IE8 and have no choice for upgrading the browser (Chrome and Firefox are not an option either).

Thanks in advance for any assistance you can provide.

Source Code:

default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="WebApplication4._default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>RadSearchBox Leak</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Scripts>
        </Scripts>
    </asp:ScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server" UpdatePanelsRenderMode="Inline"/>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" />
    <telerik:RadSearchBox ID="uxRadSearchBox" runat="server"  DropDownSettings-Width="80px" DropDownSettings-Height="50px" Width="360px" EnableAutoComplete="false">
        <SearchContext ShowDefaultItem="false">
        </SearchContext>
    </telerik:RadSearchBox>
    </form>
</body>
</html>

default.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication4
{
    public partial class _default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                Telerik.Web.UI.SearchContextItem item = null;
                string context = String.Empty;
                for (int i = 0; i < 3; i++)
                {
                    context = "Context" + i.ToString();
                    item = new Telerik.Web.UI.SearchContextItem(context, context);

                    // LEAK: Browser leak on the following line
                    this.uxRadSearchBox.SearchContext.Items.Add(item);
                }
            }
        }
    }
}

-ScottP
Dimitar Terziev
Telerik team
 answered on 19 Feb 2014
3 answers
168 views
Hi,

In the index.aspx of my web application i'm using a RadAjaxPanel do paginate a repeater . On top of the page is a list from A to Z where the user can navigate throught the letters for a faster pagination.

What i need is to enable the browser history for this pagination.

I have enabled the "EnableHistory=true" on the RadAjaxPanel and add some history point on the server side.
The browser history now shows every pagination, what is perfect.

But the problem is that when hit the back button on the browser, the event OnNavigateHistory is never called.

The question is : Is that possible to use RadAjaxPanel on this scenario ? How can I do it ?

Thanks,

Alfredo



Maria Ilieva
Telerik team
 answered on 19 Feb 2014
1 answer
67 views
hi
in Web.sitemap =>

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
  <siteMapNode title="Home" url="Default.aspx">
    <siteMapNode title="info Base" url="">
      <siteMapNode title="Provinces" url="~/AppUsers/addProvince.aspx"/>
      <siteMapNode title="Cities" url="~/AppUsers/addCity.aspx" />
      <siteMapNode title="Sender" url="~/AppUsers/addFactory.aspx" />
      <siteMapNode title="NMP" url="~/AppUsers/addRepresentation.aspx"/>
</siteMapNode>

and in web from =>


 <telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="RadSiteMapDataSource1" Skin="Web20" >  </telerik:RadMenu>
 <telerik:RadSiteMapDataSource ID="RadSiteMapDataSource1" runat="server" ShowStartingNode="false"  />


but when i see menu , menu show title and url . i wana to show title only in menu
show picture ( attach pic )
Boyan Dimitrov
Telerik team
 answered on 19 Feb 2014
1 answer
53 views

in web form =>


<telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="RadSiteMapDataSource1"  >  </telerik:RadMenu>
<telerik:RadSiteMapDataSource ID="RadSiteMapDataSource1" runat="server" ShowStartingNode="false"  />



in web.sitemap =>

<?xml version="1.0" encoding="utf-8" ?>
  <siteMapNode title="Home" url="Default.aspx">
    <siteMapNode title="Base info" url="">
      <siteMapNode title="provinces" url="~/AppUsers/addProvince.aspx"/>
      <siteMapNode title="Cities" url="~/AppUsers/addCity.aspx" />
      <siteMapNode title="Sender" url="~/AppUsers/addFactory.aspx" />
      <siteMapNode title="NVP" url="~/AppUsers/addRepresentation.aspx"/>
    </siteMapNode>

when i used this code , menu show url property (in sitemap) , but i wana to show title only and hide url.
 see the picture attachment file
please help me .

Boyan Dimitrov
Telerik team
 answered on 19 Feb 2014
45 answers
1.4K+ views
I had sorting, paging, and filtering all working together with a Object Data Source in the ASP.Net version.  I can get the paging and sorting to work in the new ASP.NET AJAX version, but I am having a problem with paging when using a filter.  Apparently, the maximumRows parameter of the data source is returning 2147483647 instead of 10 which is the value defined in the Page Size property.  The maximumRows parameter works fine while paging and sorting, so I don't understand why it doesn't seem to work while paging and filtering.

Al
Vasil
Telerik team
 answered on 19 Feb 2014
12 answers
852 views
I've inserted RadCaptcha control on login.aspx page.I've radscriptmanager on the same page.
when I run this page,in Firebug i found "src" property of image sets to -

src="../Telerik.Web.UI.WebResource.axd?type=rca&guid=bff339e1-b3e3-4af8-aaca-0ca8cf274883"

& if I hover mouse on this property it says "failed to load given URL."

but on other page I tried the same thing and found that src sets to
src="Telerik.Web.UI.WebResource.axd?type=rca&guid=bff339e1-b3e3-4af8-aaca-0ca8cf274883"

Difference is only "../"


Can you please tell me how to solve this problem?
In Firebug,If I manually remove syntax "../" from src property then only Image loads.

Please reply ASAP.


Thanks
Slav
Telerik team
 answered on 19 Feb 2014
2 answers
74 views
I want to create followign scinerio

On my page i hv on grid on click i open one popup it contains grid if user select one record then from that selected row only need to pick up 2 column value and bind that value into parent page grid values
Eyup
Telerik team
 answered on 19 Feb 2014
1 answer
41 views
This issue http://www.telerik.com/forums/issue-with-changing-the-background-of-active-filter#8qeqk4W15k-RS15ZY2UuRA does not work if I apply more than one filter in cascade (only one column is affected)
Could you help me?
Thanks
Eyup
Telerik team
 answered on 19 Feb 2014
3 answers
131 views
Hi,

I want to disabled ajax only for one button into my toolbar because i need to download a file and i have some problems with if the ajax is enabled.

function onAjaxRequestStartHandler(sender, args) {
      if (args.get_eventTarget().indexOf("RadToolBarReport") >= 0)
          if (myButtonExport is clicked) {
              args.set_enableAjax(false);
              }
       }

I look to replace IF (myButtonExport is clicked) by a javascript code to know what is the button clicked...

Someone can help me ?

ty
Kate
Telerik team
 answered on 19 Feb 2014
1 answer
143 views
RadGrid displays Button like plan text. 
 <Columns>
 <telerik:GridBoundColumn HeaderText="On Calendar" DataField="IsOnCalendar" UniqueName="IsOnCalendar" CurrentFilterFunction="EqualTo" AutoPostBackOnFilter="true" />
                            <telerik:GridBoundColumn HeaderText="Status" DataField="Status" UniqueName="Status" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true" Visible="false" FilterControlWidth="80px" />
 <telerik:GridTemplateColumn UniqueName="UpdateColumn" AllowFiltering="False">
   <ItemTemplate>
   <asp:Button ID="btnInactiveButton" ToolTip="Mark Inactive" runat="server" Text="Inactive" CommandName="Update" CommandArgument="0"            SkinID="defaultbutton" OnClientClick="return confirm('Are you sure you want to deactivate this?');" CausesValidation="false" />
<asp:Button ID="btnActivatebutton" ToolTip ="Mark Active" runat="server" Text="Activate" CommandName="Update" CommandArgument="1" SkinID="defaultbutton"
                                        OnClientClick="return confirm('Are you sure you want to activate this?');" CausesValidation="false" />
     </ItemTemplate>
 </telerik:GridTemplateColumn>
</Columns>

Buttons btnActivatebutton and btnInactiveButton show up like normal text. User will not know that they are buttons until they hover over them. I need fix for this.  Thnaks.



Shinu
Top achievements
Rank 2
 answered on 19 Feb 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?