Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
225 views
Hello,

I am having a problem with a RadEditor thats in the EditTemplate of a RadGrid that is using the Batch edit mode. All HTML tags are lost after the row loses focus.

Steps to reproduce the issue on the sample below:
1. Click one of the rows to enter edit mode
2. Add a hyperlink using the richtexteditor or make a text bold. Anything that adds one or more HTML tags.
3. Exit edit mode, by clicking a different row.
4. All HTML tags are now lost.

See the code sample below:
Markup:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCase.aspx.cs" Inherits="Test.TestCase" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager runat="server" />
        <telerik:RadGrid ID="gvFactors"
                         runat="server"                         
                         AutoGenerateColumns="false"                           
                         AllowAutomaticInserts="true"
                         AllowAutomaticUpdates="true"   
                         AllowAutomaticDeletes="true" 
                         Skin="Metro"                     
                         OnNeedDataSource="gvFactors_OnNeedDataSource">     
            <MasterTableView TableLayout="Auto" EditMode="Batch" CommandItemDisplay="Top">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="Text" DataField="Text" ColumnEditorID="tbText">
                        <ItemTemplate>
                            <%# Eval("Text") %>
                        </ItemTemplate>
                        <EditItemTemplate>
                                <telerik:RadEditor ID="tbText"
                                                    runat="server"                         
                                                    Skin="Metro"                                                                                    
                                                    Content='<%#Eval("Text")%>'                                      
                                                    MaxHtmlLength="4000"
                                                    EditModes="Design"/>                                         
                        </EditItemTemplate>                               
                    </telerik:GridTemplateColumn>
                </Columns>               
            </MasterTableView>
        </telerik:RadGrid>      
    </div>
    </form>
</body>
</html>

Code behind:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace Test {
    public partial class TestCase : System.Web.UI.Page {
        protected void Page_Load(object sender, EventArgs e) {
 
        }
 
        protected void gvFactors_OnNeedDataSource(object sender, EventArgs e) {
            IList<DataItem> items = new List<DataItem>();
            items.Add(new DataItem() { Text = "test1" });
            items.Add(new DataItem() { Text = "test2" });
            items.Add(new DataItem() { Text = "test3" });
 
            this.gvFactors.DataSource = items;
        }
    }
 
    public class DataItem {
        public String Text { get; set; }
    }
}

Marin Bratanov
Telerik team
 answered on 01 May 2015
4 answers
77 views

Hi

I have noticed that all of a sudden several buttons seem to be causing multiple post backs and the issue appears to be that users are double clicking or if the response is slow doing multiple clicks.

This has only just happend within the last few weeks after upgrading to the SP1 latest release.  Has there been a change to the functionality?

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 01 May 2015
2 answers
73 views

I am using version 2014.2.724.45.

I have a grid binded in a panel and the panel is not visible. On postback, the panel is then set to visible and the grid no longer has the default layout when displayed. 

Here is the mark up:



Any ideas?

Thanks! 

 

Viktor Tachev
Telerik team
 answered on 01 May 2015
6 answers
191 views

Good morning,

I have an instance where a new row inserted is not tracked if followed immediately after a row deletion in a RadGrid in batch edit mode.

Process:

1- Add a new row with column named 'AA'

2- Relize I meant to name it 'ZZ' instead. Instead of editing, Delete the newly created row

3- Add the a new row with column named 'ZZ'

Following this process and looking at the results _changes of GridBatchEditing I see a single object is left after I delete the row. The object is -1: "delete". 

I performed the same test on the demo site and did not yield the same result.

I'm on the 2013.7.17 version. Was there a bug in the RadGrid regarding this that anyone knows of that has been fixed?

 Thanks

Viktor Tachev
Telerik team
 answered on 01 May 2015
1 answer
127 views

I am using Radgrid in my page more then 5000 records, when Page loading for the first time My RadGrid position is at top(Not be specified location and Grid is shaking while loading data) of Page for few seconds and after loaded entire data.It is coming normal position.
  Please find the attached problem screen below.
Rad Grid Style is

Style="position: fixed;left: bx; right: 10px; bottom: 110px; top: 206px;"

I want to fix(Don't want to move up to normal position) RadGrid Position always fixed even Page loading for the first time.

Note:- It is not happening in Chrome,Firefox only happen Internet Explorer, and I do not want to pagination for my page.

Please give me solutions.Thanks in advance...

Viktor Tachev
Telerik team
 answered on 01 May 2015
3 answers
76 views

Hallo Telerik Team,

i like to implement only few controls like the grid. I don't like to reference all controls, because i like it compact as possible. Do not want to reference 20 .js files.
What are the necessary dependencies for the Grid?

Alexander Popov
Telerik team
 answered on 01 May 2015
7 answers
99 views

I used the following code to display data in a radwindow, which contains a repeater control. But the columns on one row shifted, as can be seen from the attachment. The same works fine on IE8. Does anybody know how to fix this issue? I am using Telerik for asp.net ajax version 2012.3.1308.35

<telerik:RadWindow ID="rwinDetail" runat="server" RestrictionZoneID="ContentTemplateZone" Modal="false" Width="450" Height="300" Behaviors="Close,Move,Resize,Minimize" Visible="True"> <ContentTemplate> <div style="font-size:small;" id="rwinDetail"> <asp:Repeater ID="repDetail" runat="server">
 <HeaderTemplate> <table id="tableDetail" cellspacing="0" cellpadding="0">
<tr>
 <td colspan="2">
 <asp:Button
ID="btnDetail"
runat="server"
CommandArgument='<%#Eval("Code") %>'
CommandName="DisplayAll"
Text="Display All"
 Font-Size="Small"
Font-Bold="True" />
 </td>
 <td style="visibility:hidden"></td>
 <td style="text-align:left; font-weight:bold;"><asp:Button ID="btnPrintQuality" runat="server" Text="" CssClass="ButtonsLink" /></td> </tr>
<tr>
 <th style="border:solid 1px;">JID</th>
 <th style="border:solid 1px; border-left:none;"> CODE</th>
<th style="border:solid 1px; border-left:none;"> ACTIVE</th>
<th style="border:solid 1px; border-left:none;"> STATUS</th>
 </tr> </HeaderTemplate> <ItemTemplate> <tr id="trDetail">
 <td style="border:solid 1px; border-top:none;">
 <asp:Button ID="btnDettt" runat="server"
CommandArgument='<%#Eval("Code")%>
CssClass="ButtonsLink"
Text='<%#DataBinder.Eval(Container.DataItem, "JID") %>' Font-Size="Small" />
 </td>
<td style="border-bottom:solid 1px; border-right:solid 1px;">
 <asp:Label ID="lbCode" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Code") %>' Font-Size="Small" />
 </td>
<td style="border-bottom:solid 1px; border-right:solid 1px;">
<asp:Label ID="lbActive" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Active") %>' Font-Size="Small" />
 </td>
<td style="border-bottom:solid 1px; border-right:solid 1px;">
 <asp:Label ID="lbStatus" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "Status") %>' Font-Size="Small" />
 </td>                                    
</tr> </ItemTemplate> <FooterTemplate></table></FooterTemplate>
 </asp:Repeater>
</div>

</ContentTemplate>

</telerik:RadWindow>        â€‹

Marin Bratanov
Telerik team
 answered on 01 May 2015
1 answer
139 views

 I am using this example below to browse folders from a UNC path.

 http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/details/use-radfileexplorer-with-physical-and-shared-folder-s-paths 

I can browse the folders and it displays the files just fine. But when I try to Preview the a pdf if the this error. 

Access to the path '\\server\\MyPath\MyPDF.pdf' is denied.

 

 

 In the Web.conifg I have

<identity impersonate="true" userName="domain\user" password="MyPassword"/>

  <location

path="FileSystemHandler.ashx" allowOverride="true">
<system.web>
<identity impersonate="true" userName="domain\user" password="MyPassword"/>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

<location path="Telerik.Web.UI.WebResource.axd" allowOverride="true">
<system.web>
<identity impersonate="true" userName="domain\user" password="MyPassword"/>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>

 

Marin Bratanov
Telerik team
 answered on 01 May 2015
1 answer
72 views

Hello,

I'm using Telerik Rad Tag Cloud control with ajax and i want to add a different style to the item that was clicked.

I tried with OnClientItemClicked and while the loading panel is active on my tag cloud control, it displays the correct style of the clicked item, but when it finish the ajax request, it loses the style and gets to its default.

When i click one item, its behavior is send a request to server side so i can refresh other controls on my page, which are properly refreshed.

How can i fix this? Can someone help me?

 Thank you.

Marin Bratanov
Telerik team
 answered on 01 May 2015
1 answer
91 views

Hi Dear

I test radgrid shortcut (keyboard navigation) but InitInsertKey not work.Also i test your online demo but it is bot work:

 <ClientSettings EnableRowHoverStyle="true" AllowKeyboardNavigation="true">

 <KeyboardNavigationSettings EnableKeyboardShortcuts="true" InitInsertKey="Z" />

 Of course my grid is in batch edit mode.Meanwhile i need a row number in batch edit grid but i dont know to add.for a normal rid i use this :

<telerik:GridTemplateColumn UniqueName="RowNo" HeaderText="<%$ Resources:Resource, row %>"
                AllowFiltering="false" HeaderStyle-Width="40px" DataField="IDAnbarsanad" Aggregate="Count" FooterAggregateFormatString="{0:N0}" >
                    <ItemTemplate>
                        <%# (Container.ItemIndex+1).ToString() %>
                    </ItemTemplate>
                    <EditItemTemplate>
                                    
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>

Please help me.

Viktor Tachev
Telerik team
 answered on 01 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?