<
script type="text/javascript">
//<![CDATA[
var
theForm = document.forms['aspnetForm'];
if
(!theForm) {
theForm = document.aspnetForm;
}
function
doPostBack2() {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value =
'ctl00$ContentPlaceHolder1$Test';
theForm.__EVENTARGUMENT.value =
'';
theForm.submit();
}
}
//]]>
</
script>
And here's my code on the Content Page to open the Radwindow:
<telerik:RadWindow
id="RadWindow1"
runat="server"
showcontentduringload="False"
width="900px"
height="520px"
onclientclose="doPostBack2"
title="My Professional Profile - Please be patient while loading..." Modal="true" VisibleStatusbar="false" Skin="Black" style="z-index: 1; display:none;" InitialBehavior="None" Left="" NavigateUrl="" Top="">
</telerik:RadWindow>
Protected Sub Test_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Test.Click
Call GetPPStatus()
End Sub
So as I said before, everything works fine when I physicallly click the "Test" linkbutton (it posts back and shows the Ajax Update Indicator). And when I close the RadWindow it actually posts back and does everything that I want it to do in the GetPPStatus() sub except it's not showing the ajax indicator.
Any help would be appreciated!

| <telerik:GridTemplateColumn DataField="FirstName" |
| HeaderText="FirstName" SortExpression="FirstName" |
| UniqueName="FirstName"> |
| <EditItemTemplate> |
| <asp:TextBox ID="FirstNameTextBox" runat="server" |
| Text='<%# Bind("FirstName") %>' MaxLength="25"> |
| </asp:TextBox> |
| <asp:RequiredFieldValidator ID="RequiredFieldValidator1" |
| runat="server" |
| ControlToValidate="FirstNameTextBox" |
| Display="Dynamic" |
| ErrorMessage="First name required" |
| SetFocusOnError="True"></asp:RequiredFieldValidator> |
| <asp:RegularExpressionValidator ID="RegularExpressionValidator1" |
| runat="server" Display="Dynamic" |
| ErrorMessage="Illegal characters" |
| SetFocusOnError="True" |
| ValidationExpression="^[a-zA-Z0-9 \-]+$" ControlToValidate="FirstNameTextBox"></asp:RegularExpressionValidator> |
| </EditItemTemplate> |
| Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) |
| If TypeOf e.Item Is GridDataItem Then |
| Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem) |
| Dim txtbx As TextBox = DirectCast(dataItem.FindControl("FirstNameTextBox"), TextBox) |
| Dim strtxt As String = txtbx.Text |
| If strtxt.Length > 25 Then |
| txtbx.Text = strtxt.Remove(25) |
| End If |
| End If |
| If TypeOf e.Item Is GridEditableItem AndAlso e.Item.IsInEditMode Then |
| Dim editItem As GridEditableItem = DirectCast(e.Item, GridEditableItem) |
| Dim txtbx1 As TextBox = DirectCast(editItem.FindControl("FirstNameTextBox"), TextBox) |
| Dim strtxt1 As String = txtbx1.Text |
| If strtxt1.Length > 25 Then |
| txtbx1.Text = strtxt1.Remove(25) |
| End If |
| End If |
| End Sub |
