Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi Guys,

Scenario:
1. Select the “HTML” mode;
2. Add the following iframe:
<iframe src="http://www.sitecore.net/" width="500px" height="500px" myattr1=”1” myattr2=””></iframe>
3. Switch to the “Design” mode;
4. Switch to the “HTML” one.
Actual result:
<iframe src="http://www.sitecore.net/" width="500px" height="500px" myattr1=”1”></iframe>
Expected result:
<iframe src="http://www.sitecore.net/" width="500px" height="500px" myattr1=”1” myattr2=””></iframe>
Please take a look at the video at http://screencast.com/t/jnqcsNmIcx0

Best regards,
Andrey
Marin Bratanov
Telerik team
 answered on 18 Sep 2014
1 answer
68 views
Sometimes I answered my own question (and wants to remove the clutter) or wants to update the original email but I do not see such features available.
Georgi Tunev
Telerik team
 answered on 18 Sep 2014
1 answer
109 views
Hi Team,

Our requirement is to show more than 30 columns in the grid .Refer the attachment for the html.

We have placed a button below to grid to export only 20 columns from the grid into excel and pdf. So we have tried this functionality by setting Exportable="false"  in the rest of the 10 columns which we don't want to be the part of export.

Those 20 columns which are needs to be part of export is combination of GridTemplate column,GridBound Column and GridNumeric column. Please refer the attachment.

The problem which we are facing is even though we put Exportable="false" to the 10 columns which are not to be part of export to excel are getting exported .For example in the attachment right now we are trying to block the below columns from export but it not working.

Columns that needs to be blocked from export:-
1) AuditTrail
2) AuditTrailId
3) SystemMessage
4) ErrorIdMessage
5) ErrorDivid
Kostadin
Telerik team
 answered on 18 Sep 2014
1 answer
153 views
        <telerik:GridTemplateColumn DataField="FIRSTANDLASTNAME"
                                    HeaderText="[FIRSTANDLASTNAME]" SortExpression="FIRSTANDLASTNAME" UniqueName="FIRSTANDLASTNAME"
                                    GroupByExpression="FIRSTANDLASTNAME GROUP BY FIRSTANDLASTNAME">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkFIRSTANDLASTNAME" runat="server" Text='<%# AntiXSSEncoder.HtmlEncode(this.GetDataFromContainer(Container.DataItem, "FIRSTANDLASTNAME")) %>'
                                            OnCommand="ContactSelected_Command" />
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>


The value I assign to "[FIRSTANDLASTNAME]" is a dynamic value from database based on language. I wanted it to be encoded so it will not be open to xss attacks.

///  Below fix works but I 10s of columns in differen pages. Is there a way to encode the value without encoding one by one via UniqueName ?
        protected void MPViewGridContact_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridHeaderItem)
            {
                GridHeaderItem headerItem = e.Item as GridHeaderItem;                var button = headerItem["FIRSTANDLASTNAME"].Controls[0] as LinkButton;
                button.Text = AntiXSSEncoder.HtmlEncode(button.Text);            }        }
Angel Petrov
Telerik team
 answered on 18 Sep 2014
25 answers
1.6K+ views
Neither my radio buttons nor checkboxes are displayed on Chrome or Safari. Any clue why? Here is an example how I use one (checkbox): (sample image is also attached)

<form id="form1" runat="server"
         
            <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="all"></telerik:RadFormDecorator> 
 
        <%-- other form controls --%> 
 
            <asp:Label ID="lblRememberMe" CssClass="rememberMe" AssociatedControlID="chkRememberMe" runat="server" Text="remember me"></asp:Label> 
            <asp:CheckBox ID="chkRememberMe" runat="server" /> 
 
    </form> 

Any help is appreciated.
Mike
Top achievements
Rank 1
 answered on 17 Sep 2014
0 answers
76 views
I would like to know what Telerik web form control(s) you would use to accomplish the following goals: In an existing .net 2010 web form application, I need to add the functionality of allowing the help desk people to do the following: 1. search to see if users have access to specific active directory group(s), 2. If the user does not have access to a specific active directory group, they need to be added to the active directory group. 3. Search a user table to see if the user is in the table and the user has the correct permissions in the table. Can you tell me what Telerik web form controls you would use and why you would use those controls?
 
Diane
Top achievements
Rank 1
 asked on 17 Sep 2014
2 answers
112 views

I am trying to modify the contents of a RadGrid Column HeaderText item in C#.

I was unable to modify inline font characteristics from within the HeaderText property in the markup, so i tried in the code-behind thusly:

01.protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
02.        {
03.            if (e.Item is GridHeaderItem)
04.            {
05.                GridHeaderItem header = (GridHeaderItem)e.Item;
06. 
07.                foreach (string col in SysInvCols)
08.                {
09.                    Label lbl = new Label();
10.                    lbl.ID = "Label1";
11.                    header[col].Controls.Add(lbl);
12.                    lbl.Text = "E";
13.                    lbl.Font.Name = "Windings 3";
14.                }
15.            }

Unfortunately, the font is not modified as i would expect.  Is there another way to do what i'm trying to do?

Note: ASCII Character Code 69, the captial letter E in latin, and in wingdings 3 it is a pair of arrows (one pointing up and the other pointing down).

Please see attached image for clarity.



Pavlina
Telerik team
 answered on 17 Sep 2014
3 answers
101 views
Hello,

I have a Radgrid with a detail table.  The detail table works fine.  If I group the main Radgrid by one column, I can still expand the group, and then the detail table, and it displays fine.

If I group the main radgrid by two columns, I can expand the groups fine, but when I expand the detail table, it does not show.  Strangely, it is populated fine, but the row is created with 'display: none;'.

If I remove the style tag from that row using Chrome's 'inspect element' function, the detail table shows just fine, with appropriate data.

Is this a bug?  I don't have any Javascript functionality, so the 'style' tag must be added by the Radgrid.  The Radgrid uses client-side grouping, and is also using an ajax manager.

See it in action here: http://www.hotslogs.com/Account/MatchHistory?PlayerID=17.  Group by 'Character', and you can still expand detail table.  Group by 'Character' and 'Map', and the detail table doesn't show.  Inspect the element and you can find the detail table's row with 'display: none;'
Konstantin Dikov
Telerik team
 answered on 17 Sep 2014
0 answers
96 views
Hi 
I'm migrating a Sharepoint 2007 32 to 64-bit and I'm having the following issue

Could not find a part of the path
'c:\Windows\System32\inetsrv\~\wpresources\Telerik\ToolsFileVideo.xml'.
Description:
An unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the error and
where it originated in the code.

Exception Details:
System.IO.DirectoryNotFoundException: Could not find a part of the path
'c:\Windows\System32\inetsrv\~\wpresources\Telerik\ToolsFileVideo.xml'.

Source
Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:

[DirectoryNotFoundException: Could not find a part of the path 'c:\Windows\System32\inetsrv\~\wpresources\Telerik\ToolsFileVideo.xml'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +239
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +2580
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) +138
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +94
System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +121
System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +65
System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +76
System.Threading.CompressedStack.runTryCode(Object userData) +118
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +122
System.Xml.XmlTextReaderImpl.OpenUrl() +5028124
System.Xml.XmlTextReaderImpl.Read() +152
System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +165
System.Xml.XmlDocument.Load(XmlReader reader) +134
System.Xml.XmlDocument.Load(String filename) +95
Telerik.Web.UI.RadEditor.get_ToolsFileContent() +354
Telerik.Web.UI.ToolsFileLoader.LoadColors(EditorColorCollection colors) +67
Telerik.Web.UI.RadEditor.LoadToolsFile(Boolean loadOnlyEmptyCollections) +228
Telerik.SharePoint.FieldEditor.RadHtmlField.set_ToolsFile(String value) +42
T_RadHtmlField_ToolsFile_110.SetProperty(Object , Object ) +94
System.Web.Util.FastPropertyAccessor.SetProperty(Object target, String propName, Object val, Boolean inDesigner) +118
System.Web.UI.PropertyMapper.SetMappedPropertyValue(Object obj, String mappedName, Object value, Boolean inDesigner) +61
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +165

[HttpException (0x80004005): '~/wpresources/Telerik/ToolsFileVideo.xml' could not be set on property 'ToolsFile'.]
System.Web.UI.ControlBuilder.SetSimpleProperty(SimplePropertyEntry entry, Object obj) +3962194
System.Web.UI.ControlBuilder.InitSimpleProperties(Object obj) +217
System.Web.UI.ControlBuilder.InitObject(Object obj) +227
System.Web.UI.ControlBuilder.BuildObjectInternal() +290
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +561
System.Web.UI.TemplateBuilder.InstantiateIn(Control container) +438
System.Web.UI.WebControls.ContentBuilderInternal.InstantiateIn(Control container) +35
System.Web.UI.WebControls.ContentPlaceHolderBuilder.BuildObject() +238
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +561
System.Web.UI.ControlBuilder.InitObject(Object obj) +536
System.Web.UI.ControlBuilder.BuildObjectInternal() +290
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +561
System.Web.UI.ControlBuilder.InitObject(Object obj) +536
System.Web.UI.ControlBuilder.BuildObjectInternal() +290
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +561
System.Web.UI.ControlBuilder.InitObject(Object obj) +536
System.Web.UI.ControlBuilder.BuildObjectInternal() +290
System.Web.UI.ControlBuilder.BuildChildren(Object parentObj) +561
System.Web.UI.ControlBuilder.InitObject(Object obj) +536
System.Web.UI.FileLevelPageControlBuilder.InitObject(Object obj) +68
System.Web.Compilation.BuildResultNoCompileTemplateControl.FrameworkInitialize(TemplateControl templateControl) +118
System.Web.UI.TemplateControl.FrameworkInitialize() +193
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +1305
System.Web.UI.Page.get_Master() +69
System.Web.UI.Page.ApplyMasterPage() +18
System.Web.UI.Page.PerformPreInit() +58
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1256
I don't know where to change the path.

I read that I have to change the path, but I don't  know where to change it.
Can someone help me?


Ian
Top achievements
Rank 1
 asked on 17 Sep 2014
4 answers
435 views

I have installed the new 7.1.3 version. However when I switch to Edit Page I get the exception listed below. Everything is correctly installed, the ToolsFile.xml is in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.3.0.0__1f131a624888eeed\RadControls\Editor
RadEditor in Page Layout:
<radE:RadHtmlField ID="RadEditorTextE" FieldName="AMCTextXHTML" runat="server" AllowFonts="False" AllowHtmlSourceEditing="True" DisplayHeight="400px" DisplayWidth="430px" DisableCustomStyles="True"></radE:RadHtmlField>

Any idea what might be wrong?

Regards,
Hugo




Could not find a part of the path 'c:\windows\system32\inetsrv\~\RadControls\Editor\ToolsFile.xml'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\RadControls\Editor\ToolsFile.xml'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[DirectoryNotFoundException: Could not find a part of the path 'c:\windows\system32\inetsrv\~\RadControls\Editor\ToolsFile.xml'.]
  System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +2014144
  System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +998
  System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) +113
  System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) +78
  System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) +51
  System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver) +44
  System.Threading.CompressedStack.runTryCode(Object userData) +54
  System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) +0
  System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state) +174
  System.Xml.XmlTextReaderImpl.OpenUrl() +199
  System.Xml.XmlTextReaderImpl.Read() +50
  System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) +145
  System.Xml.XmlDocument.Load(XmlReader reader) +96
  System.Xml.XmlDocument.Load(String filename) +157
  Telerik.WebControls.RadEditor.LoadToolsFile() +629

[Exception: Cannot find tools file ~/RadControls/Editor/ToolsFile.xml Please make sure the file exists or that RadControls folder have been properly set.]
  Telerik.WebControls.RadEditor.LoadToolsFile() +717
  Telerik.WebControls.RadEditor.EnsureToolsFileLoaded() +279
  Telerik.WebControls.RadEditor.get_Toolbars() +10
  Telerik.SharePoint.EditorTools.RemoveTool(RadEditor contentEditor, String toolName) +28
  Telerik.SharePoint.FieldEditor.RadHtmlField.OnLoad(EventArgs e) +610
  System.Web.UI.Control.LoadRecursive() +47
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Control.LoadRecursive() +131
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
Ian
Top achievements
Rank 1
 answered on 17 Sep 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?