Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
82 views
Hi All

I have successfully integrated radgrid with my SP lists, but with a rendering problem.

If my underlying view contains a date/time column and the grid is set to allow grouping, then the grid header renders very strangely. Even if I turn grouping off, it still renders the refresh button on the left rather than the right.

The problem is not there if I remove the date time field (s) from the underlying view.

Is this a known issue?

Many thanks

Chris
Tsvetoslav
Telerik team
 answered on 26 Oct 2010
9 answers
279 views
(Search forums: Done)
(Look through tutorials: Done)
(Browse online examples: Done)
(Look at giant tutorial PDF: Done)

Hi all.
I'm looking for a complete, stand alone, start to finish, example of how to implement the Scheduler, with multi-value resources. I've found lots of bits and pieces here and there in the examples and so forth that seem to always assume knowledge of yet other things, but nothing *complete* and *stand alone*.

Thanks a bunch for your patience!

Paul
Peter
Telerik team
 answered on 26 Oct 2010
1 answer
484 views

Hi All,

Assembly Version: 2010.2.826.35

i want to cancel file deletion if user clicks on "Cancel" button on confirmation alert.which i am showing on remove(delete).
But that is not happening .It deletes the file and only keeps the file name row

<telerik:RadAsyncUpload ID="radUpload" runat="server" AllowedFileExtensions=".pdf" MaxFileInputsCount="5"  Localization-Select="Browse" Localization-Remove = "Delete Document"                    OnClientValidationFailed="validationFailed" TemporaryFileExpiration="5"            OnClientFileSelected="fileSelected" OnClientDeleting="fileDelete" OnClientFileUploaded ="fileUploaded">
</telerik:RadAsyncUpload>
  
function fileDelete(sender, args) {
        
        if (confirm("Are you sure to Delete the record?"))  {
            args._cancel = false;        
        }
        else {
            args.set_cancel(true);         
            //args._cancel = true;
            //sender._cancelEvent();
        }
    }

Can anyone help me on this.

Thanks,
Deepak Dhirhe
Genady Sergeev
Telerik team
 answered on 26 Oct 2010
3 answers
107 views
Hi

I am playing with the MVC RadScheduler demo and was wondering how to allow only the user that created the appointment to be able to edit/delete that apointment?

Thanks
Peter
Telerik team
 answered on 26 Oct 2010
5 answers
195 views
Hi,

I've a user control , composed of two asp:buttons. I would like only one of the buttons perform partial page update via radajax.
How can I do this (since  EventName attribute isn't working)?

Default.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UserControlAndRadAjax._Default" %>
  
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register  Src="~/MyUserButton.ascx" TagPrefix="UC" TagName="MyUserButton" %>
  
<!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>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="MyUserControl" EventName="ClickMeClick" >
                <UpdatedControls >
                    <telerik:AjaxUpdatedControl  ControlID="CounterLiteralTd"/>
                 </UpdatedControls>
            </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="AjaxifiedClickMeButton" >
                <UpdatedControls >
                    <telerik:AjaxUpdatedControl  ControlID="CounterLiteralTd" LoadingPanelID="RadAjaxLoadingPanel1"/>
                 </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default">
    </telerik:RadAjaxLoadingPanel>
    <div>
    <table border="1">
        <tr>
            <td>
                <asp:Button runat="server" ID="AjaxifiedClickMeButton" Text="AjaxifiedClickMe" />
            </td>
            <td>
    
                <UC:MyUserButton runat="server" ID="MyUserControl" ></UC:MyUserButton>            
            </td>
        </tr>
        <tr>
            <td colspan="2" >             
                <asp:Panel style="width:100px;height:100px;" runat="server" ID="CounterLiteralTd">
                 <asp:Label  runat="server" ID="CounterLiteral"></asp:Label>
                </asp:Panel>
            </td>
        </tr>
    </table>
    </div>
    </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;
using System.Threading;
  
namespace UserControlAndRadAjax
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.MyUserControl.ClickMeClick += new EventHandler(MyUserControl_Click);
            this.MyUserControl.ClickAsWellClick += new EventHandler(MyUserControl_Click);
            this.AjaxifiedClickMeButton.Click += new EventHandler(MyUserControl_Click);
        }
  
  
        public void MyUserControl_Click(object sender, EventArgs e)
        {
            Thread.Sleep(500);
  
            if (!string.IsNullOrEmpty(this.CounterLiteral.Text))
            {   
                int currentValue = int.Parse(this.CounterLiteral.Text);
                currentValue++;
                this.CounterLiteral.Text = currentValue.ToString();
            }
            else
            {
                this.CounterLiteral.Text = "0";
            }
        }
    }
}

MyUserButton.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MyUserButton.ascx.cs" Inherits="UserControlAndRadAjax.MyUserButton" %>
<asp:Button runat="server" ID="AjaxifiedClickMe" Text="AjaxifiedClickMe" />
<asp:Button runat="server" ID="ClickAsWellButton1" Text="ClickAsWell" />

MyUserButton.ascx.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
namespace UserControlAndRadAjax
{
    public partial class MyUserButton : System.Web.UI.UserControl
    {
        public event EventHandler ClickMeClick;
        public event EventHandler ClickAsWellClick;
  
        protected void Page_Load(object sender, EventArgs e)
        {
            this.AjaxifiedClickMe.Click += new EventHandler(ineerButton_Click);
            this.ClickAsWellButton1.Click += new EventHandler(ClickAsWellButton1_Click);
        }
  
        void ClickAsWellButton1_Click(object sender, EventArgs e)
        {
            if (this.ClickAsWellClick != null)
            {
                this.ClickAsWellClick(this, EventArgs.Empty);
            }
        }
  
        void ineerButton_Click(object sender, EventArgs e)
        {
            if (this.ClickMeClick != null)
            {
                this.ClickMeClick(this, EventArgs.Empty);
            }
        }
        protected override void Render(HtmlTextWriter writer)
        {
            writer.Write("<div ");
            writer.WriteAttribute("id", this.ClientID);
            writer.WriteLine(">");
            base.Render(writer);
            writer.WriteEndTag("div");
        }
  
  
    }
}


Pavlina
Telerik team
 answered on 26 Oct 2010
1 answer
722 views
I'm using 2010.9.929. I get this in all the browsers. Here's the url:

/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=radScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bAjaxControlToolkit%2c+Version%3d4.1.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a315e40c1-4559-4b59-ba08-9c63c3f1ef4d%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3a183fb741-216d-4765-9b46-4a1f5d38fdd7%3a16e4e7cd%3af7645509%3a22a6274a%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3a874f8ea2%3a19620875%3a490a9d4e%3abd8f85e4%3aed16cbdc%3aaa288e2d%3a58366029%3bAjaxControlToolkit%2c+Version%3d4.1.40412.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a315e40c1-4559-4b59-ba08-9c63c3f1ef4d%3a923aa3cc%3a853c2e0b%3a46f97eb1%3a782b16ab%3ade0c8b05

Here's the ASPX code.

<%@ Page Title="" Language="C#" MasterPageFile="~/Includes/MasterPages/PortalMasterPage.master"
    AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_ManageConfirmations_Default"
    Culture="auto" UICulture="auto" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageTitle" runat="Server">
    <asp:Localize runat="server" meta:resourcekey="PageTitle">Pending Confirmations</asp:Localize>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <telerik:RadAjaxManager ID="ramAjaxManager" runat="server" DefaultLoadingPanelID="loadingPanel">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ddlServiceProvider">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="ddlOrganization" />
                    <telerik:AjaxUpdatedControl ControlID="rapUserGrid" />
                    <telerik:AjaxUpdatedControl ControlID="rgPendingTokenConfirmations" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="ddlOrganization">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgPendingConfirmations" />
                    <telerik:AjaxUpdatedControl ControlID="rgPendingTokenConfirmations" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rgPendingConfirmations">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgPendingConfirmations" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rgPendingTokenConfirmations">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rgPendingTokenConfirmations" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <asp:Localize runat="server" meta:resourcekey="IntroInstructions">This section allows you to confirm pending <b>customer administrators.</b></asp:Localize>
    <br />
    <br />
    <table>
        <tr>
            <td>
                <asp:Localize runat="server" Text='<%$ Resources:VirtualOfficeResources, ServiceProviderLabel %>'>Service Provider:</asp:Localize>
            </td>
            <td>
                <telerik:RadComboBox ID="ddlServiceProvider" runat="server" AppendDataBoundItems="true"
                    DataTextField="Name" DataValueField="OrganizationID" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedServiceProviderChanged">
                    <Items>
                        <telerik:RadComboBoxItem Value="-1" Text="<%$ Resources:VirtualOfficeResources, ServiceProviderDropDownPlaceholder %>" />
                    </Items>
                </telerik:RadComboBox>
            </td>
            <td style="padding-left: 1em;">
                <asp:Localize runat="server" Text='<%$ Resources:VirtualOfficeResources, OrganizationLabel %>'>Organization:</asp:Localize>
            </td>
            <td>
                <telerik:RadComboBox ID="ddlOrganization" runat="server" AppendDataBoundItems="True"
                    DataTextField="Name" DataValueField="OrganizationID" AutoPostBack="true" OnSelectedIndexChanged="OnSelectedOrganizationChanged">
                    <Items>
                        <telerik:RadComboBoxItem Value="-1" Text="<%$ Resources:VirtualOfficeResources, OrganizationDropDownPlaceholder %>" />
                    </Items>
                </telerik:RadComboBox>
            </td>
        </tr>
    </table>
    <br />
    <telerik:RadGrid ID="rgPendingConfirmations" runat="server" EnableEmbeddedSkins="False"
        Skin="SparxentBlack" GridLines="None" AutoGenerateColumns="False" AllowSorting="True"
        OnNeedDataSource="OnNeedPendingConfirmations" OnUpdateCommand="OnConfirmUser">
        <MasterTableView DataKeyNames="EmailAddress" meta:resourcekey="GridMasterTableView">
            <Columns>
                <telerik:GridTemplateColumn ItemStyle-Width="1em" UniqueName="UpdateColumn">
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ImageUrl="~/Skins/SparxentBlack/Grid/Update.gif"
                            CommandName="Update" AlternateText="Confirm" ToolTip="Confirm" meta:resourcekey="PendingConfirmConfirmBtn" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
                <telerik:GridBoundColumn DataField="EmailAddress" HeaderText="Email Address" SortExpression="EmailAddress"
                    meta:resourcekey="PendingConfirmEmailColumn">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="FirstName" HeaderText="First Name" SortExpression="FirstName"
                    meta:resourcekey="PendingConfirmFirstNameColumn">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="LastName" HeaderText="Last Name" SortExpression="LastName"
                    meta:resourcekey="PendingConfirmLastNameColumn">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
    <br />
    <asp:Localize runat="server" meta:resourcekey="PendingTokenInstructions">
        The following are pending token confirms that have been sent out but have not been
        acted upon (e.g no user has been created yet).
    </asp:Localize>
    <br />
    <br />
    <telerik:RadGrid ID="rgPendingTokenConfirmations" runat="server" EnableEmbeddedSkins="false"
        Skin="SparxentBlack" GridLines="None" AutoGenerateColumns="false" AllowSorting="true"
        OnNeedDataSource="OnNeedPendingTokenConfirmations">
        <MasterTableView CommandItemDisplay="Top" meta:resourcekey="GridMasterTableView">
            <Columns>
                <telerik:GridBoundColumn DataField="UserEmailAddress" HeaderText="Email Address"
                    SortExpression="UserEmailAddress" meta:resourcekey="PendingTokenEmailColumn">
                </telerik:GridBoundColumn>
            </Columns>
            <CommandItemTemplate>
                <div class="gridCommandItemDiv">
                    <asp:LinkButton ID="btnResendTokens" runat="server" CssClass="gridCommandItem" OnClick="OnResendTokens"
                        Text="<%$ Resources:VirtualOfficeResources, ResendPendingTokensLabel %>"></asp:LinkButton>
                </div>
            </CommandItemTemplate>
        </MasterTableView>
    </telerik:RadGrid>
    <telerik:RadAjaxLoadingPanel ID="loadingPanel" runat="server" Transparency="0" IsSticky="true">
        <asp:Panel ID="innerLoadingPanel" runat="server" CssClass="innerLoadingPanel">
            <table>
                <tr>
                    <td>
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Skins/SparxentBlack/Common/loading.gif" />
                    </td>
                    <td style="color: White; padding-left: 1em; font-size: larger">
                        <asp:Localize runat="server" Text="<%$ Resources:VirtualOfficeResources, LoadingLabel %>"></asp:Localize>
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <ajax:AlwaysVisibleControlExtender runat="server" HorizontalSide="Center" VerticalSide="Middle"
            VerticalOffset="150" HorizontalOffset="100" TargetControlID="innerLoadingPanel">
        </ajax:AlwaysVisibleControlExtender>
    </telerik:RadAjaxLoadingPanel>
</asp:Content>

So the basic workflow is that we select a service provider in the first radcombobox, which then updates the list of organizations in the second radcombobox. What's happening is that we select the service provider, the loading panel appears, and the exception is thrown. Any ideas?
Chris
Top achievements
Rank 1
 answered on 26 Oct 2010
2 answers
109 views
Hi:
I am porting a 3.5 web app to 4.0.  This app started as a AjaxToolkit and Telerik was added later.  I got 4.0 dll added and the web site built, but my RadWindows when I close via the following:
Protected Sub CloseForm()
    ScriptManager.RegisterStartupScript(Page, Page.GetType(), "Close", "GetRadWindow().Close();", True)
End Sub
The window closes and relaunches.  What to do?
Phil
Phil
Top achievements
Rank 2
 answered on 26 Oct 2010
3 answers
148 views
Hello,

I have my scheduler and everything is automatically localized except for the Timeline (date). Is this an issue or should it be manually applied? If so, how do I do this?

I am using a Base page for setting the Localization and inheriting all my pages from this.

Thanks in advance!

Gil
Peter
Telerik team
 answered on 26 Oct 2010
6 answers
195 views
Hi,

I use a customized Linkmanager.ascx

How can I detect in the Linkmanager.ascx which editor openened the Linkmanager when there are multiple RadEditors on the page?

BR
Marc
Rumen
Telerik team
 answered on 26 Oct 2010
4 answers
308 views
Hi,
I'm trying to uninstall "Telerik.Web.UI_2010_2_826_Trial" so that I can install the latest version, however during uninstall, I get the following message:

"Telerik RadControls Setup Wizard ended prematurely because of an error.,...."

Please see the link below for the log file generated by the msi installer.
http://cid-694a1ac153d587e5.office.live.com/self.aspx/Public/install.log.zip

Many Thanks,
Henry Wu
Henry
Top achievements
Rank 1
 answered on 26 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?