Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
127 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
85 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
250 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
689 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
168 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
253 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
3 answers
135 views
I have two issues.

1. I have a RadEditor in a RadGrid which works fine, until I set the Grid to use Ajax.  Then the Editor control becomes useless and its contents hidden.  What is the work around for this?

2. Depending on user privileges I need different options to show in the grid.  The grid is a grid of info, much like a forum.  If the creator of a row is using the system I need a column to have an edit button that allows direct edit of the record (like my code has now).  However, if it is not the creator, the 'Edit' button needs to be replaced by a 'Reply to' button that acts as an insert command prepopulating the edit box with "Reply to Comment X".  So how do I code this so it determines which edit/insert button to show based on the row priveleges?

Heres my current code for the control:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="grdNotes">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="grdNotes" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />

<telerik:RadGrid ID="grdNotes" runat="server" GridLines="None" Skin="Windows7">
<MasterTableView ShowHeader="False" ShowHeadersWhenNoRecords="False"
        TableLayout="Fixed" AutoGenerateColumns="False" DataKeyNames="ID" ClientDataKeyNames="ID" >
    <Columns>
        <telerik:GridBoundColumn DataField="ID" DataType="System.Int32" HeaderText="ID"
            SortExpression="ID" UniqueName="ID" Visible="false" ReadOnly="true">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="VisibleID" DataType="System.Int32"
            HeaderText="ID" SortExpression="VisibleID" UniqueName="VisibleID" ReadOnly="true" >
            <HeaderStyle Width="20px" />
        </telerik:GridBoundColumn>
        <telerik:GridButtonColumn CommandName="Edit" ButtonType="ImageButton" UniqueName="Edit" ImageUrl="~/Images/Edit.png">
                        <HeaderStyle Width="50px" />
        </telerik:GridButtonColumn>     
        <telerik:GridTemplateColumn HeaderText="Notes" UniqueName="Notes" ReadOnly="false">  
                            <EditItemTemplate>
                                <telerik:RadEditor ID="editNotes" ShowSubmitCancelButtons="False" runat="server"
                                    Content='<%# Bind("Notes") %>' ToolsFile="~/ToolsFileLimited.xml" Height="200px" Width="1000px" EnableResize="false" />
                            </EditItemTemplate>
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Eval("Notes") %>' />
                            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="DateCreated" DataType="System.DateTime"
            HeaderText="Date Created" SortExpression="DateCreated" UniqueName="DateCreated" ReadOnly="true">
            <HeaderStyle Width="100px" />
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="CreatedBy" HeaderText="CreatedBy"
            SortExpression="Created By" UniqueName="CreatedBy" ReadOnly="true">
            <HeaderStyle Width="100px" />
        </telerik:GridBoundColumn>
    </Columns>


</MasterTableView>
    <ClientSettings>
        <Scrolling AllowScroll="True" UseStaticHeaders="True" />
    </ClientSettings>
</telerik:RadGrid>
Jay Leffue
Top achievements
Rank 1
 answered on 23 Aug 2010
1 answer
158 views
Hi guys,

I have a user control that has radgrid inside it. During edit / add, I will use my own custom user control to edit / add.

Here is my radgrid code:

<telerik:RadGrid  ID="rgDocumentCheckList" runat="server" GridLines="None" 
    AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
    onneeddatasource="rgDocumentCheckList_NeedDataSource" 
    onitemcommand="rgDocumentCheckList_ItemCommand" 
    onitemcreated="rgDocumentCheckList_ItemCreated"
    onitemdatabound="rgDocumentCheckList_ItemDataBound">
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu>
  
    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="DocumentId" Name="DocumentListTable">
        <Columns>
            <telerik:GridBoundColumn UniqueName="DocumentType" HeaderText="Document Type" DataField="DocumentTypeName">
            </telerik:GridBoundColumn>
            <telerik:GridHyperLinkColumn UniqueName="DocumentLink"
                HeaderText="Document"
                DataTextFormatString="{0}" DataTextField="DocumentTitle"
                DataNavigateUrlFormatString="{0}" DataNavigateUrlFields="URL">
            </telerik:GridHyperLinkColumn>
            <telerik:GridBoundColumn UniqueName="Stage" HeaderText="Stage" DataField="StageName">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Remarks" HeaderText="Remarks" DataField="Remark">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="UploadedBy" HeaderText="Uploaded By" DataField="UploadedBy">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="UploadedDate" HeaderText="Uploaded Date" DataField="UploadedDate">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="Status" HeaderText="Status" DataField="Status">
            </telerik:GridBoundColumn>
                    <telerik:GridEditCommandColumn ButtonType="ImageButton" ItemStyle-Width="10px" Visible="true">
<ItemStyle Width="10px"></ItemStyle>
                        </telerik:GridEditCommandColumn>
                          
                    <telerik:GridButtonColumn ButtonType="ImageButton" ConfirmDialogType="RadWindow"
                            HeaderButtonType="None" ImageUrl="~/Resources/Images/Bin.gif" ItemStyle-Width="10px" UniqueName="colActionDelete"
                            Visible="true" CommandName="Delete" ConfirmText="Confirm to delete?" ConfirmTitle="Action confirmation">
                            <ItemStyle Width="10px" />
                        </telerik:GridButtonColumn>
        </Columns>
        <EditFormSettings UserControlName="~/UserControl/CommonFunctionality/DocumentCheckList/DocumentAddEdit.ascx" EditFormType="WebUserControl">
            <EditColumn UniqueName="EditCommandColumn1">
            </EditColumn>            
        </EditFormSettings>
    </MasterTableView>    
</telerik:RadGrid>


I found this link http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html, and under "Workaround for RadGrid for ASP.NET AJAX" i found a great solution for using GridTemplateColumn. But how can I do it if I use my own control to add and edit?

Thank you.

AGT
Yana
Telerik team
 answered on 23 Aug 2010
3 answers
247 views
I am building a form where a user can upload multiple files and am showing a RadProgressArea on the page for status. Is it possible to have this status pop up in a modal window with RadWindow instead of being inline on the page?
digitall
Top achievements
Rank 1
 answered on 23 Aug 2010
2 answers
81 views
On a drag and drop, how can I control the layout of the row being dragged?  Below is my master grid, please note that the first column is only 18px wide.  When dragging the first column becomes 1/2 the width of the grid.  How can I force the same layout for the row being dragged?

Thanks

 

 

<telerik:RadGrid runat="server" ID="grdKCGs" AllowPaging="False" Width="100%" AllowMultiRowSelection="false">

 

 

 

<MasterTableView DataKeyNames="TopicKCGID" Width="100%" TableLayout="Fixed" AutoGenerateColumns="false">

 

 

 

<Columns>

 

 

 

<telerik:GridDragDropColumn HeaderStyle-Width="18px"></telerik:GridDragDropColumn>

 

 

 

<telerik:GridBoundColumn UniqueName="TopicKCGID" DataField="TopicKCGID" Visible="false" />

 

 

 

<telerik:GridBoundColumn UniqueName="KCGDescription" DataField="KCGDescription" HeaderText="Description" ReadOnly="true" />

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

<ClientSettings AllowRowsDragDrop="true">

 

 

 

<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />

 

 

 

</ClientSettings>

 

 

 

</telerik:RadGrid>

 

Chris Trina
Top achievements
Rank 1
 answered on 23 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?