function updateChanges() { ItemsService.AddNewItem(updateGrid); } function updateGrid(result) { var tableView = $find("<%= grdInvoiceItems.ClientID %>").get_masterTableView(); tableView.set_dataSource(result); tableView.rebind(); }[WebMethod(EnableSession = true)] public List<InvoiceItemsDetails> AddNewItem() { Invoice.InsertInvoiceItems(string.Empty, string.Empty, 0, 0, 0, 0, 0, 0, 1001); return Invoice.GetInvoiceItems(1001); }<asp:Panel ID="pnlMain" runat="server"> <uc1:ProcessGridViewEmb ID="embGrid" runat="server" /> <uc1t:ProcessTreeViewEmb ID="embTree" runat="server" /> </asp:Panel> <form id="form1" runat="server"> <asp:PlaceHolder ID="phValid" runat="server"><telerik:RadScriptManager ID="rsm" runat="server"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" /> </Scripts> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager><div class="pnlCourseMainContentDialog"> <asp:ContentPlaceHolder id="cphMain" runat="server"> </asp:ContentPlaceHolder> </div></asp:PlaceHolder><telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"></telerik:RadAjaxManagerProxy> <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> <script type="text/javascript"> window.$ = $telerik.$; function get_RadWindow() { var oWindow = null; if (window.radWindow) { oWindow = window.radWindow; } else if ((window.frameElement) && (window.frameElement.radWindow)) { oWindow = window.frameElement.radWindow; } return oWindow; } function JustClose() { get_RadWindow().Close(); } function fileUploaded(sender, eventArgs) { $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(); } function requestStart(sender, eventArgs) { } function responseEnd(sender, eventArgs) { var oWnd = get_RadWindow(); var oArg = new Object(); oArg.id = $("#<%= hfId.ClientID %>").val(); alert('Id is: ' + oArg.id + " "); /* //Close the RadWindow and send the argument to the parent page if (oWnd) oWnd.close(oArg); */ } function test() { $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest(); } </script> </telerik:RadCodeBlock> <asp:HiddenField ID="hfId" runat="server" /> <asp:TextBox ID="tbId" runat="server"></asp:TextBox> <input type="button" onclick="test()" /> } protected void manager_AjaxRequest(object sender, Telerik.Web.UI.AjaxRequestEventArgs e) { //handle the manager AjaxRequest event here hfId.Value = "100"; } protected void Page_Load(object sender, EventArgs e) { RadAjaxManager manager = RadAjaxManager.GetCurrent(Page); manager.ClientEvents.OnRequestStart = "requestStart"; manager.ClientEvents.OnResponseEnd = "responseEnd"; manager.AjaxRequest += new RadAjaxControl.AjaxRequestDelegate(manager_AjaxRequest); manager.AjaxSettings.AddAjaxSetting(manager, this.hfId);} <LayoutTemplate>
<div
class="RadListView RadListView_<%#Container.Skin %>"> <LayoutTemplate>
<div
class="RadListView RadListView_Default"> <LayoutTemplate>
<div
class="RadListView RadListView_Sunset">
It works exactly as I want (but obviously won't work if we change the site's Skin).
I have implemented a portal page that allows users to position docks in three zones or float additional docks around the interface. This allows users with different screen resolutions to make use of their full screen and not be bound to our web portals sizing when having multiple docks on the screen.
To facilitate this I have written a script to ensure that users cannot move floating docks outside of the current screen bounds. However, the problem I am running into is losing docks when the browser window is resized. Tapping into a resize event handler for the browser is easy enough but I can’t find a command to cycle through all the open (or just floating) RadDocks to get their current positions so I can reposition them based on the screen resize.
Is there a command similar to cycling through a DockState in C for Java on the client side???
TIA