Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
283 views
Hi Telerik

I am using asyncupload control to upload client files. On selecting files and uploading the names will appear on the control. So at this point I have a requirement to open the uploaded file by clicking the filename or add a button such as "View File". Please provide your valuable support.

Thanks and Regards
Jane.
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2013
1 answer
321 views

Hi Telerik,

I had RadEditor working till some time ago the client reported that some features don't work anymore and they get the message "The command <command name> is not implemented yet” .

I’ve tried the same sequence on the SharePoint server browser (IE7) and it works fine. I’ve tested on other servers browsers (even with different version, IE8) and it worked fine with all features.

I made tests with other hosts with different OS version and browser version (even with different browsers) and the result is the same, some features don’t work.

Many thanks

Luís Nuno Silva

Stanimir
Telerik team
 answered on 09 Aug 2013
4 answers
135 views
So here's the problem.  I can get the crossfade animation to work properly when I assign it to the page control ie.

<telerik:RadRotator id="RadRotator1" runat="server" SlideShowAnimation-Type="CrossFade"></telerik:RadRotator>

However when I build the control from code behind it will not allow me to apply the cross fade, or rather I can apply the cross fade but it works just like a standard fade.  Is there a work around or something that I can do to make sure the cross fade animation type gets applied when the control is built from code behind.

Below is what I am doing:

public RadRotator GenerateRotatingBanner(SiteBanner banner)
    {
        RadRotator thisRotator = new RadRotator();
 
        thisRotator.Width = Unit.Pixel(banner.BannerWidth);
        thisRotator.ItemWidth = Unit.Pixel(banner.ImageWidth);
        thisRotator.Height = Unit.Pixel(banner.BannerHeight);
        thisRotator.ItemHeight = Unit.Pixel(banner.ImageHeight);
        thisRotator.ScrollDuration = Convert.ToInt32(banner.TransitionTime * 1000);
        thisRotator.FrameDuration = Convert.ToInt32(banner.FrameDelay * 1000);
        thisRotator.PauseOnMouseOver = false;
        thisRotator.ItemTemplate = new RotatorTemplate();
        thisRotator.WrapFrames = banner.RotatingFrameWrap;
        thisRotator.OnClientItemClicked += "OnClientItemClicked";
        thisRotator.OnClientItemShowing += "ClientItemShowing";
 
        switch (banner.RotationType.ToLower())
        {
            case "business card":
                thisRotator.RotatorType = RotatorType.AutomaticAdvance;
                switch (banner.Direction.ToLower())
                {
                    case "up":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Up;
                        break;
                    case "down":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Down;
                        break;
                    case "left":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Left;
                        break;
                    case "right":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Right;
                        break;
                    default:
                        thisRotator.ScrollDirection = RotatorScrollDirection.Left;
                        break;
                }
                break;
            case "carousel":
                thisRotator.RotatorType = RotatorType.Carousel;
                break;
            case "cover flow":
                thisRotator.RotatorType = RotatorType.CoverFlow;
                switch (banner.Direction.ToLower())
                {
                    case "up":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Up;
                        break;
                    case "down":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Down;
                        break;
                    case "left":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Left;
                        break;
                    case "right":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Right;
                        break;
                    default:
                        thisRotator.ScrollDirection = RotatorScrollDirection.Left;
                        break;
                }
                break;
            case "slide show":
                thisRotator.RotatorType = RotatorType.SlideShow;
                thisRotator.SlideShowAnimation.Duration = Convert.ToInt32(banner.TransitionTime * 1000);
                thisRotator.SlideShowAnimation.Type = Telerik.Web.UI.Rotator.AnimationType.CrossFade;
                break;
            default:
                thisRotator.RotatorType = RotatorType.AutomaticAdvance;
                switch (banner.Direction.ToLower())
                {
                    case "up":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Up;
                        break;
                    case "down":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Down;
                        break;
                    case "left":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Left;
                        break;
                    case "right":
                        thisRotator.ScrollDirection = RotatorScrollDirection.Right;
                        break;
                    default:
                        thisRotator.ScrollDirection = RotatorScrollDirection.Left;
                        break;
                }
                break;
        }
 
        return thisRotator;
    }
Colton3310
Top achievements
Rank 1
 answered on 09 Aug 2013
0 answers
76 views
radschedular problem of multiple resources
Kalpna
Top achievements
Rank 1
 asked on 09 Aug 2013
4 answers
358 views
AsyncUpload is really come in handy, however I have a question which I don't know how to deal with:

I have a page with AsyncUpload control and other normal text fields for user to update/insert a article with attachment, and I only want to save file after user click 'Save' button (so not only for saving file but other text fields as well), however the attachment is uploaded asynchronously, so a file is uploaded before user click 'Save' button, so my questions is how to remove the file if user decide not to save page or even close browser ?

Many thanks!
Shinu
Top achievements
Rank 2
 answered on 09 Aug 2013
1 answer
107 views
Hi --

I have a RadGrid control with EnableHeaderContextMenu="true" on the MasterTableView.  The header context menu works great on initial page load, but after a postback (caused by sorting or any other grid related event), the context menu no longer works.  (After a postback, right-clicking brings up the browser's context menu instead of the RadGrid context menu.)

I do have a RadAjaxManager on my page, and this issue could be related to that.  

Can someone help me figure out what I need to do to make the header context menu work after a postback?  Full markup is below.

Thanks,
Rajeev

----------------------------------------

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="IconResultsDetailsView.ascx.cs" Inherits="OfficeUI.Controls.SearchResults.IconResultsDetailsView" %>
<%@ Register Src="~/Controls/SearchResults/FinalIconImagesInSearchResults.ascx" TagName="FinalIconImagesInSearchResults" TagPrefix="uc" %>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanelIconResultsDetailsView" runat="server" />
 
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadGridIconResults">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadGridIconResults" LoadingPanelID="RadAjaxLoadingPanelIconResultsDetailsView" />
                <telerik:AjaxUpdatedControl ControlID="BulkEditDialog" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="BulkEditDialog">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="BulkEditDialog" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>
 
<telerik:RadGrid
    ID="RadGridIconResults"
    runat="server"
    AllowFilteringByColumn="True"
    AllowPaging="True"
    AllowSorting="True"
    CssClass="RadGridIconResults GridForIconsTab"
    AllowMultiRowSelection="True"
    EnableHeaderContextMenu="True"
    OnItemDataBound="RadGridIconResults_ItemDataBound"
    OnNeedDataSource="RadGridIconResults_NeedDataSource"
    OnItemCreated="RadGridIconResults_ItemCreated"
    AutoGenerateColumns="False"
    PageSize="200"
    >
 
    <PagerStyle
        Mode="NextPrevAndNumeric"
        Position="TopAndBottom"
        FirstPageImageUrl="/Images/Transparent1x1.png"
        LastPageImageUrl="/Images/Transparent1x1.png"
        PrevPageImageUrl="/Images/Transparent1x1.png"
        NextPageImageUrl="/Images/Transparent1x1.png"
        PrevPageText="< prev"
        NextPageText="next >"
        ShowPagerText="true"
        EnableSEOPaging="true"
        />
 
    <ExportSettings ExportOnlyData="true" IgnorePaging="true" OpenInNewWindow="true" Excel-Format="ExcelML" />
    <ClientSettings>
        <Scrolling AllowScroll="false" />
        <Selecting AllowRowSelect="True" UseClientSelectColumnOnly="True" EnableDragToSelectRows="False" />
    </ClientSettings>
    <GroupingSettings CaseSensitive="false" />
    <MasterTableView DataKeyNames="BugNumber" CommandItemDisplay="Top" UseAllDataFields="True" EnableHeaderContextMenu="true">
        <Columns>
            <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderText="Select" />
 
            <telerik:GridImageColumn HeaderText="" UniqueName="Parsed" ShowSortIcon="true" ShowFilterIcon="false" Groupable="False" AllowSorting="true" AllowFiltering="false" />
 
            <telerik:GridBoundColumn DataField="BugNumber" HeaderText="Bug #" EmptyDataText="none" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" DataFormatString="<nobr>{0}</nobr>">
                <HeaderStyle Wrap="false" />
            </telerik:GridBoundColumn>
 
        </Columns>
        <RowIndicatorColumn>
            <HeaderStyle Width="20px" />
        </RowIndicatorColumn>
        <ExpandCollapseColumn>
            <HeaderStyle Width="20px" />
        </ExpandCollapseColumn>
    </MasterTableView>
    <ItemStyle Height="45px" BackColor="#EFF3F7" />
    <AlternatingItemStyle Height="45px" />
</telerik:RadGrid>
 
<telerik:RadWindow ID="BulkEditDialog" runat="server"
    Behaviors="Move, Close, Resize" Width="650px" Height="400px" Modal="True"
    Title="Review" VisibleStatusbar="False" OnClientClose="OnClientWindowClose" >
</telerik:RadWindow>
Rajeev
Top achievements
Rank 1
 answered on 08 Aug 2013
8 answers
515 views
I am having trouble setting the default values I want to use for MinDate and MaxDate within the EditItemTemplate of a GridTemplateColumn within a RadGrid. Since this control is nested so deeply, I don't have direct access to it in code-behind, so I wanted to set the MinDate and MaxDate in-line in the page (.aspx) markup.

Here's what I have currently for the GridTemplateColumn (I have omitted the MaxDate for the time being, which would be set to the current date, i.e. DateTime.Today):

<telerik:GridTemplateColumn DataField="ScheduleDate" HeaderButtonType="None" 
    HeaderText="Day" SortExpression="ScheduleDate" UniqueName="ScheduleDate">
    <EditItemTemplate>
        <asp:Label ID="Label_ScheduleDate" runat="server" AssociatedControlID = "RadDatePicker_ScheduleDate"></asp:Label>
        <telerik:RadDatePicker ID="RadDatePicker_ScheduleDate" UniqueName="RadDatePicker_ScheduleDate" runat="server" Width="80px" 
            Skin="Outlook" MinDate='<%= System.DateTime.Today().AddDays(-30) %>'>
            <DateInput onclick="$find('<%= RadDatePicker_ScheduleDate.ClientID %>').showPopup();">
            </DateInput>
            <Calendar DayNameFormat="FirstTwoLetters" FirstDayOfWeek="Default">
            </Calendar>
            <DatePopupButton Visible="true" />
        </telerik:RadDatePicker>
    </EditItemTemplate>
    <ItemTemplate>
        <asp:Label ID="ScheduleDateLabel" runat="server" 
            Text='<%# Eval("ScheduleDate", "{0:d}") %>'></asp:Label>
    </ItemTemplate>
</telerik:GridTemplateColumn>

In the Visual Studio 2008 designer, I get an error from the parser:

"Error Creating Control - RadGrid_StaffBreakout: Cannot create an object of type 'System.DateTime' from its string representation '<%= System.DateTime.Today().AddDays(-30) %>' for the 'MinDate' property."

According to the MSDN documentation, this returns a DateTime structure (not an object, since DateTime is a value type). I tried several work arounds like using ToString() and also combining ToString with DateTime.Parse, but none of these worked.

How can I set the MinDate and MaxDate values in the mark-up of the page?

I am using "RAD Controls for ASP.NET AJAX Q2 2010 - SP2"

Thanks,

Jon
Kiran
Top achievements
Rank 1
 answered on 08 Aug 2013
16 answers
354 views
Sir
I called radgrid.rebind() in linkbutton click.But the needdatasource event of that grid is not firing.Any help..
The aspx code is

<telerik:RadDock runat="server" ID="rddockPrjTypes" Title="Project Types">
<
ContentTemplate>
<telerik:RadGrid runat="server" ID="grdProjectTypes" Skin="Vista" AutoGenerateColumns="False"CssClass="gridnew" GridLines="None" ShowHeader="false">
<
ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">

 <Selecting AllowRowSelect="True" />
</
ClientSettings>
<
MasterTableView NoDetailRecordsText="" NoMasterRecordsText="">
<
Columns>
<
telerik:GridTemplateColumn UniqueName="TemplateColumn">                                <ItemTemplate>

<asp:LinkButton ID="lnkPTypes" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.projecttypedesc") %>'></asp:LinkButton> (<asp:LinkButton ID="lnkCount" runat="server" Text='<%#DataBinder.Eval(Container,"DataItem.counts") %>'></asp:LinkButton>                                                             ) </ItemTemplate>
</
telerik:GridTemplateColumn>

  </Columns>
<
EditFormSettings>
<
PopUpSettings ScrollBars="None"></PopUpSettings>                            </EditFormSettings><ExpandCollapseColumn Visible="False" Resizable="False"><HeaderStyle Width="20px"></HeaderStyle></ExpandCollapseColumn>            </MasterTableView></telerik:RadGrid> </ContentTemplate></telerik:RadDock>

thanks

Sharmin
Top achievements
Rank 1
 answered on 08 Aug 2013
2 answers
2.9K+ views
It work fine on my computer, but when i deploy to server it show error

Parser Error Message: Unknown server tag 'telerik:RadScriptManager'.

Line 39: <body>
Line 40: <form id="form1" runat="server">
Line 41: <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
Line 42: </telerik:RadScriptManager> Line 43: <div>

Please advise.

Thank
Tim
Top achievements
Rank 1
 answered on 08 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?