Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
172 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
539 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
292 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
125 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
346 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
502 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
106 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
1 answer
61 views

Hello,

I'm a new user of your controls. I have been studying the documentation for the RadGrid, and find that it is terribly lacking in the basic content needed to understand how to use this control.

 

My questions:

I placed a RadGrid on a form, configured a few columns and supplied it with a datasource. Many columns from the datasource are hidden in the grid. When I click the link to add a new record, only the columns configured as visible appear in the resulting dropdown form.

1. Is it possible to configure this dropdown form to contain the columns/fields necessary to fully describe the new record?

2. If so, can this be done in the control's designer? If so, how?

3. Is it possible to validate user entry into the fields in the add new record dropdown form? If so, please describe in detail the steps I need to take to accomplish this.

4. Is it possible to configure validation in the designer for the RadGrid control?

 

Space limitations dictate that there is no room in the grid for additional columns, such as Edit and Delete. Therefore, I assume I need to configure a CommandItemTemplate which adds new buttons to the toolbar above the grid. I have done this.

1. Is it possible to code the custom buttons to behave precisely as when clicking the built-in edit and delete columns?

2. If so, please describe the exact steps I need to take to effect this. As before, please describe if and how the control designer may be used to do this. For example code, please note that I use VB.Net.

 

Visibility of the buttons:

I used Example 1 from http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/data-editing/commanditem/command-item-template#custom-commanditemtemplate. I fail to see a good reason for the Edit and Delete buttons being visible unless one or more rows is selected in the grid. If there is a good reason for this, please let me know. Is it simply a matter of preference?

1. Please describe how I may control button visiblity based upon the count of selected rows in the grid.

 

I note that the Delete button from the sample includes
CommandName="DeleteSelected". When I select a row and click the button,
the record is not deleted. The grid is bound to a SqlDataSource. I assume that the delete command would remove the selected record(s) from the datasource, then effect an Update against the database.

1. How is basic CRUD done when using custom buttons in the toolbar?

2. How is basic CRUD done when using the built-in command columns?

 

I note that a RadGrid contains one or more views. I also note that, in the designer, there are some identical options for both the Grid and the MasterTableView. It seems that one must at times make use of the options associated with the Grid and, at other times, make use of those associated with the MasterTableView.

1. How am I supposed to know which of the duplicate options to use? Which one actually effects the desired behavior?

2. Is my perception correct that the use of these options in the designer is inconsistently applied?

 

Thank you.

 

 

bob
Top achievements
Rank 1
 answered on 25 May 2017
13 answers
1.8K+ views
Hi All

I'm getting the following error:
"Selection out of range Parameter name:"

I know what is causing the error - I'm using simple data binding, and the value I'm binding to the ComboBox doesn't exist in its list of values.  I'm looking for a way to work around this, because it's always possible that someone has changed a value in the database to one that doesn't exist in the ComboBox.

I've read that setting AllowCustomText="true" will allow values to be entered that aren't currently in the list, however it still seems to crash if the value I'm binding doesn't exist in the datasource.

Ideally, the functionality I want is:
The list will auto-populate from the datasource.
If the value I bind to the ComboBox doesn't exist in the datasource, then that value is automatically added to ComboBox and can be selected like any other value.
The users can only select values from the list, I wouldn't want them to be able to enter any value they like (which is what I think AllowCustomText does).

Is there any way to do this?
Serge Aranda
Top achievements
Rank 1
 answered on 25 May 2017
1 answer
93 views

Is Telerik ASP.NET AJAX Q2 2011 SP1 compatible with Internet Explorer 11? My Telerik control events are not firing unless I put my browser in compatibility mode.

Thanks

TB
Dimitar
Telerik team
 answered on 25 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?