Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
118 views
I moved my implementation to use Master Pages now the CheckedNodes.Count is always 0.The code is below.

RadTreeView RadTreeView1 = (RadTreeView)Master.FindControl ("RadTreeView1");
checkedCategories = RadTreeView1.CheckedNodes.Count;
It worked fine when it was on the same page. I don't have RadFormDecorator.
Tonyz289
Top achievements
Rank 1
 answered on 03 Nov 2011
2 answers
189 views
Hello. I have followed the instructions in this article in order to display a custom loading panel when opening a RadWindow:

http://www.telerik.com/support/kb/aspnet-ajax/window/custom-loading-sign-for-radwindow.aspx

This worked great for me - thanks for putting it together. I am noticing, however, that the custom loading panel only displays correctly the first time the window is loaded - every time after that, the loading panel is not displayed correctly, even when ReloadOnShow=true for the window. When the entire page is reloaded, the loading panel displays correctly, but again, only on the first show.

I have modified the sample project from the above link to demontrate the problem and included both code and images displaying the behavior.

Default.aspx - Defines a window with ReloadOnShow=true that uses a custom loading panel
<%@ Page Language="C#" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrfix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .rwLoading
        {
            background-image: none !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
 
    <script type="text/javascript">
        var loadingSign = null;
        var contentCell = null;
        function openRadWnd()
        {
            $find("<%=RadWindow1.ClientID %>").show();
        }
 
        function OnClientShow(sender, args)
        {
            loadingSign = $get("loading");
            contentCell = sender._contentCell;
            if (contentCell && loadingSign)
            {
                contentCell.appendChild(loadingSign);
                contentCell.style.verticalAlign = "middle";
                loadingSign.style.display = "";
            }
        }
 
        function OnClientPageLoad(sender, args)
        {
            if (contentCell && loadingSign)
            {
                contentCell.removeChild(loadingSign);
                contentCell.style.verticalAlign = "";
                loadingSign.style.display = "none";
            }
        }
     
    </script>
 
    <telerik:RadWindow ID="RadWindow1" runat="server" NavigateUrl="ChildPage.aspx" ShowContentDuringLoad="false"
        OnClientShow="OnClientShow" OnClientPageLoad="OnClientPageLoad" ReloadOnShow="true">
    </telerik:RadWindow>
 
    <input type="button" id="btnOpen" value="Click once, close the window, and then click again - loading panel will not display correctly the second time" onclick="openRadWnd(); return false;" />
    
    <div id="loading" style="border: solid 1px Red; width: 100px; height: 50px; display: none;
        text-align: center; margin: auto;">
        Custom<br />
        loading....
    </div>
    </form>
</body>
</html>

Child.aspx - The window content
<%@ Page Language="C#" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
 
    <script type="text/C#" runat="server">
     
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Threading.Thread.Sleep(3000);
        }
         
    </script>
 
    TEST CONTENT
    </form>
</body>
</html>

Thank you for your help.
Luke
Top achievements
Rank 1
 answered on 03 Nov 2011
4 answers
454 views
Hi,

I think the title of this thread is clear enough to know what I really want to get, isn´t it? :-)

I want somehow to access to filter options of header context menu and delete "Group by" and "Ungroup" options from this menu. Is is possible?

Thank you in advance
July
Top achievements
Rank 2
 answered on 03 Nov 2011
2 answers
186 views
How to clear the session variable on window close.
In other words,
After the window close it should clear all the session variable

Any help?
Eva
Top achievements
Rank 1
 answered on 03 Nov 2011
3 answers
1.1K+ views
I have a grid that has databound columns that are defined in the aspx code.  When preparing the data for NeedDataSource(), more columns will be dynamically added to the right side of the grid.  This all works great.  My problem is that some of these dynamically added columns will need the color of the font of the LinkButton (for sorting) in the header to turn gray once databound.  Which header column needs to change will be tracked on the server side.  So my question is:  Where is the best place on the server side (which event) to change the font color for the header column and how?

I've tried setting the .ForeColor property to gray & setting the .CssClass property in the ItemCreated, ItemDatabound, & PreRender events to no avail.  I do have a custom skin on my grid.
Rob
Top achievements
Rank 1
 answered on 03 Nov 2011
3 answers
377 views
Hello,

I am using asp.net ajax radeditor 2009.3.1314.35. I have tried the solution from "Error: Web.config registration missing! The Telerik dialogs require a HttpHandler registration in the web.config file." but no help. Actually on my localhost the solution works but on the server it always gives me this error and throws the dialog window to the login page.

---------------------------
Message from webpage
---------------------------
Web.config registration missing!
 The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatically, or see the help for more information: Controls > RadEditor > Dialogs > Introduction
---------------------------
OK   
---------------------------

Any idea whats wrong ?

Rumen
Telerik team
 answered on 03 Nov 2011
8 answers
109 views
Hi,

I have a rating column inside a ragrid, which usually works fine, however I am encountering an error when I add new items to it for the first time.

If items are loaded from the database, then they appear correctly, however if I update the previously empty data source with a new item, the rating column will display hyperlinks for 1,2,3,4,5, rather than the star images that are usually present.  Please see the attached screenshots for more details.

I haven't come across this problem anywhere else on the forum, so any help would be appreciated.
Mathew
Top achievements
Rank 1
 answered on 03 Nov 2011
3 answers
131 views
I use MasterPage .
In master page, I put RadScriptManager and RadAjaxManager in it.
In child page, I put RadAjaxManagerProxy in it. A RadAjaxPanel with several controls in it.
Two buttons controls the RadAjaxPanel's sub-controls visibilty.
When RadEditor set visible=false, then set visible=true, the RadEditor will not work.


Site1.Master
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="TestRadControlMP.Site1" %>
  
<%@ 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 runat="server">
    <title></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
          
        </asp:ContentPlaceHolder>
    </div>
    </form>
</body>
</html>

Site1.Master.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
namespace TestRadControlMP
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
  
        }
    }
}


WebForm1.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="WebForm1.aspx.cs" Inherits="TestRadControlMP.WebForm1" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Button1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="Button2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
    <br />
    1. Click Button2
    <br />
    2. Click Button1
    <br />
    3. RadEditor、RadComboBox does not work.
    <br />
    <asp:Button ID="Button1" runat="server" Text="Button1" 
        onclick="Button1_Click" />
    <asp:Button ID="Button2" runat="server" Text="Button2" 
        onclick="Button2_Click" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">
        <telerik:RadEditor ID="RadEditor1" runat="server">
        </telerik:RadEditor>
        <telerik:RadTextBox ID="RadTextBox1" runat="server">
        </telerik:RadTextBox>
        <telerik:RadComboBox ID="RadComboBox1" runat="server">
            <Items>
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem1" 
                    Value="RadComboBoxItem1" />
                <telerik:RadComboBoxItem runat="server" Text="RadComboBoxItem2" 
                    Value="RadComboBoxItem2" />
            </Items>
        </telerik:RadComboBox>
    </telerik:RadAjaxPanel>
</asp:Content>

WebForm1.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
namespace TestRadControlMP
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
  
        }
  
        protected void Button1_Click(object sender, EventArgs e)
        {
            RadEditor1.Visible = true;
            RadTextBox1.Visible = true;
            RadComboBox1.Visible = true;
        }
  
        protected void Button2_Click(object sender, EventArgs e)
        {
            RadEditor1.Visible = false;
            RadTextBox1.Visible = false;
            RadComboBox1.Visible = false;
        }
    }
}


Web.Config
<?xml version="1.0"?>
<configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
    </handlers>
  </system.webServer>
</configuration>
Ray
Top achievements
Rank 1
 answered on 03 Nov 2011
2 answers
97 views

Dear  All ,

    Kindly help me regarding the following issue.

Issue :     I toogled a background image to Rad combox  control.
                style class is as follows 
                

.RadComboBox_SP .rcbArrowCell a
{
    position: relative;
    outline: 0;
    overflow: hidden;
    display: block;
    width: 18px;
    height: 16px;
    text-decoration: none;
    text-indent: -9999px;
    font-size: 1px;
    background-image: url('../../myImages/png_search.png');
    background-repeat: no-repeat;   
}

the toogled image is  not getting set properly in IE 7.0  ,

please find the attached screen shot ,  i  placed Radcombobox inside a repeater ,when ever i start click on add new line gets add to the repeater , once the vertical scroll overflows toogled image is comming out . this is happening with IE 7 only (working fine with IE8) . but my requirement is to make it proper in IE 7.

 

Please help me to  solve  this issue .

please go through the attached screen shot.
                  
Thanks in Advance
          

Ivana
Telerik team
 answered on 03 Nov 2011
1 answer
159 views
Greetings,

I have been searching for the solution for a while now but can't understand where it comes from:

The situation is simple, with this code:

<telerik:GridTemplateColumn UniqueName="Debriefing">
    <ItemTemplate>
        <asp:HyperLink runat="server" ID="DebriefingRDV" Text="Rapport"></asp:HyperLink>
    </ItemTemplate>
</telerik:GridTemplateColumn>

"Rapport" appears in my grid but i can't click on it! this is just text!

Thank you for your help!
Adigard
Top achievements
Rank 1
 answered on 03 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?