Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
133 views
Q1 2010
VS 2010

Hi,
Some of my buttons have a white vertical line near the right end and sometimes one on the very end of the button too, using FormDecorator.  This is seemingly random and if I change the position or width of the buttons they will usually go return to how they should look.  Also, it is only in IE8 (not Firefox or Chrome), and in every skin but Simple.  Am I doing something wrong or is there a way to fix this?

An example screenshot is attached.  Thanks for any help!

Chris

Chris
Top achievements
Rank 1
 answered on 23 Aug 2010
5 answers
274 views
I am using a RadGrid with an EditForm of Type WebUserControl.  My User Control contains a form which has three dropdowns (Country, StateRegion, City).  When a user selects Country then I query and return a list of StateRegion which would then be bound to a RadComboBox for StateRegion.  Then when the user selects StateRegion I would query and return a list of City which would then be bound to a RadComboBox for cities.  Please help me understand how to do this as it appears as though the SelectedIndexChanged and/or TextChanged methods are not being called in my user control, only the Page events are getting called.
Kiara
Top achievements
Rank 1
 answered on 23 Aug 2010
2 answers
112 views
Is there some way to use a RadProgressArea without RadUpload? Like  monitoring  a long process with many database interactions , with a loading bar ?

Thanks in advance,
Fred

Fred
Top achievements
Rank 1
 answered on 23 Aug 2010
13 answers
459 views
Is there an easy way to make the entire heading of a grid column sortable so they don't have to click directly on the label to sort? 
Levi
Top achievements
Rank 1
 answered on 23 Aug 2010
1 answer
122 views
HI

I am planning to install Q2 2010 version in a fresh install of Visual Studio 201o,
while leaving VS 2008 with Q2 2009 for security of maintenance of exisiting sites.
Do you see an snags with this.

To install the Q2 2010 controls in the VS toolbox is it best to load the toolbox from the dll
manually rather than use the msi which might affect the old installation?

Thanks for any advice!

Clive

P.S sorry of this has appeared many times. I kept getting the sever error message
Sebastian
Telerik team
 answered on 23 Aug 2010
2 answers
80 views

Due to programatic circumstances I'm using a radScheduler with a dynamically added resource done like this:

Dim ds As DataSet
'Code to load dataset 
Dim rt As New Telerik.Web.UI.ResourceType 
rt.DataSource = ds
rt.Name = "Members" 
rt.ForeignKeyField = "user_id" 
rt.KeyField = "user_id" 
rt.TextField = "user_name" 
rsATSch.ResourceTypes.Add(rt)

Now what I'd like to do is to set the value of the resource when Mode = SchedulerFormMode.AdvancedInsert.
I've tried doing a e.Container.FindControl("Members") in the FormCreated event, but it always comes up Nothing.
 

So my question is, how do I set the value of a dynamically added resource on an AdvancedForm when adding an appointment?

 

 

SSirica
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 23 Aug 2010
3 answers
239 views
Hi,

I'm trying to use the ToolTipManager with a ToolBar but I can't get the tooltips to show.  I have the following:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Demo.aspx.cs" Inherits="ClientAdmin.Demo" %> 
 
<%@ 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"> 
 
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <div> 
     
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"
        </telerik:RadScriptManager> 
     
        <telerik:RadToolBar ID="RadToolBar1" Runat="server"
            <Items> 
                <telerik:RadToolBarButton Text="Save" Value="Save" CommandName="Save"></telerik:RadToolBarButton> 
                <telerik:RadToolBarButton Text="Edit" Value="Edit" CommandName="Edit"></telerik:RadToolBarButton> 
            </Items> 
        </telerik:RadToolBar> 
        <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server"  
            Animation="Fade" Height="50px" onajaxupdate="RadToolTipManager1_AjaxUpdate"  
            RelativeTo="BrowserWindow" Position="BottomRight" ShowCallout="false" VisibleOnPageLoad="True" Width="50px"
        </telerik:RadToolTipManager> 
    </div> 
    </form> 
</body> 
</html> 
 

code behind:

using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
 
namespace ClientAdmin 
    public partial class Demo : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 

            foreach (RadToolBarItem item in RadToolBar1.Items) 
            { 
                if (item is RadToolBarButton) 
                { 
                    RadToolBarButton button = item as RadToolBarButton; 
                    RadToolTipManager1.TargetControls.Add(button.ClientID, button.Value, true); 
                } 
            } 
        } 
 
        protected void RadToolTipManager1_AjaxUpdate(object sender, ToolTipUpdateEventArgs e) 
        { 
 
        } 
    } 

I've probably missed something really basic, but any assistance would be greatly appreciated.

TIA

Jeff
Stuart Hemming
Top achievements
Rank 2
 answered on 23 Aug 2010
3 answers
673 views
Hi,

I have a RadWindow as a usercontrol and when I postback using control inside the RadWindow I get the following error message:

"Two components with the same id 'rwt_RadWindow1_C_UpdateProgress1' can't be added to the application."

This seems to happen when the RadWindow is inside an update panel. I'm also using javascript to open and close the RadWindow because I don't want to call the server when that occurs. Below is an example that I came up with.

Main Page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Test.Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Src="RadWindowTest.ascx" TagName="RadWindowTest" TagPrefix="custom" %>
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="ScriptManager1" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <asp:UpdatePanel ID="upd" runat="server">
        <ContentTemplate>
            <custom:RadWindowTest ID="rwt" runat="server" />
            <br />
            <asp:Label ID="dummyLabel" runat="server"></asp:Label>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

UserControl Markup
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RadWindowTest.ascx.cs"
    Inherits="Test.RadWindowTest" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .hidebutton
    {
        visibility: hidden;
    }
</style>
<a href="#" id="aOpenWindow" runat="server" onclick="openWin(); return false;">Open
    Window</a>
<telerik:RadWindow ID="RadWindow1" runat="server" Modal="True" Width="1000px" Height="600px"
    AutoSize="false" Skin="Office2007" Animation="None" Behaviors="Move,Close" KeepInScreenBounds="true"
    ReloadOnShow="false" VisibleStatusbar="False" VisibleTitlebar="True">
    <ContentTemplate>
        <asp:UpdatePanel runat="server" ID="updatepanel">
            <ContentTemplate>
                <br />
                <asp:DropDownList ID="DropDown1" runat="server" Width="400px" AutoPostBack="true"
                    OnSelectedIndexChanged="DropDown1_SelectedIndexChanged">
                    <asp:ListItem Text="File 1" Value="1"></asp:ListItem>
                    <asp:ListItem Text="File 2" Value="2"></asp:ListItem>
                    <asp:ListItem Text="File 3" Value="3"></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="DropDown2" runat="server" Width="400px" Visible="false" onChange="showLoadButton()">
                    <asp:ListItem Text="A" Value="A"></asp:ListItem>
                    <asp:ListItem Text="B" Value="B"></asp:ListItem>
                    <asp:ListItem Text="C" Value="C"></asp:ListItem>
                </asp:DropDownList>
                <asp:Button ID="LoadData" runat="server" Text="Load" OnClick="LoadData_Click" CssClass="hidebutton" />
                <asp:HiddenField ID="hdn" runat="server" Value="" />
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="UpdateProgress1" AssociatedUpdatePanelID="updatepanel" runat="server">
            <ProgressTemplate>
                <asp:Panel ID="Panel1" CssClass="overlay" runat="server">
                    <asp:Panel ID="Panel2" CssClass="loader" runat="server">
                        <img alt="Loading..." src="/images/ajax-loader.gif" />
                    </asp:Panel>
                </asp:Panel>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </ContentTemplate>
</telerik:RadWindow>
  
<script language="javascript" type="text/javascript">
    if (window.addEventListener) // W3C standard 
    {
        window.addEventListener('load', load, false);
    }
    else if (window.attachEvent) // Microsoft 
    {
        window.attachEvent('onload', load);
    }
  
    function CloseWindow() {
        var oWindow = $find("<%= RadWindow1.ClientID %>");
        oWindow.Close();
    }
  
    function showLoadButton() {
        oLoadButton = document.getElementById('<%=LoadData.ClientID %>');
        oLoadButton.style.visibility = "visible";
    }
  
    function openWin() {
        var oWnd = GetRadWindow();
        oWnd.show();
    }
  
    function GetRadWindow() {
        var oWindow = $find("<%= RadWindow1.ClientID %>");
        return oWindow;
    }
  
    function EndRequestHandler() {
        var hdn = document.getElementById('<%= hdn.ClientID %>');
        if (hdn.value == "1") {
  
            var t = setTimeout("CloseWindow()", 100);
            hdn.value = "";
        }
    }
    function load() {
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
    }
</script>

UserControl Code Behind
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
namespace Test
{
    public partial class RadWindowTest : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
  
        }
  
        protected void DropDown1_SelectedIndexChanged(object sender, EventArgs e)
        {
            DropDownList DropDown2 = (DropDownList)RadWindow1.ContentContainer.FindControl("DropDown2");
            DropDown2.Visible = true;
        }
  
        protected void LoadData_Click(object sender, EventArgs e)
        {
            RadWindow1.DestroyOnClose = true;
            HiddenField hdn = (HiddenField)RadWindow1.ContentContainer.FindControl("hdn");
            hdn.Value = "1";
        }
    }
}


I can remove the UpdateProgress in this example and it would work, but I need the progress to show on the screen. In my more complicated implementation I have a RadGrid inside the RadWindow and it will complain about duplicate controls as well. Also, if I remove my UpdateProgress here "to get it working", when I do a postback the RadWindow closes and I need to reopen it manually. How do I keep it open after the postback? This doesn't happen if I don't have the outter UpdatePanel.

Thanks!
Gilbert
Fiko
Telerik team
 answered on 23 Aug 2010
7 answers
163 views
Hi ,

i am having the requiremnet to show the ajax loading panel while RadDock control is loading

My code is as follows:

<telerik:RadAjaxManager ID="radAjaxManager" runat="server">
       
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnl" >
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="pnl" LoadingPanelID="RadAjaxLoadingPanel1" />
                   
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" InitialDelayTime="5000" Skin="Vista" runat="server">
        
    </telerik:RadAjaxLoadingPanel>

 <table cellspacing="0" cellpadding="0">
                <tr>
                    <td >
                        <telerik:RadDockZone Width="420px" runat="server" ID="RadDockZone1" Orientation="vertical" >
                       
                            <telerik:RadDock runat="server" ID="UserInfo" Title="My Portal" EnableAnimation="true">
                                <ContentTemplate>
                                 <asp:Panel ID="pnl" runat="server">
                                    <p class="innerWrp">
                                        Welcome back,<br />
                                        Mr. John Smith<br />
                                        <%= DateTime.Now.ToShortDateString() %>
                                    </p>
                                    </asp:Panel>
                                </ContentTemplate>
                            </telerik:RadDock>
</telerik:RadDockZone>
</td>
</tr>
</table>

Please help me itis very urgent requirement
Pavlina
Telerik team
 answered on 23 Aug 2010
7 answers
236 views
Hi,

We are using the latest version Q2 2010 of asp.net ajax and from what I have read in the forum you previously fixed a problem with IE where if you paste a relative url into the editor it gets turned into absolute.

However I am experiencing the same problem in the latest version of the editor. Using IE 8 if I edit content with relative urls, copy and paste one of them it gets turned absolute. The content filters is set to "None" as I know there is one for marking urls absolute.

Is the bug reintroduced or am I missing something?

Thanks
Espen Fosshaug
Top achievements
Rank 1
 answered on 23 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?