Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
1.0K+ views
I am tryping to split pages from original pdf and save it as an individual pdf. No luck with the following code
Appreciate anyone can help. Thanks in advance.

 Dim provider As New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider

        Using input As System.IO.Stream = System.IO.File.OpenRead("C:\WebSite2\pdf001.pdf")
            Dim document As Telerik.Windows.Documents.Fixed.Model.RadFixedDocument = New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider(input, FormatProviderSettings.ReadOnDemand).Import()  
          
            For i As Integer = 0 To document.Pages.Count - 1
                Dim exportProvider As New Telerik.Windows.Documents.Fixed.FormatProviders.Pdf.PdfFormatProvider
                Using out As System.IO.Stream = System.IO.File.OpenWrite("C:\WebSite2\Page" & i.ToString & ".pdf")

      
                    Dim outputDocument As New Telerik.Windows.Documents.Fixed.Model.RadFixedDocument
                    Dim page As RadFixedPage = New RadFixedPage()
                    page = document.Pages(i)

                    outputDocument.Pages.Add(page)
                    exportProvider.Export(outputDocument, out)
                End Using
            Next
        End Using


Exception:
System.ArgumentException was unhandled by user code
  HResult=-2147024809
  Message=The document element is associated with another parent.
Parameter name: item
  ParamName=item
  Source=Telerik.Windows.Documents.Fixed
 














Alexander
Top achievements
Rank 2
 answered on 07 Jun 2016
1 answer
399 views

I have added a Captcha control to the Layout Template of the Login control and it works fine. Is the following code needed to validate on the server-side in case a malicious user manages to bypass client validation and submit the form, or would that not be possible?

protected void LoginUser_LoggingIn(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e)
{
    RadCaptcha RadCaptcha1 = LoginUser.FindControl("RadCaptcha1") as RadCaptcha;
    RadCaptcha1.Validate();
    if (!RadCaptcha1.IsValid)
    {
       e.Cancel = true;
    }
}

Ianko
Telerik team
 answered on 07 Jun 2016
1 answer
131 views

Hi, 

RadGantt for Telerik ASP.NET Ajax control has a media query for Day/Week/Month View Buttons. If RadGantt.Width < 1024px then, it combines buttons but looks weird in readonly mode. It floats over border lines.

I need to override this behaviour to make these buttons always visible (not combined)

Is there any way to do this?

(I attached a gif for better explanation)

Veselin Tsvetanov
Telerik team
 answered on 07 Jun 2016
1 answer
115 views

While using radEditor, If we try to get the value of the editor using "get_html()" function, <br /> tag gets appended in the end if the radEditor is empty.
I tried using "get_html(true)" function. In this case ,<br /> is not appended at the end but the trailing space gets truncated.

How should I fetch the value from RadEditor so that <br /> is not appended at the end and also the trailing space is not truncated ?

Ianko
Telerik team
 answered on 07 Jun 2016
2 answers
97 views

Hi All or Telerik Team

Any one know about the situation like me when using Track changes on editor UI control with Asian input methods?

i'm going to purchase this UI library but just hesitate since i can't record the new added words when we are using Chinese or all other Asian input method with this control, once we change the input method on windows it will not able to create new words with TRACKED tag.

http://demos.telerik.com/aspnet-ajax/editor/examples/trackchanges/defaultcs.aspx

Joana
Telerik team
 answered on 07 Jun 2016
3 answers
232 views

I am adding a radEditor to a radGrid which is on pop up window for an ASP.Net application. However when I add the control and render the page the radEditor is unresponsive and does not allow me to add text or use any of the controls on the toolbar. When I debug in the browser there is an error message "Uncaught Type Error: a[b] is not a function". Is there any known issues of having the radEditor inside a radGrid? below is the tag structure.

 

<telerik:RadAjaxPanel>

   <telerik:RadGrid>

      <mastertableview>

         <EditFormSettings>

            <FormTemplate>

               <div>

                  <telerik:RadEditor ID="radID" runat="server" Content='<%# Bind("stuff") %>'></telerik:RadEditor>

              </div> `

            </FormTemplate>

         </EditFormSettings>

      </mastertableview>

   </telerik:RadGrid>

</telerik:RadAjaxPanel>

I am adding a radEditor to a radGrid which is on pop up window for an ASP.Net application. However when I add the control and render the page the radEditor is unresponsive and does not allow me to add text or use any of the controls on the toolbar. When I debug in the browser there is an error message "Uncaught Type Error: object is not a function". Is there any known issues of having the radEditor inside a radGrid?

I am adding a radEditor to a radGrid which is on pop up window for an ASP.Net application. However when I add the control and render the page the radEditor is unresponsive and does not allow me to add text or use any of the controls on the toolbar. When I debug in the browser there is an error message "Uncaught Type Error: object is not a function". Is there any known issues of having the radEditor inside a radGrid?

I am adding a radEditor to a radGrid which is on pop up window for an ASP.Net application. However when I add the control and render the page the radEditor is unresponsive and does not allow me to add text or use any of the controls on the toolbar. When I debug in the browser there is an error message "Uncaught Type Error: object is not a function". Is there any known issues of having the radEditor inside a radGrid?

Ianko
Telerik team
 answered on 07 Jun 2016
1 answer
317 views

Hi.

I am using RadMenuItem for Vertical Navigation bar. But I am unable to place the child menus just below the parent one. All the parent menus should drift down keeping the child menu with the parent one. Right now , it is displaying over the next parent menu which I do not want.

Also, please help me out with CSS part as the CSS which I am applying is not working. Let say, we need to change the back color, size(height and width) of both parent and child menu item.

Also, is there any way out in telerik control that text and image of menu item should be displayed only on click of some button. By Default , it should display only image.

 

Please find attached the menu required.

 

Thanks

Veselin Tsvetanov
Telerik team
 answered on 07 Jun 2016
2 answers
103 views

Can someone show me an example of how to insert/update a photo that resides in the database with this control using a SqlDataSource?

 

Thank you in advance!

Michael

Veselin Tsvetanov
Telerik team
 answered on 07 Jun 2016
1 answer
518 views
How do I go to the last row of the RadGrid? the line must be visible and selected. I did so but it does not work (Prerender event):
                int c = rdg.Items.Count;
                GridDataItem item = rdg.Items[c - 1];

                rdg.ClientSettings.Scrolling.AllowScroll = true;
                item.Font.Bold = true;
                item.Selected = true;
                item.Display = true;
                item.Visible = true;
Eyup
Telerik team
 answered on 07 Jun 2016
1 answer
169 views

We had the following problems when a RadDropDownList has properties set to:

<telerik:RadComboBox  runat="server" ID="cmbStation" Width="100%" AutoPostBack="true" CausesValidation="false" EmptyMessage="Choose one" MarkFirstMatch="true" DataSource='<%# Stations %>' />

 

Once we clicked "clear" the content of the RadComboBox with the "X" button in IE or clear manually, no postback was raised from the control.

Instead have a "telerik" way, we just set the client event "OnClientDropDownClosing" the following javascript fonction:

function CheckIfCleared(sender, eventArgs) {
    if (sender._value == "" && sender._filterText == "") {
        sender.clearSelection();
        sender._applyEmptyMessage();
        __doPostBack(sender._uniqueId, 'SelectedIndexChanged');
    }
    return true;
}

Is there a "Telerik" way, for current or next release, embedded in this control to do it ?
Nencho
Telerik team
 answered on 07 Jun 2016
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?