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

For the asp web controls, we can use something like "height:calc(100% - 20px)" to define the height and width.

However when I tried to use it for telerik control:

Height="calc(100%-20px)"

I got parser error.

 

Thanks.

 

 

Eyup
Telerik team
 answered on 29 May 2017
0 answers
166 views

Hi,

I have a bunch of controls in a table, the problem I have is that the bottom padding seems to add 2 pixels, so every combobox is too separated from others controls, and I cannot change that padding. 

You can see what I mean in the picture attached.

Thanks

Jimmy
Top achievements
Rank 1
 asked on 28 May 2017
2 answers
455 views
I am using RadAsyncUpload control to upload the single file on button click. But when I hit the button, RadAsyncUpload.UploadedFiles.Count always says 0. Below is my code.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="QuestionDesigner.aspx.cs"
    MasterPageFile="~/Enigma/Masters/Main.master" Inherits="Enigma_QuestionDesigner"
    EnableEventValidation="false" ValidateRequest="false" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
     <Scripts>
           <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Core.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Upload/RadProgressManager.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQuery.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/jQueryPlugins.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Upload/RadUpload.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/AsyncUpload/RadAsyncUploadScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Common/Popup/PopupScripts.js" />
            <asp:ScriptReference Path="~/Enigma/Telerik/Scripts/Upload/RadProgressArea.js" />
     </Scripts>
</asp:ScriptManager>
 
<asp:UpdatePanel ID="upQuestionSection" runat="server" UpdateMode="Conditional">    
        <ContentTemplate>
            <div>
                 <telerik:RadAsyncUpload ID="fileNodeDefinition" runat="server" MaxFileInputsCount="1"
                            AllowedFileExtensions=".xml" MaxFileSize="52428800">
                 </telerik:RadAsyncUpload>
            </div>
    </ContentTemplate>
</asp:UpdatePanel>
 
</asp:Content>
 
 
Below is Cs File Code
 
public void btnSave_Click(object sender,EventArgs e)
    {
        string filePath;
        if (fileNodeDefinition.UploadedFiles.Count > 0)
        {
                string file = fileNodeDefinition.UploadedFiles[0].FileName;
                filePath = HttpContext.Current.Server.MapPath(".\\Upload\\") + file;
                fileNodeDefinition.UploadedFiles[0].SaveAs(filePath);               
                fileNodeDefinition.UploadedFiles.Clear();
                fileNodeDefinition = null;               
            }
    }

Thanks & Regards,
Sweta Chotalia
Rubiya
Top achievements
Rank 1
 answered on 28 May 2017
2 answers
152 views

What I'm looking to accomplish is an application that allows a user to mark a document/Draw on it and have that document be stored on the server as a PDF or image file for archiving.

I'm using Visual Studio 2013 with .net 4.6.1 and it's a webforms project in ASP/C#.

The general flow is:

1. Webform served and filled out with relevant information (text boxes. drop downs, etc).

2. ** Completed webform saved as an image by user button press and either sent to directory on server or streamed to RadImageEditor.

3. Image loaded into RadImageEditor

4. User draws/writes on image.

5. RadImageEditor saves updated image in temp directory.

6. Updated image saved on server as PDF with RadPDFProcessing.

I have most of the steps working/complete, I'm only missing a crucial step #2. I cannot seem to figure out how to save a ClientExport image to be loaded into the RadImageEditor.

Even if I have to cache the file locally on a users pc, that is ok but I would prefer server if that's possible.  I just need to be able to perform this functionality without needing direct user intervention between steps 1 and 6.

I read through the documentation on saving a pdf here http://docs.telerik.com/devtools/aspnet-ajax/controls/clientexportmanager/client-side-programming/events/pdfexporting  but was unable to get it to work. I kept getting iis tracelog xml files that would report failed requests with code 200.

Any help or pointing in the right direction would be greatly appreciated.

Erik
Top achievements
Rank 1
 answered on 26 May 2017
5 answers
474 views
I doubt this is a Telerik component problem but maybe someone here has run across it and has the answer.

I have a form that has a Checkbox, 2 textareas, 2 required field validators, randscriptmanager and an radajaxmanager on it. The first required validator has it's enabled property set to false. If the user clicks the check box the code enables that validator. I have the radajazmanager set to update the validator on the checkbox click.

The problem is that it appears that the clientside validation for the first validator stops working after the ajax postback. The second validator, the one that was enabled the whole time works fine but the second one will not work until a normal post back occurs.

Hope fully that makes sense. Here is the code.
Partial Class valtest
    Inherits System.Web.UI.Page
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
 
    End Sub
 
    Protected Sub uiCEUsOffered_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles uiCEUsOffered.CheckedChanged
        RequiredFieldValidator11.Enabled = uiCEUsOffered.Checked
        RequiredFieldValidator11.EnableClientScript = uiCEUsOffered.Checked
    End Sub
End Class

aspx code
<div>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td align="right" class="body-text-17" valign="top">
                    CEUs offered:
                </td>
                <td align="right" class="body-text-17">
                      
                </td>
                <td align="left">
                    <asp:CheckBox ID="uiCEUsOffered" runat="server" Text="Yes"
                                  CssClass="body-text-17" AutoPostBack="True" />
                </td>
            </tr>
            <tr>
                <td colspan="3" align="right" class="body-text-17">
                    <img src="/images/spacer-transparent.gif" height="4">
                </td>
            </tr>
            <tr>
                <td align="right" class="body-text-17" valign="top">
                    if so, what type and information on how to register:
                </td>
                <td align="right" class="body-text-17">
                      
                </td>
                <td align="left">
                    <asp:TextBox ID="uiCEUsRegisterInfo" runat="server" CssClass="field-resource-mission"
                                 Height="81px" TextMode="MultiLine"></asp:TextBox>
                     
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server"
                                                ControlToValidate="uiCEUsRegisterInfo" Enabled="False"
                                                ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td height="30" colspan="3" align="right" class="body-text-17">
                      
                </td>
            </tr>
            <tr>
                <td align="right" class="body-text-17" valign="top">
                    what to bring:
                </td>
                <td align="right" class="body-text-17">
                      
                </td>
                <td align="left">
                    <asp:TextBox ID="uiWhatToBring" runat="server" CssClass="field-resource-mission"
                                 Height="81px" TextMode="MultiLine"></asp:TextBox>
                     
                    <asp:RequiredFieldValidator ID="Validator8" runat="server" Display="Dynamic"
                                                ErrorMessage="Required" ControlToValidate="uiWhatToBring"
                                                CssClass="validation-error" ForeColor=""></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td height="30" colspan="3" align="right" class="body-text-17">
                      
                </td>
            </tr>
            <tr>
                <td align="right" class="body-text-17">
                      
                </td>
                <td align="right" class="body-text-17">
                      
                </td>
                <td align="left">
                    <asp:Button ID="uiSubmit" runat="server" Text="Submit" />
                      
                    <asp:Button ID="uiCancel" runat="server" Text="Cancel" Visible="False" />
                </td>
        </tr>
        </table>
    <br />
                <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"
        EnablePageHeadUpdate="False">
                    <AjaxSettings>
                        <telerik:AjaxSetting AjaxControlID="uiCEUsOffered">
                            <UpdatedControls>
                                <telerik:AjaxUpdatedControl ControlID="RequiredFieldValidator11"
                                    UpdatePanelRenderMode="Inline" />
                            </UpdatedControls>
                        </telerik:AjaxSetting>
                    </AjaxSettings>
                </telerik:RadAjaxManager>
            <br />
<br />
<br />
    <br />
   </div>

Any help would be greatly appreciated. Thanks

Brian
Rayne
Top achievements
Rank 1
 answered on 26 May 2017
1 answer
276 views

I have a RadGrid using export settings for a PDF.  I need to have the PDF PageHeader take a dynamic value based on some input data.

EX:

<ExportSettings>
     <Pdf PageHeight="11in" PageWidth="8.5in" >
          <PageHeader>
                  <MiddleCell Text =  <dynamic data here>  />
          </PageHeader>
     </Pdf>
</ExportSettings>

 

Any help would be appreciated.

Thank you

Vessy
Telerik team
 answered on 26 May 2017
2 answers
105 views

I'm trying to change the color of certain items in my listbox in the filtering item to be red if the item contains parenthesis.  I am doing a simple databind to populate my listbox in the FilterCheckListItemsRequested event from a datatable which I populate myself.

e.ListBox.DataSource = dtDataForFiltering; //DataTable
e.ListBox.DataKeyField = datafield;
e.ListBox.DataTextField = datafieldtext;
e.ListBox.DataValueField = datafield;
e.ListBox.DataBind();

 

This is working fine.  Now I am trying to find out how to alter the items in the listbox after it has been filled with data.  I tried looping through it's items and setting the color, but I am not sure if I am doing this correctly or if this is the correct place to do it.  Any help would be appreciated.

Please see image attached.  I am trying to alter items in my filter to be red if in parenthesis, just like the grid in the background.

Chris
Top achievements
Rank 1
 answered on 26 May 2017
4 answers
320 views
Hi,

When i am uploading a file using RadAsyncUpload control,its not showing green that is uploaded.
its jam on uploading and still showing Yellow blink.

It is working in Local but not in Server.

I have checked the permissions for the AppData/RadUploadTemp. all is good.

Please help me to resolve this.

Thanking you,

AGM RAJA
Vessy
Telerik team
 answered on 26 May 2017
1 answer
469 views

I have a RadComboBox with miltiselect checkboxes.

<telerik:RadComboBox ID="rcbCAMs" runat="server" AppendDataBoundItems="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true" Skin="WebBlue"                      Width="200px" OnSelectedIndexChanged="rcbCAMs_SelectedIndexChanged" AutoPostBack="true" ></telerik:RadComboBox>

I'm binding the RadComboBox with a databind in C#

protected void BindToDataTableCAMs(RadComboBox combo)
        {
            CAPData dataSet = new CAPData();
            DataTable dtCAMs = new DataTable();
            dtCAMs = dataSet.GetProjectCAMs(tbProjects.Text);
  
            if (dtCAMs.Rows.Count != 0)
            {
                combo.DataTextField = "Manager";
                combo.DataValueField = "Manager";
                combo.DataSource = dtCAMs;
            }
  
            combo.DataBind();
        }   

 

How do I set the default to be Check All on the initial load?

 

Eyup
Telerik team
 answered on 26 May 2017
0 answers
89 views

Hello,

I used javascript to change the button text to 'Processing' onclientclick. But for the button to export excel, it didn't change back to the original text after RadGridview ExporttoExcel function. Can you help me what to solve it?

Nyein Aung
Top achievements
Rank 1
 asked on 26 May 2017
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?