Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
Hi,
I am creating a chart using radchart control which is of chart type="bar".I am setting chart series propetes like below. after the image is loaded on a page observed that the bars are dissolving color at the end. I want the bar with solid image.

 <telerik:ChartSeries DataYColumn="UnitPrice" Name="Product Unit Price">
    <Appearance>
         <FillStyle FillType="Image">
            <FillSettings BackgroundImage="~/App_Themes/ESDTheme/Images/MechEngg/bar_bg.jpg">
            </FillSettings>
         </FillStyle>
         <LabelAppearance Visible="False">
         </LabelAppearance>
         <Border Visible="False"></Border>
         </Appearance>
  </telerik:ChartSeries>


Please find the attachment and help me.

Thanks,
Vikram
Evgenia
Telerik team
 answered on 23 Jun 2011
6 answers
171 views
<telerik:RadUpload ID="rupReqAttachment" runat="server" MaxFileSize="1000000000"
MaxFileInputsCount="1" ReadOnlyFileInputs="true"
   InputSize="30" ControlObjectsVisibility="None"  AllowedFileExtensions=".txt,.pdf,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.bmp,.gif">
 </telerik:RadUpload>
Hi,

I m using radupload control in Page. when i m clicking in the textbox of the radupload, file open dialog window is not showing IE but its showing FireFox  and can't able to validate the control by asp.net required field validator. can any give me the soluation for the above problems.

Peter Filipov
Telerik team
 answered on 23 Jun 2011
6 answers
229 views
Hello,

I have a RadAsynchUpload control inside a div with style display:none.

When the user clicks a certain radio I switch the div to display:block. In this scenario the AllowedFileExtensions is ignored. If I put the upload control in a div with normal display it works.

Here is my code to reproduce the problem:

Javascript that handle showing div:

<telerik:RadScriptBlock ID="rsb" runat="server">
        <script type="text/javascript">
            function toggleDiv(div, st) {
                $get('div' + div).style.display = st;
            }
            function validationFailed(sender, eventArgs) {
                $(".ErrorHolder").append("<p><span style='color:red;'>Het bestand '" + eventArgs.get_fileName() + "' is te groot.<br />De maximale bestandsgrootte is 100Mb per bestand. Upload afgebroken.</span></p>").fadeIn("slow");
            }
            function filesSelected(sender, eventArgs) {
                
            }
             
        </script>
    </telerik:RadScriptBlock>

aspx and html for upload that doesnt show the fileextensions in the open dialog:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
     
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="RadioButtons, Textbox, Checkboxes, Buttons"
        EnableRoundedCorners="false" Skin="Office2007" />
 
<asp:RadioButton ID="rb0post" runat="server" GroupName="g0" Text="per post" TextAlign="Right"
                                        onclick="toggleDiv('0', 'none');" />
                                    <br />
                                    <asp:RadioButton ID="rb0email" runat="server" GroupName="g0" Text="digitaal" TextAlign="Right"
                                        onclick="toggleDiv('0', '');" />
                                    <br />
                                    <div id="div0">
                                        <telerik:RadAsyncUpload OnClientFilesSelected="filesSelected" MaxFileSize="102400000" ID="RadAsyncUpload0" runat="server" Skin="Office2007" TargetFolder="~/Uploads"
                                            AllowedFileExtensions=".doc,.xls,.ppt,.pdf,.jpg,.gif,.bmp,.tif,.tiff,.png,.sif,.zip,.swf,.docx,.xlsx,.pptx,.avi,.mpg,.mpeg,.mp3,.wav,.odt,.ods"
                                            Culture="Dutch (Netherlands)" MultipleFileSelection="Automatic" OnClientValidationFailed="validationFailed">
                                            <Localization Cancel="Annuleren" Remove="Verwijderen" Select="Selecteren" />
                                        </telerik:RadAsyncUpload><div id="ErrorHolder"></div>
                                        Reeds geüpload:
                                    </div>


If I place an upload not in a div with display none it does work:

<telerik:RadAsyncUpload OnClientFilesSelected="filesSelected" MaxFileSize="102400000" ID="RadAsyncUpload1" runat="server" Skin="Office2007" TargetFolder="~/Uploads"
                                            AllowedFileExtensions=".doc,.xls,.ppt,.pdf,.jpg,.gif,.bmp,.tif,.tiff,.png,.sif,.zip,.swf,.docx,.xlsx,.pptx,.avi,.mpg,.mpeg,.mp3,.wav,.odt,.ods"
                                            Culture="Dutch (Netherlands)" MultipleFileSelection="Automatic" OnClientValidationFailed="validationFailed">
                                            <Localization Cancel="Annuleren" Remove="Verwijderen" Select="Selecteren" />
                                        </telerik:RadAsyncUpload><div id="ErrorHolder">


Any suggestions?
Peter Filipov
Telerik team
 answered on 23 Jun 2011
7 answers
584 views

The application that I am working with has hundreds of style sheets for different clients that are dynamically loaded based on client configuration. All style sheet references are defined in the application's master page. After adding a few newer Telerik controls to some of the pages along with the additional custom skin css references, we have reached the 31+ max css limit for IE and various controls are beggining to experience style/rendering issues. The RadStyleSheetManager seems like a good solution to implement in order to consolidate these multiple css references into one.

From the little documentation available for the RadStyleSheetManager, it seems that it only works for style sheets that are in a separate class library defined as a web resource... is this the only way? Can the RadStyleSheetManager combine css embedded resources that are local to the project? Something like ...

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadStyleSheetManager._Default" %> 
 
<%@ 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">  
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" Runat="server">  
        <StyleSheets> 
            <telerik:StyleSheetReference Path="Stylesheet1.css" Name="StyleSheet1.css" /> 
            <telerik:StyleSheetReference Path="Stylesheet2.css" Name="StyleSheet2.css" /> 
            <telerik:StyleSheetReference Path="Stylesheet3.css" Name="StyleSheet3.css" /> 
        </StyleSheets> 
    </telerik:RadStyleSheetManager>   
    <div> 
        <div class="Style1">Style 1</div> 
        <div class="Style2">Style 2</div> 
        <div class="Style3">Style 3</div> 
    </div> 
    </form> 
</body> 
</html> 
 
Helen
Telerik team
 answered on 23 Jun 2011
3 answers
88 views
I have a master page with a telerik control on it.  When I create content pages using this master that have multiple pages of data on them then do a print preview I can see all of the pages just fine.  As soon as I add a local web.config to the same folder as the content page then run the page and do a print preview I only get one page - rest of the pages are blank.  This only happens to content pages that use the master page with the telerik control on it.  any ideas?  thanks! The web.config is just requiring authentication:

<configuration>
  <system.web>
    <authorization>
      <allow roles="PubAll" />
      <allow roles="PubCpi" />
      <deny users="*" />
    </authorization>
  </system.web>
</configuration>


 
Dobromir
Telerik team
 answered on 23 Jun 2011
3 answers
45 views
Hi,

Is there any way I can move legend position inside the plot area for Windows7 skin. When I set Legend Position = "Top" it is coming out as "TopLeft" where as it comes inside plotarea and centered in WebBlue skin. Why is it coming different when I change skins. Is there any way I can set it manually? 

Thanks,
Swetha
Giuseppe
Telerik team
 answered on 23 Jun 2011
1 answer
131 views
Hi,

I am using AllowDragToGroup = true. If RadGrid contains thousands of record. so grouping take lot much time. I want to give a alert message and cancel Drap and drop operation if User tries to drag any column in such condition.
Radoslav
Telerik team
 answered on 23 Jun 2011
2 answers
397 views
Hi,

I have a master page that has a RadWindowManager which contains some RadWindows that are common to all pages.
I am wanting to add specialized RadWindows on some of the child pages.

While I know that I can add these in the code behind or add them as separate RadWindows outside the Manager, I was wondering if I can add them declaratively into the RadWindowManager?
The behavior I'm looking for is similar to the use of the RadAjaxManagerProxy, and would look something like the code below.

Master Page:
<%@ Master Language="VB" CodeFile="Design.master.vb" Inherits="Design" %>
[...]
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
   <Windows
      <telerik:RadWindow ID="CommonWindow" runat="server" />
   </Windows>
</telerik:RadWindowManager>
[...]
Child Page:
<%@ Page Language="VB" MasterPageFile="Design.master" CodeFile="Main.aspx.vb" Inherits="Main"  %>
[...]
<telerik:RadWindowManager ID="RadWindowManager1Proxy" runat="server">
   <Windows>
      <telerik:RadWindow ID="PageSpecific" runat="server" />
   </Windows>
</telerik:RadWindowManager>
[...]


If I can't do this, is there any performance cost to not putting the RadWindows into the Manager?

Many thanks.
Zadjil
Top achievements
Rank 1
 answered on 23 Jun 2011
1 answer
106 views
Hi,

    I have rad scheduler in my page. I have dynamically added  a 'more' link in appointments template with appointments id. i have set the target control id as more link id.
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e)
       {
               LinkButton lnkPermitName = (LinkButton)e.Container.FindControl("lblDisplayPermitName");
               Label labelPermitName = (Label)e.Container.FindControl("labelPermitName");
               if (!IsEditable)
               {
                   lnkPermitName.Visible = false;
                   labelPermitName.Visible = true;
               }
               else
               {
                   lnkPermitName.Visible = true;
                   labelPermitName.Visible = false;
               }
                LinkButton lnkButtonMore = new LinkButton();
               lnkButtonMore.ID = e.Appointment.ID.ToString();
               lnkButtonMore.Text = "More";
              RadToolTipManager1.TargetControls.Add(lnkButtonMore.ClientID, e.Appointment.ID.ToString(), true);
               //RadToolTipManager1.TargetControls.Add(lnkButtonMore.ID, e.Appointment.ID.ToString(), false);
               if (e.Appointment.CssClass == UIConfigurationConstant.DARKBLUE)
                   lnkButtonMore.Style.Add(HtmlTextWriterStyle.Color, "white");
               e.Container.Controls.Add(lnkButtonMore);
               //LinkButton lnkButtonMore = new LinkButton();
                             }


if i pass value while setting target control its not even firing.. if i remove value and pass only id, isClient id flag then its throwing
System.ArgumentNullException: Value cannot be null.
Parameter name: Cannot find a server control with ID=36822c37-d8ca-4b29-a31f-b315fb68a4a3. If you need to specify a client-side element ID, please set IsClientID to true.


how to resolve this.. ?

thx
Marin Bratanov
Telerik team
 answered on 23 Jun 2011
1 answer
130 views
Hello again...

Hopefully this one is easier.  I have the following code:

Else

'if in edit mode, set the date picker to popup on click in input box

SetDatePickerPopop(dataItem, "ctlFollowup_DatePicker")

'enable a scroll bar if there are too many items in the list

GlobalMethods.SetDropDownHeight(CType(dataItem.FindControl("ctlUserNoteType"), RadComboBox))

GlobalMethods.SetDropDownHeight(CType(dataItem.FindControl("ctlUserCombo"), RadComboBox))

RIGHT HERE...I need to access the "ctlUserCombo", compare the text of each RadComboBoxItem, and when I find a match to a value I have, set that RadComboBoxItem to Selected = True and (if possible), Enabled = False.  That is, I have a checkbox list of people, and some have already been selected.  I want to show the user those that have already been selected, and then disable the user from being able to change the checkbox.

Any suggestions?

Thanks in advance for all the help.

Rich


Kate
Telerik team
 answered on 23 Jun 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?