Page.IsCallback not being set on ajax error

3 posts, 0 answers
  1. Vance Smith
    Vance Smith avatar
    36 posts
    Member since:
    Jun 2012

    Posted 25 Feb 2009 Link to this post

    Hello,

    I have an Ajaxed RadGrid and while configuring my applications error handling logic I purposely set up the situation for an error to occur when a grid item is edited.

    <EditItemTemplate 

    <telerik:RadMaskedTextBox

     

    id="IN_RMTB"  

     

     

     

    runat="server"  

     

    Mask="##-#######"  

     

    Skin="Office2007"  

     

    Width="65px"  

     

    EmptyMessage="00-0000000" />

     

    ##-####### (make sure you pad the number with zeros - ex: 08-0000123)

     

    <asp:RequiredFieldValidator

     

     

     

    id="IN_Suffix_RFV"

     

     

     

    runat="server"

     

     

     

    ErrorMessage=" Required"

     

     

     

    ControlToValidate="IN_RMTB2"

     

     

     

    Display="Dynamic" />

     

     

     

    </EditItemTemplate>

     

     

     

     

     

    Notice that the ControlToValidate property says "IN_RMTB2" when it should say "IN_RMTB".

    Anyways, my problem is that when this error occurs (by clicking the edit link for the row) the Page.IsCallback property is not being set. This is thwarting some of my custom error handling plans. Do you have any suggestions or explanations why Page.IsCallback is not being set to true in this situation?
  2. Vance Smith
    Vance Smith avatar
    36 posts
    Member since:
    Jun 2012

    Posted 25 Feb 2009 Link to this post

    On an unrelated note: the post above had the sample code formatted just fine but when I posted it place all the extra line breaks. Also, when I edited the post and removed the line breaks it placed them back in.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 26 Feb 2009 Link to this post

    Hello Vance,

    Please review this help topic for more information about error handling with ajax. Check out and let me know if any questions arise.

    Regarding the last question: Try adding code to your posts using the "Format Code Block"  button on top of the text area.

    All the best,
    Iana
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top