Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
98 views
Hello,

I have an existing master page that has worked without issue for a number of applications for a long time.

I (late to the party) added a RadAjaxLoadingPanel with a RadAjaxManager:

Navigating to a page with a RadGrid in the child page within the MainUpdatePanel, I see the Ajax loading image while the grid is waiting for results. However, when the grid finishes receiving the results (I think), I see a number of modal alerts with the following web page error:

Error: 'undefined' is null or not an object

This repeats then the page displays without any content rendered within the MainUpdatePanel area.

Clicking a RadMenu link in the header to navigate results in:

Error: Object required

Then navigation to the requested page proceeds with no other issue.

Can you help me to identify the cause? I have reproduced the issue with the following Master Page stripped of unnecessary items (no code-behind required).

Master Page

<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="SiteMaster.master.cs" Inherits="SampleWebApplication.SiteMaster" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>Test</title>
</head>
<body>
    <form id="MainForm" runat="server">
  
        <telerik:RadScriptManager ID="TelerikScriptManager" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
  
        <telerik:RadAjaxManager ID="TelerikAjaxManager" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="MainUpdatePanel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="MainUpdatePanel" LoadingPanelID="TelerikAjaxLoadingPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
  
        <telerik:RadMenu ID="MajorNavMenu" runat="server">
            <CollapseAnimation Duration="200" Type="OutQuint" />
            <ExpandAnimation Type="None" />
            <Items>
                <telerik:RadMenuItem runat="server" NavigateUrl="~/Default.aspx" Text="Home"></telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>
  
        <asp:UpdatePanel ID="MainUpdatePanel" runat="server">
            <ContentTemplate>
  
                <asp:ContentPlaceHolder ID="MainContentPlaceHolder" runat="server">
                </asp:ContentPlaceHolder>
  
            </ContentTemplate>
        </asp:UpdatePanel>
  
        <telerik:RadAjaxLoadingPanel ID="TelerikAjaxLoadingPanel" runat="server">
        </telerik:RadAjaxLoadingPanel>
  
    </form>
</body>
</html>

Content Page

<%@ Page Title="Home" Language="C#" MasterPageFile="~/SiteMaster.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="SampleWebApplication.Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
  
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
  
    <asp:Button 
        id="DoSearch" 
        runat="server" 
        Text="Search" 
        OnClick="DoSearch_OnClick" 
        Width="195">
    </asp:Button>
  
    <telerik:RadGrid ID="SearchResults" runat="server" AutoGenerateColumns="False" CellSpacing="0" GridLines="None">
        <MasterTableView DataKeyNames="TestValue">
            <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
            <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
            </RowIndicatorColumn>
            <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
            </ExpandCollapseColumn>
            <Columns>
                <telerik:GridBoundColumn DataField="TestValue" HeaderText="Test Value">
                </telerik:GridBoundColumn>
            </Columns>
            <EditFormSettings>
                <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                </EditColumn>
            </EditFormSettings>
        </MasterTableView>
        <FilterMenu EnableImageSprites="False">
        </FilterMenu>
        <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
        </HeaderContextMenu>
    </telerik:RadGrid>
  
</asp:Content>

Content Page Code-behind

namespace SampleWebApplication
{
    using System;
  
    public partial class Default : System.Web.UI.Page
    {
        private readonly dynamic testData = new[]
        {
            new { TestValue = "Test Value 1" },
            new { TestValue = "Test Value 2" },
            new { TestValue = "Test Value 3" },
            new { TestValue = "Test Value 4" },
            new { TestValue = "Test Value 5" },
            new { TestValue = "Test Value 6" },
            new { TestValue = "Test Value 7" },
            new { TestValue = "Test Value 8" },
            new { TestValue = "Test Value 9" },
            new { TestValue = "Test Value 10" }
        };
  
        protected void DoSearch_OnClick(object sender, EventArgs e)
        {
            this.SearchResults.DataSource = testData;
            this.SearchResults.DataBind();
        }
    }
}

Thank you!

Richard
Maria Ilieva
Telerik team
 answered on 26 Jul 2011
1 answer
121 views

When a node of the treeview (in a combobox) is clicked, the text and value of this node is set to the selected item of the combobox. client side this works well. serverside the selectedvalue is rondomly empty.

function
nodeClicking(sender, args) {

 

 

var comboBox = $find("<%= cbEmployees.ClientID %>");

 

 

var node = args.get_node()

 

comboBox.set_text(node.get_text());

comboBox.trackChanges();

 

var item = comboBox.get_items().getItem(0);

 

item.set_value(node.get_value());

item.set_text(node.get_text());

comboBox.commitChanges();

comboBox.hideDropDown();

comboBox.attachDropDown();

}

Shinu
Top achievements
Rank 2
 answered on 26 Jul 2011
5 answers
109 views
Hello

I am getting text from radtreeview and trying to put the text in radeditor

i am doing it using fallowing JavaScript it is working fine in chrome. In IE8 pasteHtml is overwriting previous content in radeditor
function SetPlaceHolders(sender, args) {
     
            var Tree = $find("<%=RadTreeView_CommonControls.ClientID%>");
            var selectedNode = Tree.get_selectedNode();
            var text = selectedNode.get_value();
 
            if (text != null) {
             
 
                var editor = $find('<%= RadEditor_setupContent.ClientID  %>');
                          
                 editor.pasteHtml(text);
            }
        }
 i have tried fallowing links still i am facing same problem :

http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-replacing-all-text-in-ie8.aspx
http://www.telerik.com/community/forums/aspnet-ajax/editor/pastehtml-after-node-at-cursor-position.aspx
Thanks and regards
Alekhya
Dobromir
Telerik team
 answered on 26 Jul 2011
1 answer
129 views
Some of the issues I notice with ImageEditor demo on the Telerik site, is that the dialogs are slow. It's almost like it's using the same window to display all the dialogs. Is this a correct assumption and is it only me who experiences this slowness (in IE7 it's more noticeable, but in Chrome there is only a slight noticeable delay)?

Another issue I notice is that when you insert text, it looks pixelated, almost like there isn't any Anti-Aliasing going on with the text. Is this something that will be fixed?

Those are just some of the issues I notice with the RadImageEditor control demo.
Niko
Telerik team
 answered on 26 Jul 2011
2 answers
84 views
Hi ,

   Am using Radgrid having 200 columns with 5 to 10 rows only retrive. But it take long time to retrive. There is any way to increse the performance.

thanks,
vinoth
vinoth sansar
Top achievements
Rank 2
 answered on 26 Jul 2011
1 answer
228 views
Hi,

I can't seem to find a way to stop the resizing feature of the RadTextBox. Need to have this feature to keep website consistent with other Telerik controls.

Can somebody help please?

Andrew
Galin
Telerik team
 answered on 26 Jul 2011
2 answers
85 views
I was hoping to not need to redo all of my Telerik RadEditor web parts but that might be the case.  My thought was that by adding...
<dependentAssembly>
        <assemblyIdentity name="RadEditorSharepoint" publicKeyToken="1f131a624888eeed" culture="neutral" />
        <bindingRedirect oldVersion="6.1.3.0" newVersion="6.1.6.0" />
      </dependentAssembly>

Stil says it can't find 6.1.3.0.

What do I have wrong or am I out of luck?
Clint
Top achievements
Rank 1
 answered on 26 Jul 2011
1 answer
232 views
Hi,

Requirement:
     if any value of control change a flaf "dirty" is set to true else it is false. When user leave that page and if dirty flag is true. He is asked to save records or close window without saving.

We are using below script to find dirty flag for all the controls.

<script>
 
 
    var isDirty = false;
    var resetControls = ""// should be in , separated with # in ids
	var msg = 'You haven\'t saved your changes.\n Do you want to save changes ?';
 
 
 
 
	$(document).ready(function () {
	    alert($(".section :hidden").length);
	    
	    $(":submit,:reset ").click(function () {
	        isDirty = false;
	        alert("Dirty flag reset");
	    });
	    $(':input').change(function () {
	        if (!isDirty) {
	            alert("Dirty flag set")
	            isDirty = true;
	        }
	    });
 
	    window.onbeforeunload = function () {
	        if (isDirty) {
	            return msg;
	        }
	    };
 
	});
 
 
</script>

Above script is working fine with all input controls except hidden fields. Specifically RadComboBox and RadDatePicker are using hidden fields to post data.

Could you please provide solution so that we can check dirty flag with rad controls ?
Kalina
Telerik team
 answered on 26 Jul 2011
2 answers
190 views
Hello,

I need to render a RadMenu from code behind; I would like to do simply calling a sub (will be responsible to generate the menu) but I did not find anything similar around.
The call will be something like:
BuildMenu()

This sub will do the following:

Define the root menu and build the submenu for each root.

How can I acheive this?
Thanks
Kate
Telerik team
 answered on 26 Jul 2011
2 answers
102 views
I'd need to display an Export to Pdf icon to the RadGrid control (CommandItemSettings.ShowExportToPdfButton = true) but with a custom implementation of my own as I'm using an external tool for the export to pdf.

How would that be possible to overwrite the default PdfExport functionality?

Please advise.

Many thanks,

Pooya
Top achievements
Rank 1
 answered on 26 Jul 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?