Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
86 views
For lack of a better question, what is the current status of RadEditor with regard to pasting in copied text from Word?  Currently at our shop we're running Office Professional Plus 2010.  (I am not talking about pasting images.  We learned that the hard way.)

I'm afraid I can't be more precise but the problem is that on rare occasions, when a user pastes in text from Word (or apparently Outlook) something gets slightly corrupted and my program doesn't function exactly as I expect.  And of course we're using multiple browsers.

To put it another way, what are the best practices with regard to the Editor settings and searching the content, once saved to a database varchar field?
Niko
Telerik team
 answered on 29 May 2013
1 answer
234 views
I have an application that dynamically builds an HTML table and populates it with data server side. (Why the designer did not us a repeater is food for another thread). I have the ability to change the date, and when i do so, the table is supposed to be re-built with the selected date's content.

Server side, the correct date is being passed, and it builds the table correctly. My AjaxLoadingPanel displays while the request is processing, but when the request completes, the original data is still showing... For the life of me i cannot figure out why.

Here is the requisite code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="txtDate">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="tblAttendance" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
    <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Metro">
</telerik:RadAjaxLoadingPanel>
<cc1:TabPanel ID="tabAttendance" runat="server" Height="150" HeaderText="Attendance">
                       <ContentTemplate>
                           <asp:Panel runat="server" ID="pnlAttendance" Width="900px">
                               <asp:Table ID="tblAttendance" EnableViewState="False" runat="server" class="ResultsTable"
                                   CellSpacing="0" border="0" Style="width: 880px; border-collapse: collapse;">
                               </asp:Table>
                               <br />
                               <asp:Button ID="btnAttendanceReturn" runat="server" Text="Return" Width="100px" Visible="False"
                                   OnClick="BtnReturnClick" />
                               <asp:Button ID="btnAttendanceSave" runat="server" Text="Save" Width="100px" Visible="False"
                                   OnClick="BtnAttendanceSaveClick" />
                           </asp:Panel>
                       </ContentTemplate>
                   </cc1:TabPanel>
private void GenerateAttendanceTable()
       {
           int counter = 0;
           int notesColWidth = 550;
           const string SRowStyle = "ResultsText";
           const string SRowStyleAlt = "ResultsTextAlt";
           tblAttendance.Rows.Clear();

      .... GET THE DATA .....

foreach(var tableRow in data.Rows)
{
      tblAttendance.Rows.Add(tableRow);
}
Maria Ilieva
Telerik team
 answered on 29 May 2013
1 answer
202 views
I Have rad grid ,In that I have Rad Async upload ,when   user click On edit button of rad grid , i want to dynamically upload the file like ,when user select the click on async upload control ,that mean in rad grid ,I have some records,when user click on ,one record Edit Button
at that time I want ,to Upload same picture to rad Async Upload ,Is any chance to that .

I have idea,when user click on that edit button ,at the time ,we save already display  item in ,rad grid ,It stores ,In Some Download or Some temp folder,at same time ,we call async  upload file functionality Dynamically.upload file ,,

can u plz help in that situation,where we store the file  ,how to dynamically load the file.sample snippet provided to me .

  1.  
    1.    <telerik:GridTemplateColumn Visible="true" DataField="Signature" HeaderText="Signature"
    2.                     HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" UniqueName="Signature">
    3.                     <ItemTemplate>
    4.                         <telerik:RadBinaryImage ID="RadBinaryImage1" runat="server" DataValue='<%#Eval("Signature") is DBNull ? null : Eval("Signature")%>'
    5.                             AutoAdjustImageControlSize="false" ResizeMode="Fit" Height="50px" Width="120px" />
    6.                     </ItemTemplate>
    7.                     <InsertItemTemplate>
    8.                         <telerik:RadAsyncUpload runat="server" ID="ImgImages2" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
    9.                             MaxFileInputsCount="1" Skin="Outlook" Width="350px" PostbackTriggers="PerformInsertButton" />
    10.                         <asp:Label ID="lblupload2" runat="server" Visible="true" CssClass="error"></asp:Label>
    11.                        
    12.                     <EditItemTemplate>
    13.                       
    14.                         <telerik:RadAsyncUpload runat="server" ID="ImgImages" AllowedFileExtensions=".jpg,.jpeg,.png,.gif"
    15.                             MaxFileInputsCount="1" Skin="Outlook" Width="350px" PostbackTriggers="UpdateButton" />
    16.                       
    17.                         <asp:Label ID="lblupload1" runat="server" Visible="true" CssClass="error"></asp:Label>--%>
    18.                     </EditItemTemplate>
    19.                 </telerik:GridTemplateColumn>



             



Hristo Valyavicharski
Telerik team
 answered on 29 May 2013
1 answer
156 views
Hello,

I am currently developing a User Control which contains a RadListView and a RadDataPager. The User Control receives a parameter which is a String representing the Skin to be applied to the Telerik Controls, and the setting is done on 

protected void Page_Load(object sender, EventArgs e)
{
if (Visible == true)
{
this.RadListView_RelevantEvents.Skin = this.Skin;
this.RadDataPager_RadListView_RelevantEvents.Skin = this.Skin;
....
}
}

Nonetheless, only the RadDataPager_RadListView_RelevantEvents gets the skin applied to it whilst RadListView_RelevantEvents inherits the Skin from the Parent element which is a RadDock.

Can someone please provide some help?

Thank you for your attention.

Kind regards,

Kostadin
Telerik team
 answered on 29 May 2013
1 answer
85 views
This option is not working with MetroTouch skin.
Ivan Zhekov
Telerik team
 answered on 29 May 2013
4 answers
265 views
Hi All,

Is there any option to reduce the height of the ribbonbar?

Regards,
Prasad
Ivan Zhekov
Telerik team
 answered on 29 May 2013
2 answers
116 views
Hi,

We have a requirement where we need to show row separator in the exported pdf file, please let us know how this can be implemented in the current html structure (Where Table tr and td has been used) as pasted below.

This is very urgent, please reply asap.

PFA the snap shot where we need row separator after each row.

<telerik:RadGrid runat="server" ID="RadGrid2" EnableEmbeddedSkins="false" GridLines="None"
       ShowFooter="false" AllowPaging="false" OnPdfExporting="TestGrid2_PDFExporting" OnItemCreated="RadGrid2_ItemCreated" >
       <ExportSettings OpenInNewWindow="true">
           <Pdf PageHeight="210mm" PageWidth="297mm" PageBottomMargin="20mm" PageTopMargin="20mm"
               PageLeftMargin="20mm" PageRightMargin="20mm"></Pdf>
       </ExportSettings>
       <MasterTableView AutoGenerateColumns="False" CommandItemDisplay="Bottom">
           <Columns>
               <telerik:GridTemplateColumn UniqueName="InvName">
                   <HeaderTemplate>
                       <asp:Label ID="labelHInvName" runat="server" Text="Inv Name"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                                   <asp:Label ID="label1" runat="server" Text="AC Test Data One"></asp:Label>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="label2" runat="server" Text="AC Test Data Two"></asp:Label>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelInvName" runat="server" Text='<%# Bind("InvName") %>'></asp:Label>  
                                   <asp:Label ID="labelShortName" runat="server" Text='<%# Bind("ShortName") %>'></asp:Label>  
                                   <asp:Label ID="labelStatus" runat="server" CssClass="FundStatus" Text='<%# Bind("Status") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="Symbol">
                   <HeaderTemplate>
                       <asp:Label ID="labelHSymbol" runat="server" Text="Symbol"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelSymbol" runat="server" Text='<%# Bind("Symbol") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="MSRating">
                   <HeaderTemplate>
                       <asp:Label ID="labelHMSRating" runat="server" Text="MSRating"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelMSRating" runat="server" Text='<%# Bind("MSRating") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="NERatio">
                   <HeaderTemplate>
                       <asp:Label ID="labelHNERatio" runat="server" Text="NERatio"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelNERatio" runat="server" Text='<%# Bind("NERatio") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="GERatio">
                   <HeaderTemplate>
                       <asp:Label ID="labelHGERatio" runat="server" Text="GERatio"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelGERatio" runat="server" Text='<%# Bind("GERatio") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="OneQ">
                   <HeaderTemplate>
                       <asp:Label ID="labelHOneQ" runat="server" Text="OneQ"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelOneQ" runat="server" Text='<%# Bind("OneQ") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="YT">
                   <HeaderTemplate>
                       <asp:Label ID="labelHYT" runat="server" Text="YTenure"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelYT" runat="server" Text='<%# Bind("YT") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="OneY">
                   <HeaderTemplate>
                       <asp:Label ID="labelHOneY" runat="server" Text="OneY"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelOneY" runat="server" Text='<%# Bind("OneY") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="ThreeY">
                   <HeaderTemplate>
                       <asp:Label ID="labelHThreeY" runat="server" Text="ThreeY"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelThreeY" runat="server" Text='<%# Bind("ThreeY") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="FiveY">
                   <HeaderTemplate>
                       <asp:Label ID="labelHFiveY" runat="server" Text="FiveY"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelFiveY" runat="server" Text='<%# Bind("FiveY") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="TenY">
                   <HeaderTemplate>
                       <asp:Label ID="labelHTenY" runat="server" Text="TenY"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table >
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelTenY" runat="server" Text='<%# Bind("TenY") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
               <telerik:GridTemplateColumn UniqueName="ThreeYR">
                   <HeaderTemplate>
                       <asp:Label ID="labelHThreeYR" runat="server" Text="ThreeYR"></asp:Label>
                   </HeaderTemplate>
                   <ItemTemplate>
                       <table>
                           <colgroup>
                              <col  />
                           </colgroup>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                               </td>
                           </tr>
                           <tr>
                               <td>
                                   <asp:Label ID="labelThreeYR" runat="server" Text='<%# Bind("ThreeYR") %>'></asp:Label>
                               </td>
                           </tr>
                       </table>
                   </ItemTemplate>
               </telerik:GridTemplateColumn>
           </Columns>
           <CommandItemStyle HorizontalAlign="Left" Wrap="true" Width="100%" />
           <CommandItemTemplate>
               <asp:Label ID="lblText" runat="server" Visible="false" Width="100%"></asp:Label>
           </CommandItemTemplate>
       </MasterTableView>
   </telerik:RadGrid>
Kostadin
Telerik team
 answered on 29 May 2013
1 answer
97 views
Hi,

How can I integrate radinputmanager in my MVC app. Any sample solution will be really helpful.

Thanks and regards
Robert
Shinu
Top achievements
Rank 2
 answered on 29 May 2013
1 answer
200 views
Hello,
I have 2 scenarios.
First:
1. Open Sitecore Content Editor in "Internet Explorer".
2. Navigate to an item with an empty rich text field and click on 'Show Editor'.
3. Select Html view, select All and delete the contents.
4. Select Design view.
5. Press 'Enter' only once.
6. Go back to Html view.
7. The html markup produced is as below:
<p> </p>
<p> </p>

8. Repeat the above steps in Chrome.
9. The html markup produced is as below:
<br />
<p><br /></p>

Second:
1. Paste the following markup in a Rich Text Editor's Html view:
<div style="width: 100%;">ABC</div>
<div style="width: 100%;">DEF</div>
2. Go back to design view.
3. In "Internet Explorer" the above 'div's can be selected, dragged and dropped.
4. In Chrome they are not selectable.

Why does the editor behaves differently in IE and Chrome? Can this be fixed?

Slav
Telerik team
 answered on 29 May 2013
6 answers
263 views
Hi,

Exporting data to pdf file which is forming border around <td> tag even if "boarder:0px" has been used, please let us know the resolution to get rid of this border around <td>.

In OnPdfExporting, if we access e.RowHtml, there formatting is correct but while exporting it's creating border around <td>, trying to figure it out why it's happening.

Please let me know If you already have any idea / solution to fix this.
Kostadin
Telerik team
 answered on 29 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?