radspellCheck control not working with Obout Calendar control

1 posts, 0 answers
  1. Amit
    Amit avatar
    1 posts
    Member since:
    May 2012

    Posted 04 May 2012 Link to this post

    Hi,
    I used following code in my page.

    <%

     

    @ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

    <

     

     

    form id="form1" runat="server">

     

     

     

    <telerik:RadScriptManager ID="RadScriptManagerCP" runat="server">

     

     

     

    </telerik:RadScriptManager>

     

     

     

    <table cellpadding="0" cellspacing="0" border="0">

     

     

     

    <tr>

     

     

     

    <td>

     

    Est Prod Date

     

    &nbsp;</td>

     

     

     

    <td style="padding-right: 20px">

     

     

     

    <table border="0" cellpadding="0" cellspacing="0">

     

     

     

    <tr>

     

     

     

    <td>

     

     

     

    <asp:TextBox ID="prodDT" runat="server"></asp:TextBox></td>

     

     

     

    <td>

     

     

     

    <asp:Panel ID="panelProdDT" runat="server">

     

     

     

    </asp:Panel>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    </table>

     

     

     

    </td>

     

     

     

    </tr>

     

     

     

    <tr><td><asp:TextBox runat="server" ID="txt" TextMode="MultiLine"></asp:TextBox></td>

     

     

     

    <td><telerik:RadSpell ID="spell1" Runat="server" ControlsToCheck="txt" IsClientID="true" ButtonText="Spell Check"/></td></tr>

     

     

     

    </table>

     

     

     

     

    </form>

    Now the page is throwing error.
     

     

    Object reference not set to an instance of an object.

     

    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.NullReferenceException: Object reference not set to an instance of an object.

    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:

    [NullReferenceException: Object reference not set to an instance of an object.]
       OboutInc.Calendar2.ScriptManagerHelper.RegisterHiddenField(Control control, String name, String value) +145
       OboutInc.Calendar2.Calendar.OnPreRender(EventArgs e) +190
       System.Web.UI.Control.PreRenderRecursiveInternal() +103
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Control.PreRenderRecursiveInternal() +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496
    

    But when i remove RadSpell control's tag calender control is working fine.
    Please suggest.
Back to Top