<%
@ Page Language="C#" AutoEventWireup="true" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head id="Head1" runat="server">
<title>Test</title>
<style>
.header
{
background-color: green;
}
</style>
</
head>
<
body>
<form id="Form1" method="post" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<telerik:RadSplitter id="topBottomSplitter" runat="server" Orientation="Horizontal" BorderStyle="None" BorderWidth="0"
BorderSize="0" FullScreenMode="true">
<telerik:RadPane id="topPane" CssClass="header" runat="server" Height="50px">
Header
</telerik:RadPane>
<telerik:RadPane id="bottomPane" runat="server">
<telerik:RadSplitter id="bottomSplitter" runat="server" Width="100%">
<telerik:RadPane id="BottomLeft" runat="server">
Left
</telerik:RadPane>
<telerik:RadSplitBar id="SplitterBarLeft" runat="server" collapsemode="Forward" />
<telerik:RadPane id="BottomCenter" runat="server" Width="50%">
Middle
</telerik:RadPane>
<telerik:RadSplitBar id="SplitterBarRight" runat="server" collapsemode="Backward" />
<telerik:RadPane id="BottomRight" runat="server">
Right
</telerik:RadPane>
</telerik:RadSplitter>
</telerik:RadPane>
</telerik:RadSplitter>
</form>
</
body>
</
html>
| <head runat="server"> |
| <title>Untitled Page</title> |
| <script type="text/javascript"> |
| function closeWindow() |
| { |
| var oWindow = GetRadWindow(); |
| oWindow.close(); |
| } |
| function GetRadWindow() |
| { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| </script> |
| </head> |
| <body onload="setTimeout(closeWindow(), 3000);"> |
| <form id="form1" runat="server"> |
| <div> |
| Close this window after downloading your file if it does not close automatically</div> |
| </form> |
I have a page with Captcha and with RadAjaxManager that updates some content (comboboxes) on the page.
When I open the page, select comboboxes (that make partial postback) and then enter correct code (I'm 100% sure) then I get the wrong code message. When I reenter code, it works.
It happens every time I open that page. Maybe when combobox get selected and ajax request is done, the captcha image is no longer up to date and that's why I got the error. Is there any solution to that?
| <telerik:RadGrid |
| ID="RadGrid1" |
| runat="server" |
| DataSourceID="ObjectDataSource1" |
| AutoGenerateColumns="False" |
| GridLines="None"> |
| <MasterTableView |
| DataSourceID="ObjectDataSource1" |
| DataKeyNames="Id"> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Id" HeaderText="#" UniqueName="ID"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ClientName" HeaderText="Client" UniqueName="ClientName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="ContactPerson" HeaderText="Contact" UniqueName="ContactPerson"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <DetailTables> |
| <telerik:GridTableView |
| DataSourceID="ObjectDataSource2" |
| DataKeyNames="ClientId"> |
| <ParentTableRelation> |
| <telerik:GridRelationFields DetailKeyField="ClientId" MasterKeyField="Id" /> |
| </ParentTableRelation> |
| <Columns> |
| <telerik:GridBoundColumn DataField="Id" HeaderText="Id" UniqueName="Id"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Text" HeaderText="Text" UniqueName="Text"></telerik:GridBoundColumn> |
| </Columns> |
| </telerik:GridTableView> |
| </DetailTables> |
| </MasterTableView> |
| </telerik:RadGrid> |

I have created an inherited version of the Telerik RadGrid to process programmatic column configuration and build the grid from this.
The grid itself has a column which is templated and contains a link button with the CommandName set to "Select", this is used to fire the SelectedIndexChange event, on which the application redirects the user to another page in the application. This inherited Grid seems to be working fine in all scenarios apart from 1 I have identified.
If the user clicks on a link in the grid they are redirected to a new page, however if they click the Browser back button and click a different link (to go to a different page) the SelectedIndexChanged event is not fired, neither is the LinkButtons click event, the application just posts back to the currently displayed page.
The inherited control is performing all the processing of the column building in an overridden OnInit event if that has any impact on the issue im not sure.
Any help would be most appreciated.
Regards,
Stuart
