Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
388 views
How to set toolbar button used in the page as a default button for the page (form tag)?


Regards,
Chandra
Ray
Top achievements
Rank 1
 answered on 13 Aug 2013
1 answer
133 views
I am displaying timeout notification using Radnotification(see code below) but it shows a small orange box where the menu Icon would appear(see image). Setting the visible property to  false does not resolve the issue. What am I missing? Please suggest.
If I close the notification window during the timeout, it reappears in 1 minute after closing. This seems to be the default behavior. Is there a way to configure or change this behavior?

      
<telerik:RadNotification ID="RadNotification1" runat="server" Width="240" Height="100" Position="Center" TitleIcon="" ShowTitleMenu="false" 
    EnableRoundedCorners="true" Title="Session Expiring" OnClientShowing="OnClientShowing" Value="MyPage.aspx" AutoCloseDelay="0">
    <ContentTemplate>
        <div class="infoIcon"><img src="Images/infoIcon.jpg" alt="info icon" /></div> 
        <div class="notificationContent">Time remaining:  <span id="timeLbl">5:00</span> 
            <telerik:RadButton ID="continueSession" runat="server" Text="Continue Your Session?"
                Style="margin-top: 10px;" AutoPostBack="false" OnClientClicked="ContinueSession"> 
            </telerik:RadButton> 
        </div> 
    </ContentTemplate>
</telerik:RadNotification>

.infoIcon, .notificationContent 
{ 
    display: inline-block; 
    zoom: 1; 
    *display: inline; 
}
.infoIcon 
{ 
     width: 32px; 
     height: 32px; 
     margin: 0 10px ; 
     vertical-align: top; 
}

Padma
Top achievements
Rank 1
 answered on 13 Aug 2013
4 answers
209 views
Hi

I read that asyncupload requires  a postback to upload files such as a button click. But I want to upload all my selected files to the server once everything is selected without the user clicking a button. Any suggestion?

Thanks
Dona
Dona
Top achievements
Rank 1
 answered on 13 Aug 2013
1 answer
139 views
I am working on a FileSystemProvider that will allow writing to a physical or shared drive.  Most of the functionality seems to be working but the StoreFile method is having issues.

Below is the code I am using

public override string StoreFile(Telerik.Web.UI.UploadedFile file, string path, string name, params string[] arguments)
{
    var virtualSavePath = Path.Combine(path, name);
    var physicalPath = GetPhysicalFromVirtualPath(path);
    File.Create(Path.Combine(physicalPath, "joshtest"));
    if (physicalPath == null)
        return string.Empty;
 
    file.SaveAs(physicalPath);
 
    // Returns the path to the newly created file
    return virtualSavePath;
}

the file.SaveAs(physicalPath) throws an access denied exception.  The File.Create(...) works and creates the file so it seems that iis has access to create files. 

I am also able to create/delete/move folders and delete files (only tried to delete and upload files).

Am I missing something here that is causing file.SaveAs to not work properly?
Josh
Top achievements
Rank 1
 answered on 13 Aug 2013
2 answers
1.1K+ views

Since I don't require all the functionality of the RadComboBox, I'm migrating several of my RadComboBox
controls over to the new RadDropDownList...but I'm having issues clearing the "text" portion of the
control via client-side script.

When using ComboBox, my client-side script to clear the control was,

resultsComboBox.trackChanges();
resultsComboBox.clearSelection();
resultsComboBox.clearItems();
resultsComboBox.commitChanges();

Now that I'm using DropDownList, my client-side script is,

resultsDropDownList.trackChanges();
resultsDropDownList.get_items().clear();
resultsDropDownList.commitChanges();

This clears the DropDownListCollection fine, but leaves the "selected" item in the top-level box.

Is there a DropDownList equivalent for the ComboBox clearSelection() client-side method?  I've tried setting the default message via
set_defaultMessage("xx") method...but no luck.  Any suggestions?  Thanks.
David
Top achievements
Rank 1
 answered on 13 Aug 2013
2 answers
248 views
Can someone tell me how I can find a control in ContentTemplate of a RadContentTemplateTile?
For example: I have a RadTile with 3 RadContentTemplateTiles in one group. In each RadContentTemplateTile, I have a RadioButton. I want the RadioButton checked when the tile is selected and unchecked if the tile is not selected.

Thank you!
Josh
Top achievements
Rank 1
 answered on 13 Aug 2013
7 answers
242 views
I’m
experiencing a very strange behavior from Textboxes that are using the
RadFormDecorator. When the page opens, the text boxes look great, but when I
move the mouse on top of them, they change their size. Thanks for the help,

-Sam

<%@ Page Title="Edit Category" Language="VB" MasterPageFile="~/Application/MasterPage2.master"  AutoEventWireup="false" CodeFile="CategoryEdit.aspx.vb" Inherits="Application_CategoryEdit" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel2" runat="server" Skin="Metro">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel2"
        EnablePageHeadUpdate="False">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="SubmitButton">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="SubmitButton" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
     
    <div style="font-size: .9em">
        <telerik:RadTabStrip ID="TabStrip" runat="server" MultiPageID="MultiPage" SelectedIndex="0"
            Skin="Outlook">
            <Tabs>
                <telerik:RadTab runat="server" PageViewID="GeneralPage" Text="General Information"
                    Value="GeneralTab" Selected="True">
                </telerik:RadTab>
                <telerik:RadTab runat="server" PageViewID="DetailPage" Text="Forecast Details" Value="DetailTab">
                </telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
        <telerik:RadMultiPage ID="MultiPage" runat="server" SelectedIndex="0">
            <telerik:RadPageView ID="GeneralPage" runat="server" Selected="true">
                <table>
                    <tr>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Category Name
                        </td>
                        <td>
                            <telerik:RadTextBox ID="NameTextBox" runat="server" Skin="" Width="350px">
                            </telerik:RadTextBox>
                        </td>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="NameTextBox"
                                Display="Dynamic" ErrorMessage="Category name is required" Text="<img alt='Information required' src='../Images/Error.gif' />">
                            </asp:RequiredFieldValidator>
                        </td>
                        <td>
                              
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Description
                        </td>
                        <td>
                            <telerik:RadTextBox ID="DescriptionTextBox" runat="server" Skin="" Width="350px">
                            </telerik:RadTextBox>
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Unit of Measurement
                        </td>
                        <td>
                            <telerik:RadComboBox ID="UOMComboBox" runat="server">
                            </telerik:RadComboBox>
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                    </tr>
                    <tr>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>
            <telerik:RadPageView ID="DetailPage" runat="server">
                <table width="100%">
                    <tr>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                        <td>
                              
                        </td>
                    </tr>
                </table>
            </telerik:RadPageView>
        </telerik:RadMultiPage>
        <table class="BottomTable">
            <tr>
                <td>
                    <asp:Button ID="SubmitButton" runat="server" Text="Submit" CommandName="Submit" />
                </td>
                <td style="text-align: right">
                    <asp:Button ID="CancelButton" runat="server" Text="Cancel" CommandName="Cancel" OnClientClick="return CancelAll();" />
                </td>
            </tr>
        </table>
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Please Submit All Required Information"
            ShowMessageBox="True" ShowSummary="False" />
    </div>
    <telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
        <script type="text/javascript">
            //***********************************************************************************************
            function CloseAndRebind(Msg, CatID) {
                GetRadWindow().Close();
                GetRadWindow().BrowserWindow.CategoryEdit_Completed(CatID);
            }
 
            function AlertAndClose(args) {
                alert(args);
                GetRadWindow().Close();
            }
 
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow;
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                return oWindow;
            }
 
            function CancelAll() {
                GetRadWindow().Close();
            }
 
            //***********************************************************************************************
        </script>
    </telerik:RadCodeBlock>
</asp:Content>
<%@ Master Language="VB" CodeFile="MasterPage2.master.vb" Inherits="Application_MasterPage2" %>
<%@ 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 id="Head1" runat="server">
    <title>2forecast</title>
    <link href="../StyleSheet.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder id="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body class="BodyStyle5">
    <form id="form1" runat="server">
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    </telerik:RadStyleSheetManager>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Textbox"
        Skin="Outlook" />
    <div style="font-size: .85em;">
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        </asp:ContentPlaceHolder>
    </div>
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Silk" Modal="True"
        Overlay="True" ShowContentDuringLoad="False" VisibleStatusbar="False" ReloadOnShow="True"
        IconUrl="~/Images/2Forecast_16.png" KeepInScreenBounds="true" AutoSize="False"
        Behaviors="Resize, Close, Maximize, Move, Reload" EnableShadow="True" Style="z-index: 9000">
        <Windows>
            <telerik:RadWindow ID="SmallSizeDialog" Title="" runat="server" Height="300px" Width="700px">
            </telerik:RadWindow>
            <telerik:RadWindow ID="MidSizeDialog" Title="" runat="server" Height="500px" Width="700px">
            </telerik:RadWindow>
            <telerik:RadWindow ID="LargeSizeDialog" Title="" runat="server" Height="700px" Width="900px">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    </form>
</body>
</html>
Sam
Top achievements
Rank 1
 answered on 13 Aug 2013
1 answer
154 views
I need to produce a 'radar chart' for a client.  This is basically a line chart with points plotted on a polar coordinate plot area (vs. cartesian).  Is this possible, either with HTMLChart or the older chart?  I'm not seeing it in the examples.
Danail Vasilev
Telerik team
 answered on 13 Aug 2013
3 answers
113 views
Dear Team,

We are using Telerik Rad Control of version 2011.2.712.40.

Recently, our browser upgraded to IE 10 and the rad context menu is not showing up on first mouse click but shows up on the subsequent clicks. On the console, it shows the following issue:

Telerik.Web.UI.WebResource.axd, line 166 character 2
SCRIPT5007: Unable to get property 'documentElement' of undefined or null reference
Telerik.Web.UI.WebResource.axd, line 166 character 2


This problem occurs in IE 10 only.

Kindly suggest us a fix for this issue.
Vessy
Telerik team
 answered on 13 Aug 2013
1 answer
78 views
Hi,

I have a load on demand tool tip for appointments in Radscheduler. Sometimes, these tool tips do not work in Month and Week View.
When I hover over an appointment, it does not fire   "OnClientBeforeShow" client event.

   <telerik:RadToolTipManager ID="RadToolTipManager1" runat="server" Animation="Fade"  
                                            HideEvent="LeaveTargetAndToolTip"   OnClientBeforeShow="clientBeforeShow"  AutoTooltipify="true"  OnClientHide="OnClientHide"   > 
                        </telerik:RadToolTipManager>


  //Sets Appointment tooltip 
              function clientBeforeShow(sender, eventArgs) {
                  var height = $telerik.$(sender.get_contentElement())[0].scrollHeight;
                  var width = $telerik.$(sender.get_contentElement())[0].scrollWidth;
                  //PK 07/30/2013  MWF-543 Load on demand tooltip
                  //var contentText =  sender._text;

                 //Donot send request to webservice if tooltip is null and display subject/default text
                 var tooltip = Telerik.Web.UI.RadToolTip.getCurrent();
                 if (tooltip == null) {
                     SetToolTipPositionAndText(sender, sender._text);
                     return;
                 }

                  var element = tooltip.get_targetControl();
                  var appt = $find("<%=rsTicketsSchedule.ClientID %>").getAppointmentFromDomElement(element);
                  var apptID = appt.get_id();
                  //Donot send request to webservice if apptID is null and display subject/default text
                   if (apptID == null) {
                       SetToolTipPositionAndText(sender, sender._text);
                      return;
                  }
                  
                  var baseUrl = 'WorkforceServices/RequestHandler.ashx?q=gettooltipforappointment&ApptID=' + apptID;   

             
                  var serviceOptions = {};
                  serviceOptions.url = baseUrl;
                  serviceOptions.data = null;
                  serviceOptions.type = 'POST';
                  serviceOptions.processData = true;
                  serviceOptions.contentType = "application/json";
                  serviceOptions.dataType = 'json';
                  serviceOptions.success = function (result) {
                      var contentText = result.message;
                      SetToolTipPositionAndText(sender,contentText);
                  };
                  serviceOptions.error = function (xhr) {
                      alert(xhr.statusText);
                      SetToolTipPositionAndText(sender, "" );
                  };

                  var workforceServiceProxy = new WorkforceServiceProxy(serviceOptions);
                  workforceServiceProxy.callService();  
              }


Any ideas?

Thanks,
Prava
 
Boyan Dimitrov
Telerik team
 answered on 13 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?