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

Hello,

I'm converting my diagram to image or PDF, but on the result I would like to set margins or padding for correct printing. But I could not find any built-in functionality to achieve this. Is this possible to implement?

Kind regards,

Vessy
Telerik team
 answered on 08 Jun 2017
1 answer
212 views

We used to be able to enable JavaScript Intellisense prior VS 2017 via the link below

http://docs.telerik.com/devtools/aspnet-ajax/general-information/using-jquery/jquery-intellisense

Now, switching to VS 2017, the option indicated at the link above don't seem to be available any more.

Anyone know what is the correct way now ?

 

Rumen
Telerik team
 answered on 08 Jun 2017
0 answers
138 views

The RadEditor appears to be adding a <br> after every <p> when you press [Enter] in design mode. When saved and displayed as Html, this looks like two blank lines are between each line, instead of one.

The attached screenshot shows the editor in the bottom half, where the spacing looks correct, and the top half shows the text bound to a grid, where the spacing is doubled. 

If I inspect the markup I can see:

<p>line 1</p><br><br><p>line 2</p><br><br><p>line 3</p></br>

The config I'm initially using for the RadEditor is:

 <telerik:RadEditor RenderMode="Lightweight" ID="tbSummary" <br>                               runat="server" <br>                               StripFormattingOnPaste="NoneSupressCleanMessage" <br>                               NewLineMode="P" <br>                               EditModes="Design" <br>                               EmptyMessage="" <br>                               Width="639px" <br>                               BackColor="White" <br>                               OnClientLoad="OnClientLoad" >

 

I would have expected just the <p> tags, not the additional <br> tags. Any suggestions on how this can be resolved?

K

 

Jason
Top achievements
Rank 1
 asked on 08 Jun 2017
3 answers
73 views

hi, i am using a radeditor in my asp:Repeater. when user tried to add a new row in the repeater, a JS error was thrown

 

screen shot of error

refer to JSError.png

 

code

01.<asp:UpdateProgress ID="updateProgress6" runat="server" AssociatedUpdatePanelID="pnlModular2">
02.     <ProgressTemplate>
03.         <div style="; text-align: center; height: 100%; width: 100%; top: 0; right: 0; left: 0; z-index: 9999999; background-color: #000000; opacity: 0.7;">
04.              <span style="border-width: 0px; ; padding: 50px; background-color: #FFFFFF; font-size: 36px; left: 40%; top: 40%;">Loading ...</span>
05.         </div>
06.     </ProgressTemplate>
07.</asp:UpdateProgress>
08.<asp:UpdatePanel ID="pnlModular2" runat="server" UpdateMode="Conditional">
09.      <ContentTemplate>
10.            <asp:Repeater ID="rptStructureModular2" runat="server" OnItemCommand="rptStructureModular2_ItemCommand" OnItemDataBound="rptStructureModular2_ItemDataBound">
11.                 <HeaderTemplate>
12.                       <table cellpadding="0px" cellspacing="0px" style="width: 95%;">
13.                 </HeaderTemplate>
14.                 <ItemTemplate>
15.                     <tr>
16.                        <td style="padding: 1em 1em;">
17.                              <table style="width: 106%;" cellpadding="0px" cellspacing="0px" class="repeaterTable">
18.                                  <tr>
19.                                    <td colspan="2" style="padding: 1em 1em;">
20.                                                    <asp:Label runat="server" ID="lblModular">Module <%# Container.ItemIndex+1 %></asp:Label>
21.                                                    <asp:LinkButton ID="btnRemoveModular2" runat="server"
22.                                                    CommandName="remove" CommandArgument='<%# Container.ItemIndex %>'>
23.                                                        <span aria-hidden="true" class="glyphicon glyphicon-trash"></span>
24.                                                    </asp:LinkButton>
25.                                                </td>
26.                                            </tr>
27.                                            <tr style="overflow: hidden;" class="<%# Container.ItemIndex+1 %>">
28.                                                <td style="padding: 1em 1em; width: 20%">Title</td>
29.                                                <td style="padding: 1em 1em;">
30.                                                    <asp:TextBox ID="txtTitle" onchange="disableNext()" CssClass="adminText" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "title") %>'></asp:TextBox>
31.                                                </td>
32.                                            </tr>
33.                                            <tr style="overflow: hidden;" class="<%# Container.ItemIndex+1 %>">
34.                                                <td style="padding: 1em 1em;">Description</td>
35.                                                <td style="padding: 1em 1em;">
36.                                                    <telerik:RadEditor ID="txtDescription" runat="server" Content='<%# DataBinder.Eval(Container.DataItem, "description") %>' DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd" OnClientLoad="OnClientLoad">
37.                                                    </telerik:RadEditor>
38.                                                </td>
39.                                            </tr>
40.                                            </table>
41.                                            </td>
42.                                        </tr>
43.                                    </ItemTemplate>
44.                                    <FooterTemplate>
45.                                    <tr>
46.                                    <td style="padding: 1em 1em;" align="right">
47.                                    <asp:Button ID="btnAddModular2" runat="server" Text="Add Module" OnClick="btnAddModular2_Click" />
48.                             </td>
49.                           </tr>
50.                        </table>
51.                   </FooterTemplate>
52.              </asp:Repeater>
53.      </ContentTemplate>
54.</asp:UpdatePanel>
Benjamin
Top achievements
Rank 1
 answered on 08 Jun 2017
0 answers
105 views

Can this be done in order to fit a particular naming convention that a site uses etc? 

 

For ex: The user file is test.pdf but the site prefers a naming convention such as a_test.pdf. Could the user be prompted to change the name of their file using the control? In a sense the user would not need to go to their file explorer, find the file, rename it and then upload. They could simply be prompted to change the name through the control and they would be set. 

 

Any help or possible ways of accomplishing this are appreciated. Thanks. 

David
Top achievements
Rank 1
 asked on 07 Jun 2017
2 answers
150 views

Hi,
I have a 1 column 3 row view for my RadCalendar. The problem is that I can's navigate to the previous months or following months using the "<<" "<" ">" ">>" buttons and I'm not sure why. I don't know if there's something specific I have to enable or what. In my Default.aspx file I have the following code:

<telerik:RadCalendar ID="RadCalendar1" runat="server" EnableNavigation="true" MultiViewRows="3" EnableMultiSelect="False"
                    CssClass="RadCalendarMultiView RadCalendarMultiView_Default" EnableWeekends="True" FastNavigationNextText="&amp;lt;&amp;lt;" SelectedDate="">
                    <SpecialDays>
                        <telerik:RadCalendarDay Date="" Repeatable="Today">
                            <ItemStyle CssClass="rcToday" />
                        </telerik:RadCalendarDay>
                    </SpecialDays>
                    <WeekendDayStyle CssClass="rcWeekend"></WeekendDayStyle>
                    <CalendarTableStyle CssClass="rcMainTable"></CalendarTableStyle>
                    <OtherMonthDayStyle CssClass="rcOtherMonth"></OtherMonthDayStyle>
                    <OutOfRangeDayStyle CssClass="rcOutOfRange"></OutOfRangeDayStyle>
                    <DisabledDayStyle CssClass="rcDisabled"></DisabledDayStyle>
                    <SelectedDayStyle CssClass="rcSelected"></SelectedDayStyle>
                    <DayOverStyle CssClass="rcHover"></DayOverStyle>

                    <ViewSelectorStyle CssClass="rcViewSel"></ViewSelectorStyle>
                </telerik:RadCalendar>

Most of the CssClass codes loaded automatically after doing edits on the design page. 
If anyone has any idea what I'm missing, please let me know.

Thanks, 
Samara

Samara
Top achievements
Rank 1
 answered on 07 Jun 2017
16 answers
536 views
Is it possible to change the width and background image of the SplitBar as well as the middle arrow image?  I have tried setting the width within the RadSplitBar tag but it did not take.

      <telerik:RadSplitter ID="radSplitter" runat="server"
        <telerik:RadPane ID="paneLeft" runat="server">Left Side</telerik:RadPane> 
        <telerik:RadSplitBar ID="splitBar" runat="server" width="20" CollapseMode="Forward" /> 
        <telerik:RadPane ID="paneRight" runat="server">Right Side</telerik:RadPane> 
      </telerik:RadSplitter> 

Thank you,
Kasia
pedrotti
Top achievements
Rank 1
 answered on 07 Jun 2017
3 answers
621 views
I'm trying to add the ability to download a file by clicking on a link that is in a RadGrid within a RadAjaxPanel.  I'm using Response but realize that doesn't work with Ajaxified pages.  Are there any workarounds for this snippet of code?

if (dlFile.Exists)

{

Response.ClearContent();

Response.AddHeader("Content-Disposition", "attachment; filename=" + dlFile.Name);

Response.AddHeader(

"Content-Length", dlFile.Length.ToString());

Response.ContentType = ReturnExtension(dlFile.Extension.ToLower());

Response.TransmitFile(dlFile.FullName);

Response.End();

}



Thanks

Logan Marshall
Top achievements
Rank 2
Iron
 answered on 07 Jun 2017
8 answers
298 views

I'm currently trying to build a form using several input fields and a RadImageEditor. The problem is the only way to save the picture is to call the client-side function "saveImageOnServer". This function though is called asynchronously, so sometimes the picture is hold in my Session, sometimes the button onSave - servermethod is called first and the Session is empty.

 

Is there any possiblity to ensure the image-save function is called first or to get the edited image inside the postback?

Vessy
Telerik team
 answered on 07 Jun 2017
1 answer
154 views

We are using the RadAsyncUpload control (version 2015.401.40) to upload files to an FTP server using FTPWebRequest.

This works without any problems when running on localhost or even on our development webserver where the FTP is hosted on the same network.

However when we update our live web site which Is hosted on a different network to the FTP the file no longer uploads.

We have watched the process and we can actually see the folder structure being created successfully on the FTP and for a very short time we can even see the file we have uploaded TestFile.pdf with a file size of 0kb (The actual file size is 81kb). After approx. 60 seconds we get the "operation has timed out error" and the TestFile.pdf document disappears from the FTP.

Not sure if this is a permissions issue as the upload inidcator is green and i can see the file inside the TempFolder inside the WebApplication.
Any help on this would be great, we are going round in circles on this one.


Neil
Top achievements
Rank 1
 answered on 07 Jun 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?