We use many of your RadGrids in our application. There are times when we want to allow the user the opportunity to do an upload of substantial amounts of data that will ultimately be contained in one of these RadGrids.
To do this we use a RadWindow containing a fileUpload object. The user browses to the file containing the desired data, issues the upload command and our C# code then parses through the information and adds it to our data base.
What we would like to do is this – after the data base has been updated - directly after the RadWindow closes - we would like to issue, thru JavaScript if possible, a command(s) that would refresh the contents of our RadGrid. This would avoid a post back that we need to have now to refresh the main window.
Our RadWindow JavaScript logic contains the following line of code:
oWnd.add_close(OnClientClose);
The OnClientClose method would be the ideal place any new code to refresh our RadGrid. We will be able to obtain the revised data by way of a Web Service.
Is this sort of thing possible?
Thanks
| <ew:CollapsablePanel ID="CollapsablePanel1" runat="server" AllowSliding="true" > |
| </ew:CollapsablePanel> |
| <ew:CollapsablePanel ID="CollapsablePanel2" runat="server" AllowSliding="true" > |
| </ew:CollapsablePanel> |
| <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" |
| SelectedIndex="0" Width="100%"> |
| <Tabs> |
| <telerik:RadTab runat="server" PageViewID="pv1" Text="pv1" Selected="True" > |
| </telerik:RadTab> |
| <telerik:RadTab runat="server" PageViewID="pv2" Text="pv2" > |
| </telerik:RadTab> |
| </Tabs> |
| </telerik:RadTabStrip> |
| <telerik:RadMultiPage ID="RadMultiPage1" runat="server" BorderStyle="None" BorderWidth="1px" |
| CssClass="pageView" SelectedIndex="0"> |
| <telerik:RadPageView ID="pv1" runat="server" > |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="pv2" runat="server" > |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
#######################################################
| <telerik:RadScriptManager ID="ScriptManager1" runat="server"> |
| <Scripts> |
| <asp:ScriptReference Path="/midas.js" /> |
| <asp:ScriptReference Path="/midas2.js" /> |
| </Scripts> |
| </telerik:RadScriptManager> |
| <%@ Register TagPrefix="radw" Namespace="Telerik.WebControls" Assembly="RadWindow" %> |
| <%@ Page AutoEventWireup="false" Codebehind="Index.aspx.vb" Inherits="OPAC_LOCAL.Index" errorPage="exception_error.aspx"%> |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <HTML> |
| <HEAD id="head"> |
| <title runat="server" id="titletag"></title> |
| <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> |
| <meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE"> |
| <meta content="JavaScript" name="vs_defaultClientScript"> |
| <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> |
| <meta name="keywords" content=""> |
| <meta name="description" content=""> |
| </HEAD> |
| <body class="FondPage"> |
| <script type="text/javascript"> |
| var oWnd; |
| function showWindow() |
| { |
| var oManager = GetRadWindowManager(); |
| var oWnd = oManager.GetWindowByName("Splash"); |
| oWnd.SetUrl("./splash.htm"); |
| oWnd.Show(); |
| } |
| function closeWindow() |
| { |
| if(oWnd) { |
| oWnd.close(); |
| } |
| } |
| </script> |
| <form id="Form1" method="post" runat="server"> |
| <radw:RadWindowManager VisibleOnPageLoad="false" id="Singleton" Behavior="None" Skin="Blue" runat="server"> |
| <windows> |
| <radw:RadWindow id="Splash" Runat="server"></radw:RadWindow> |
| </windows> |
| </radw:RadWindowManager> |
| <div id="Holder"><asp:imagebutton id="btnImgConnexion" Runat="server" Visible="true"></asp:imagebutton></div> |
| <asp:PlaceHolder id="Contenu" Runat="server"></asp:PlaceHolder> |
| </form> |
| </body> |
| </HTML> |
| btnImgConnexion.Attributes.Add("onclick", "showWindow();") |
<
telerik:GridCheckBoxColumn DataField="IsDisplayed" DataType="System.Boolean" HeaderText="Display" UniqueName="IsDisplayed"></telerik:GridCheckBoxColumn>
The checkbox is data binded to the database, currently I have a editing button that allow me to allow the checkbox's value, thus the database's value. However, for fast changing, is it possible, that the checkbox is not grey out on the grid, and can be changed right on the grid instead of the editing template?
Thanks!