Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
82 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
137 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
175 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
85 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
715 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
9 answers
149 views
Hi there,

I have a few buttons and a RadAjaxManager on the page. Buttons are properly with css style if no RadAjaxManager on the page. As soon as I put a RadAjaxManager on the page and control these buttons, the enabled buttons style will gone.

Please see the attached screen shot for the issue. The top line buttons in the screen shot are all disabled buttons, which are with style properly. The bottom line buttons in the screen shot shows that the "Add New" button Enabled, which has lost its style, and moved to the right most side.

Can anyone please help to give some ideas on how to fix this? Thanks a lot.
   
Meng
Top achievements
Rank 1
 answered on 08 Dec 2011
1 answer
93 views
Hi,

  I had a problem with radchart. That is how to remove the radchart's background panel or resize it. I have attached a screen shot of the chart where a getting some extra space which should be removed. Please help me in this regards





Regards
Kannan.S
Giuseppe
Telerik team
 answered on 08 Dec 2011
8 answers
221 views
Hi Allow,

I am using an entity datasource on a grid and allowing auto inserts, updates and deletes. Everything seems to be working fine accept while trying to delete i am getting the following:

Error while setting property 'freightRate': '$222.00 is not a valid value for Decimal.'.

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.Web.UI.WebControls.EntityDataSourceValidationException: Error while setting property 'freightRate': '$222.00 is not a valid value for Decimal.'.

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:

[EntityDataSourceValidationException: Error while setting property 'freightRate': '$222.00 is not a valid value for Decimal.'.]
   System.Web.UI.WebControls.EntityDataSourceView.ConvertProperties(IDictionary values, PropertyDescriptorCollection propertyDescriptors, ParameterCollection referenceParameters) +71835
   System.Web.UI.WebControls.EntityDataSourceView.ExecuteDelete(IDictionary keys, IDictionary oldValues) +386
   System.Web.UI.DataSourceView.Delete(IDictionary keys, IDictionary oldValues, DataSourceViewOperationCallback callback) +89
   Telerik.Web.UI.GridTableView.PerformDelete(GridEditableItem editedItem, Boolean suppressRebind) +265
   Telerik.Web.UI.GridCommandEventArgs.ExecuteCommand(Object source) +4320
   Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +191
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +165
   System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37
   System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +118
   System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +135
   System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565


I have no code behind (nice) and the column markup looks like:

<

 

telerik:GridNumericColumn UniqueName="freightRate" SortExpression="freightRate"

 

 

HeaderText="Freight Rate" DataField="freightRate" ColumnEditorID="GridNumericColumnEditor1"

 

 

FooterText="Freight Rate" NumericType="Currency" DataType="System.Decimal">

 

 

</telerik:GridNumericColumn>

 


Is it because the NumericType? Should i use a Dataformatstring instead? thanks.

rw

Radoslav
Telerik team
 answered on 08 Dec 2011
14 answers
193 views
Hi All,

i used the idea of using the BinaryImageColumn for loading, inserting and editing images stored in a database with RadGrid and ajax disabled only when click the insert or edit button of the edit form like the demo on the floowing link
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/raduploadinajaxifiedgrid/defaultcs.aspx?product=grid

but i noticed in this demo, when the user click more than one on the insert button, the file will be saved more than one time!!!!

how can i solve this problem????
any idea to work around????

Thanks in Advanced...
Asa'ad...

Milena
Telerik team
 answered on 08 Dec 2011
1 answer
196 views
Hi, I have an app where I am using a RadNumericTextBox, I am required to allow users to enter positive and negative numbers and the sign must always be shown.  I have found no way to have the radnumerictext box to allow entering a positive number as +1.75, negative works fine.  This is for an optometry app where numbers are always entered with leading sign.

Anyone know how to make radnumerictextbox allow leading + sign.

Thanks
John
Kevin
Top achievements
Rank 2
 answered on 08 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?