Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
112 views
Hi,

I've got a RadMenu using a SiteMapDataSource which reads a web.sitemap that has parent nodes with blank URLs. Previous to adding the AntiXSS 4.1 library as the default encoder type, any urls in the web.sitemap which had blank URL's were rendered with a #. For example, if this is in the sitemap;

<siteMapNode url="" title="Help"  description="" roles="UserRole">
    <siteMapNode url="~/help/faq.aspx" title="FAQ"  description="FAQ" roles="UserRole" />
</siteMapNode>


the node for Help list its href attribute like href=#

However, after adding the AntiXSS 4.1 library the href attribute is rendered like href=%23. Consequently when a user clicks the menu item navigation fails.

Is it possible to make the menu render blank urls with an empty href attribute? Basically, on some of my parent nodes I don't want the user to be able to navigate anywhere, I just want the menu to display the child nodes.
Jeff
Top achievements
Rank 1
 asked on 08 Dec 2011
1 answer
46 views
Telerik team,

I have face a new issue while try to implement the custom property inspector.

Here I attach a image,
<xref format="dita" href="#bnf_38311" otherprops="BNF:topic: Immunisation schedule" type="topic">
section 14.1
</xref>
If i click the text "section 14.1" in the yellow highlighted text,I can create a panel(with input fields) outside editor using java script .And i filled the selected tag attributes in the relevant fields.

But after filled ,the cursor from editor gone away. But i need that the cursor should stay in the selected position in this editor.

Is this natutre of editor or due to my operation in java script (create a panel outside for display the properties) should gone away?

Is any possibility should after create a panel,should stay the cursor in the editor itself.

Note:
One more point i found while investigating this issues,

When i click the tag,out side the editor panel created and the cursor should stay in that position in editor.

But when i click the outside input field,It moves out from editor to that fields.

Is any possibility to get the current position before leave from editor or get the selected tag details?

Kindly share your suggesstion/comments to solve my problem.

Thank you
Rumen
Telerik team
 answered on 08 Dec 2011
1 answer
101 views
Hello

I am playing with Editor inside RadDock. I found strange behaviour in some browsers (IE9 and Chrome - no other tested)

IE9:
After move of dock, design mode is not editable and blocked.
After move od dock in html mode, content is lost, editing blocked but switch to other mode and back will allow html editing.
Chrome:
When moving Dock in HTML mode, after placing dock into Zone, content is lost.
Also, when just clicking on the docked raddock (or doing  very short dragging), text will disappear from the editor however it is still present (checked with alert in javascript) and will usually reappear after it is moved somewhere else. 

This is not happening if the dock is not placed in zone

It is running without issues on IE8 or  IE9 in compatibility mode or IE9 if using  <meta http-equiv="X-UA-Compatible" content="IE=8" />.


Sample code : 
<div>    
        <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px">
               </telerik:RadDockZone>
            <telerik:RadDock ID="RadDock1" runat="server" Width="300px" >
                <ContentTemplate>                     
                    <telerik:RadEditor ID="RadEditor1" runat="server">
                    </telerik:RadEditor>                    
                </ContentTemplate> 
            </telerik:RadDock>
</div>

SW: VS 2008, .NET 3.5, Telerik 3Q 2011

Is there any way to fix such behaviour preferably without use of <meta...

Regards

Pavel
Slav
Telerik team
 answered on 08 Dec 2011
13 answers
2.3K+ views
Hi,
In my project I used RadGrid and I made the Filter Row appearance optional between Show and Hide, I put a "LinkButton" control in "CommanditemTemplate" tag in my Grid and on the "OnClick" event I call a code behind procedure including below statement to switch between the two state  :

RadGrid1.AllowFilteringByColumn = !RadGrid1.AllowFilteringByColumn;

My default state is Hide the Filter row but when I click my LinkButton the first click did not show the filter but the second click show it !! Why this happened !!! why its start to work with the second click only,
I try to solve it by JavaScript and the same problem appear to me,
Please help and advice me.
Thanks

Ban


 

 

Michael
Top achievements
Rank 1
 answered on 08 Dec 2011
1 answer
65 views
Hi All,,,,

I use javascript to add tab and assign a multipage view to it....

i need to change the width and height of this pageview from the javascript too to fit my page content properly....

i tried to assign an id to this pageview but still be undefined....

I don't know how to do that....

any help will be grate....

thanks

Best Regards
Asa'ad....


Kate
Telerik team
 answered on 08 Dec 2011
1 answer
76 views
Hi,
Since there is no documented "IsDecendantOf" function on the client side, I was wondering if anyone has figured out how to collapse all other branches of the tree when expanding a particular node in javascript.
For example, if I have a tree as follows
    A
        B
        C
            D
    E
        F
            G
I want that when they expand C, E collapses and if they expand F I would want A to collapse.
Basically, if they expand a branch, I want all OTHER branches to collapse.
If anyone has done this and is willing to share how they did it I would be much obliged.
Thanks ... Ed

Bozhidar
Telerik team
 answered on 08 Dec 2011
1 answer
121 views
Hi,
I am using asyncupload (version 2011.1.413.35)  in sitecore as in the demo.
http://demos.telerik.com/aspnet-ajax/upload/examples/async/ajaxprocessing/defaultcs.aspx?product=asyncupload

Though the control shows up in the designer, the select button is not visible on the page.

Here are the snippets of web.config.

<system.webServer>
   <modules>
     <remove name="ScriptModule" />
     <remove name="WebDAVModule" />
     <add type="Sitecore.Nexus.Web.HttpModule,Sitecore.Nexus" name="SitecoreHttpModule" />
     <add type="Sitecore.Resources.Media.UploadWatcher, Sitecore.Kernel" name="SitecoreUploadWatcher" />
     <add type="Sitecore.IO.XslWatcher, Sitecore.Kernel" name="SitecoreXslWatcher" />
     <add type="Sitecore.IO.LayoutWatcher, Sitecore.Kernel" name="SitecoreLayoutWatcher" />
     <add type="Sitecore.Configuration.ConfigWatcher, Sitecore.Kernel" name="SitecoreConfigWatcher" />
     <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule" />
     <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <remove name="Session" />
     <add name="Session" type="System.Web.SessionState.SessionStateModule" preCondition="" />
     <add type="Sitecore.Resources.Media.MediaRequestSessionModule, Sitecore.Kernel" name="MediaRequestSessionModule" />
     <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode,runtimeVersionv2.0" />
     <add name="CalendarScriptModule" type="Sitecore.Modules.CalendarScriptModule, Sitecore.Calendar" />
   </modules>
   <handlers>
     <remove name="WebServiceHandlerFactory-Integrated" />
     <remove name="ScriptHandlerFactory" />
     <remove name="ScriptHandlerFactoryAppServices" />
     <remove name="ScriptResource" />
     <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
     <add name="WebDAVRoot" path="*" verb="OPTIONS,PROPFIND" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness32" />
     <add name="WebDAVRoot64" path="*" verb="OPTIONS,PROPFIND" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v2.0.50727\aspnet_isapi.dll" resourceType="Unspecified" preCondition="classicMode,runtimeVersionv2.0,bitness64" />
     <add verb="*" path="sitecore_webDAV.ashx" type="Sitecore.Resources.Media.WebDAVMediaRequestHandler, Sitecore.Kernel" name="Sitecore.WebDAVMediaRequestHandler" />
     <add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" name="Sitecore.MediaRequestHandler" />
     <add verb="*" path="sitecore_xaml.ashx" type="Sitecore.Web.UI.XamlSharp.Xaml.XamlPageHandlerFactory, Sitecore.Kernel" name="Sitecore.XamlPageRequestHandler" />
     <add verb="*" path="sitecore_icon.ashx" type="Sitecore.Resources.IconRequestHandler, Sitecore.Kernel" name="Sitecore.IconRequestHandler" />
     <add verb="*" path="sitecore_feed.ashx" type="Sitecore.Shell.Feeds.FeedRequestHandler, Sitecore.Kernel" name="Sitecore.FeedRequestHandler" />
     <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" preCondition="integratedMode" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
     <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
     <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode,runtimeVersionv2.0" />
 
   </handlers>
   <validation validateIntegratedModeConfiguration="false" />
   <security>
     <requestFiltering>
       <requestLimits maxAllowedContentLength="524288000" />
     </requestFiltering>
   </security>
 </system.webServer>
 
 
<httpModules>
       <add type="Sitecore.Nexus.Web.HttpModule,Sitecore.Nexus" name="SitecoreHttpModule" />
       <add type="Sitecore.Resources.Media.UploadWatcher, Sitecore.Kernel" name="SitecoreUploadWatcher" />
       <add type="Sitecore.IO.XslWatcher, Sitecore.Kernel" name="SitecoreXslWatcher" />
       <add type="Sitecore.IO.LayoutWatcher, Sitecore.Kernel" name="SitecoreLayoutWatcher" />
       <add type="Sitecore.Configuration.ConfigWatcher, Sitecore.Kernel" name="SitecoreConfigWatcher" />
       <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
       <add name="RadCompression" type="Telerik.Web.UI.RadCompression" />
       <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
     </httpModules>
     <httpHandlers>
       <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*"  />
       <add verb="*" path="sitecore_webDAV.ashx" type="Sitecore.Resources.Media.WebDAVMediaRequestHandler, Sitecore.Kernel" />
       <add verb="*" path="sitecore_media.ashx" type="Sitecore.Resources.Media.MediaRequestHandler, Sitecore.Kernel" />
       <add verb="*" path="sitecore_xaml.ashx" type="Sitecore.Web.UI.XamlSharp.Xaml.XamlPageHandlerFactory, Sitecore.Kernel" />
       <add verb="*" path="sitecore_icon.ashx" type="Sitecore.Resources.IconRequestHandler, Sitecore.Kernel" />
       <add verb="*" path="sitecore_feed.ashx" type="Sitecore.Shell.Feeds.FeedRequestHandler, Sitecore.Kernel" />
       <remove verb="*" path="*.asmx" />
       <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
       <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
       <add verb="GET,HEAD" path="ScriptResource.axd" validate="false" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
       
       <add verb="*" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" />
       <add verb="*" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
     </httpHandlers>

Is the handler registration correct? In which cases does the control not show?

Thanks,
Satya.



Bozhidar
Telerik team
 answered on 08 Dec 2011
9 answers
166 views
If there are no tabs initially added server side (or declaratively) setting ScrollChildren = true does not work in IE (Firefox seems to work). A workaround is to resize the browser window, then the buttons will appear. Fortunately, I also found a workaround using javascript; by calling the _resize() method of the tabstrip whenever I add a tab client-side.

Are you aware of this issue and will it be fixed in a future release?

Regards,
Sigmund Lunde
Omega AS
Brian Azzi
Top achievements
Rank 2
 answered on 08 Dec 2011
0 answers
76 views
Hello,

Unable to Select Previous Selected Tab on mouseout in Radtabstrip

Scenerio - Selected Tab having multiple sub tabs
First I select one tab and sub tab and move the mouse to another tab then again came back to same tab. Now I am unable to see previous selected tab. Last selected sub tabs related page able to see but showing selected sub tabs is differnt so user is confusing.

 
Guru
Top achievements
Rank 1
 asked on 08 Dec 2011
3 answers
665 views
Hi,

Owing to the layout of my forms I want to have a asp:label tag styled using the same style as labels attached to a RadTextBox, combo box etc.  How would I reuse this?  Using the CSSClass="riLabel" on the username label doesn't seem to do anything so I assume that there is some level of specification behind it.  What would be nice is a RadLabel component...

<tr
    <td class="gridAdminLabel"><asp:Label CssClass="riLabel">Username:</asp:Label></td>
    <td class="gridAdminCell">
        <telerik:RadTextBox ID="uxUsername" Text="" runat="server" CssClass="formTextBox"></telerik:RadTextBox>
        <asp:RequiredFieldValidator ID="uxUsernameReq" runat="server"  ControlToValidate="uxUsername" ErrorMessage="RequiredFieldValidator"
            Text="<img src='/blank.gif' alt='Required field' class='errIconTextBox' />" Width="0" ValidationGroup="LoginValidationGroup"></asp:RequiredFieldValidator>
    </td>
</tr>


Regards,

Jon
Jon
Top achievements
Rank 1
 answered on 08 Dec 2011
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?