RadAjaxManager1.ResponseScripts.Add(
"btnBankingAlertClick()");
This opens a radwindow as below
function
btnBankingAlertClick() {
var oWnd = radopen("Dialogs/Alert.aspx?ftn=6", "GenericDialogWindow");
}
In ClientClose we pick up the argument and call
if(arg.res) AjaxPostback('EndCollection:');
In RadAjaxManager_AjaxRequest a method is called and as part of that the following lines are called
RadAjaxManager1.Alert("Collection information inserted into banking sucessfully");
RadAjaxManager1.ResponseScripts.Add("btnBankingAlertDoneClick()");
When debugging i can see ths code is hit but the alert and the function are not called.
Please help!!
<
telerik:RadAjaxManagerProxy
ID
=
"RadAjaxManagerProxy1"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnSearch"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlInner"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
<
telerik:AjaxSetting
AjaxControlID
=
"btnReset"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"pnlInner"
LoadingPanelID
=
"RadAjaxLoadingPanel1"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxLoadingPanel
ID
=
"RadAjaxLoadingPanel1"
runat
=
"server"
IsSticky
=
"true"
Style
=
"position:absolute; top:0; left:0; height:100%; width:100%;"
>
</
telerik:RadAjaxLoadingPanel
>
which works for texboxes, etc. but not for a radgrid. The grid is blank. But, I tried wrapping the grid with the radajaxloadingpanel and then the grid gets updated fine, but NOT the text boxes. I can't seem to make it all work together on one screen. And, the example for wrapping the entire screen in the ajaxloadingpanel is 2 1/2 years old and so it doesn't apply here.
Test.aspx
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Test.aspx.vb" Inherits="Project.Test" %>
<%@ Register src="../controls/cntControl.ascx" tagname="cntControl" tagprefix="uc1" %>
<!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 runat="server">
<title></title>
<script type="text/javascript">
function pageLoad() {
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
</telerik:RadScriptManager>
<uc1:cntAttibuteOptionTypes ID="cntControl1" runat="server" />
</div>
</form>
</body>
</html>
cntControl.ascx
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="cntControl.ascx.vb" Inherits="Project.cntControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<meta content="False" name="vs_snapToGrid" />
<P>
<telerik:RadGrid ID="dgOptions" runat="server" CellSpacing="0" GridLines="None"
ShowHeader="False" Skin="Web20" AutoGenerateColumns="false"
BorderStyle="None">
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default"></HeaderContextMenu>
<ItemStyle BorderStyle="None" Wrap="False" />
<MasterTableView nodetailrecordstext="" nomasterrecordstext="">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="displaytext" ItemStyle-Wrap="False">
<ItemStyle Width="185px" />
</telerik:GridBoundColumn>
<telerik:GridBoundColumn Visible="False" DataField="OptionTypeCd"></telerik:GridBoundColumn>
<telerik:GridTemplateColumn>
<ItemTemplate>
<asp:DropDownList id="ddlProdOption" AutoPostBack="true" OnSelectedIndexChanged="DropDown_SelectedIndexChanged"
runat="server"></asp:DropDownList>
</ItemTemplate>
</telerik:GridTemplateColumn>
<ItemTemplate>
<asp:TextBox ID="txtProdOption" Runat="server" Width="200px"></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn>
<ItemTemplate>
<asp:TextBox ID="txtImage" runat="server" Width="70"></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn>
<ItemTemplate>
<asp:TextBox ID="txtLrgImage" Runat="server"></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False"></FilterMenu>
</telerik:RadGrid>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="dgOptions">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="dgOptions" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<p>
Click here to see the history of the old thread.
Pasted below is the last message i received on the thread in the link. my issue is related to tab order which i see in Ajax controls as well. As suggested in the following message i already have a Link Button added to all special days. But tab order still skips those days. The last thing we do before adding the date to specialdays list in code we add a hyperlink on click of which it shows details of the event of the day. The special day is clickable but not reachable in tab order. we need tab order to work for 508 compliance. Please suggest if there is any other thing i can do to get it work.
Thanks,
Shalini
From: Telerik Admin
Date: 7/4/2011 4:41:02 AM
Hi Shalini,
In order to achieve the desired functionality you need to put a control which could be tabbed into your special day template. I am sending you a simple example which demonstrates that. Please check it out and let me know if it helps you.
Looking forward for your reply.
All the best,
Radoslav
the Telerik team