This is a migrated thread and some comments may be shown as answers.

Page.IsCallback not being set on ajax error

2 Answers 38 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Vance Smith
Top achievements
Rank 1
Vance Smith asked on 25 Feb 2009, 04:07 PM
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 Answers, 1 is accepted

Sort by
0
Vance Smith
Top achievements
Rank 1
answered on 25 Feb 2009, 04:10 PM
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.
0
Iana Tsolova
Telerik team
answered on 26 Feb 2009, 01:16 PM
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.
Tags
Ajax
Asked by
Vance Smith
Top achievements
Rank 1
Answers by
Vance Smith
Top achievements
Rank 1
Iana Tsolova
Telerik team
Share this question
or