Telerik Forums
UI for ASP.NET AJAX Forum
8 answers
377 views

I am receiving the following javascript error when clicking on the RadSpell button and the control is placed on a page that is configured with forms authentication in the web.config:

 

 

Message: Sys.ArgumentException: Cannot deserialize. The data does not correspond to valid JSON.

Parameter name: data

Line: 4723

Char: 21

Code: 0

URI: http://localhost/ScriptResource.axd?d=ryM-v-atWyafyRba-J4cHMmodSS-DVBnOhmaxNYGoPR8dRTdvokZrasX9uQLzL3Wl7dgKSsFPn6IJHWdrzJk_1bOgV6KrLCExaizZfaNpIQ1&t=ffffffffe5f2f277

 

When the location element is removed from the web.config, the spell check works.

 

Below are the relevant web.config settings:

 

  <location path="MyPage.aspx">

    <system.web>

      <authorization>       

        <allow roles="MyRole" />

        <deny users="*" />

      </authorization>

    </system.web>

  </location>

 

<system.web>

    <httpHandlers>

      <remove path="*.asmx" verb="*" />

      <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

      <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

      <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" />

      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />

      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />

    </httpHandlers>

</system.web>

 

This is the page markup:

 

<asp:TextBox ID="txtMyTextBox" runat="server" TextMode="MultiLine" />

<telerik:RadSpell ID="rsRadSpell" runat="server" ControlToCheck="txtMyTextBox" SupportedLanguages="en-US,English" />

 

I found a similar thread from last year, and the recommended solution was to reboot and add the handlers with the smart tag.  This did not work for me, and the problem has occurred on multiple computers.  I would appreciate any help with this problem.

 

Thanks,

 

Will

Rumen
Telerik team
 answered on 06 Sep 2010
2 answers
110 views
Forgive me if this has already been covered in a thread.  After a search through all the "scale" and "size" results, i didn't see this question come up.

Is there a way to scale the entire output of the chart, such that the resultant img is larger or smaller?

Much of the chart will automatically scale if you simply change the width and height attributes in the server side code.  However, the text on the chart does not scale, and thus takes over the whole chart at small values of width and height.

A simple solution would be to throw in some client side code to resize the img tag - and that's probably what i'll end up doing if there's not an existing solution.  The only issue with this solution is that the image map for clicking on the chart / tooltips must also be scaled.  While i do have some existing code to perform that kind of action, i would rather avoid it if there is a way to achieve this same thing via server code for the chart.  Scaling image maps in javascript isn't usually a great idea, because the values can end up being off thanks to the image map only using integers.

A server side solution could include manually scaling all of the font sizes and marker dimensions - but that seems like a lot of work.

So - is there any kind of scale factor that can be applied?

Thanks.

-RP
Justavian
Top achievements
Rank 1
 answered on 06 Sep 2010
1 answer
122 views
I am using Rad Editor in MOSS2007 and I am unable to start Image manager feature of the RadEditor.
I get the message that:

Web.config registration missing! The Telerik dialogs require a HttpHandler registration in the web.config file.

Even tough i am entering all the registration entries (Manually) in C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config file it doesn't change anything and the error still shows up. I was even wondering if i was editing wrong file. Is there is anything else that might cause this error?

Error Details:

The file '/_layouts/um.fem/panel/Telerik.Web.UI.DialogHandler.aspx' does not exist.   at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously
Amoszcz
Top achievements
Rank 1
 answered on 06 Sep 2010
1 answer
101 views

I am having an issue where my raddocking zones are overlapping each other in Firefox 3. The page comes out all jumbled. In IE 8, the page loads correctly and the radzones are loaded with the correct alignment. Please see attached screenshots for an example.
Pero
Telerik team
 answered on 06 Sep 2010
1 answer
269 views
hi all,

i have a problem with captcha control when i use it on a modal popup. validation always fails. there is no problem with pages but when i use captcha control in a panel which opens by an ajaxmodalpopupextender, myCaptcha.IsValid always returns false. any idea would be appriciated

thanks.
Pero
Telerik team
 answered on 06 Sep 2010
1 answer
60 views
Hi,

How I can achieve SingleExpandPath functionality by adding own logic in code. So that instead of collapsing the node I will remove the child nodes from the node which is being collpased.

Basically I want to find out the node which can be collpased on expanding the new node.

Thanks
Yana
Telerik team
 answered on 06 Sep 2010
6 answers
180 views
Hi,

I have two questions. Help is greatly appreciated.

  1. Is it possible to have hyphenated text in the custom dictionary and to read those to suggestions list? We are using custom dictionary with data fields to suggest and the user wants to see them as one data field rather than parts of the field.  Ex: they want to see the suggestion "PRESENT-REPORTING-UNIT-CODE" for a mispelled "PRESENT-REPORTING-UNT-CDE".  Currently it suggests individual words.
  2. How to force the spell checker to show custom dictionary suggestions to be displayed on top in the suggestion box? Would need to have the custom suggestions at the top in the suggestions box, for example, if "Doctor" is misspelled and if the custom dictionary has suggestions like "DOCTR" , "DCTR". Custom suggestions needs to be on top.


Thanks,
Indira.

Rumen
Telerik team
 answered on 06 Sep 2010
1 answer
92 views
Hi

I hope this is a simple one!

I am trying to use tabstrip as a basic serverside navigation for a number of pages that are returned from my DB.
I retuun from my SQLDataSource "PageName" and "PageID" fields.

I have therefore bound the tabstrip to the DS, set "PageName" as DataTextField then set NavigationURLField to PageID.
I was then expecting to find a FormatString Property for the URL so I could add something like "mypage.aspx?pageid={0}" but obviously this property is not there.

How can I make my URL for each tab "mypage.aspx?pageid={PAGEID_from_database}"

Thanks

Johnathan
Princy
Top achievements
Rank 2
 answered on 06 Sep 2010
1 answer
106 views
Hello,

I don't manage to display the title attribute on links. Here is my html code:
<telerik:RadSiteMap runat="server" ID="RadSiteMap1" DataSourceID="SqlDataSource1"
    DataFieldID="SiteMapId" OnNodeDataBound="RadSiteMap1_NodeDataBound"  
    DataFieldParentID="ParentID" DataNavigateUrlField="NavigateUrl" DataTextField="SiteMapTitle" ShowNodeLines="false" >
    <DataBindings>
        <telerik:RadSiteMapNodeBinding NavigateUrlField="NavigateUrl" />
    </DataBindings>
    <LevelSettings>
        <telerik:SiteMapLevelSetting Level="0">
            <ListLayout RepeatColumns="2" AlignRows="true" />
        </telerik:SiteMapLevelSetting>
    </LevelSettings>
</telerik:RadSiteMap>
  
<asp:SqlDataSource runat="server" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:DefaultConnection %>"
    SelectCommand="SELECT SiteMapId, ParentID, SiteMapTitle, NavigateUrl, SortOrder, SiteMapTitle as Tooltip FROM [SiteMap]">
    <SelectParameters>
        <asp:Parameter DefaultValue="1" Name="SiteMapId" Type="Int32" />
    </SelectParameters>
</asp:SqlDataSource>

and my server code:
protected void RadSiteMap1_NodeDataBound(object sender, RadSiteMapNodeEventArgs e)
    {
        DataRowView nodeData = e.Node.DataItem as DataRowView;
        e.Node.Target = "_self";
  
        e.Node.ToolTip = nodeData["Tooltip"].ToString(); ;
    }

Thanks for your answers
Veronica
Telerik team
 answered on 06 Sep 2010
1 answer
63 views
I love the black form decorator skin but need to change the green background (hover, selects, etc) to another color. I would rather do this globally. Where would I change this in the .css or how can I override it?

Thanks!
Petio Petkov
Telerik team
 answered on 06 Sep 2010
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?