or
<telerik:RadGrid ID="drawingsGrid" runat="server" AllowPaging="True" GridLines="None" DataSourceID="drawingsSqlDataSource" AutoGenerateColumns="False" Skin="Telerik"> <MasterTableView DataKeyNames="drawingId,productId,pathToPDF" AllowAutomaticDeletes="True" DataSourceID="drawingsSqlDataSource"> <RowIndicatorColumn Visible="False"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="False" Resizable="False"> <HeaderStyle Width="20px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridBoundColumn DataField="Name" HeaderText="Name" SortExpression="Name" UniqueName="Name"> <HeaderStyle ForeColor="#336600" Height="23px" Width="200px" /> </telerik:GridBoundColumn> <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this drawing? " CommandName="Delete" Text="Delete" UniqueName="columnDelete"> <HeaderStyle ForeColor="White" Height="23px" Width="50px" /> <ItemStyle BorderWidth="1px" /> </telerik:GridButtonColumn> </Columns> <EditFormSettings> <PopUpSettings ScrollBars="None" Width="200px" Height="200px"/> </EditFormSettings> </MasterTableView> <HeaderStyle ForeColor="#336600" /> </telerik:RadGrid>Sub On_Record_Deleted(ByVal source As Object, ByVal e As SqlDataSourceStatusEventArgs) If (e.AffectedRows > 0) Then Response.Write(pdfFileToDelete) 'If Not String.IsNullOrEmpty(pdfFileToDelete) Then ' Try ' File.Delete(Server.MapPath(pdfFileToDelete)) ' Catch ex As Exception ' msgLabel.Text = ex.ToString ' End Try 'End If End If End Subfunction pageLoad() { var treeView = $find("<%=TreeView1.ClientID%>"); var node = treeView.get_nodes().getNode(0); var toggleElement = node.get_toggleElement(); if (toggleElement) toggleElement.style.display = "none"; }
Hi,
On my page, if the user checks a Checkbox, a RadGrid will programmatically be added to the page containing results from the database and a textbox for each row for them to input information.
They then click the button (outside the grid on the main page) to postback the information from the grid.
I tried to use .FindControl("myRadGrid") to get the grid on the click event but it is not there, due to the page life cycle. So I've tried to re-add the grid on Page_Init instead, but I can't do this because I would need to rebind the grid and would therefore lose the users inputs.
Can you help please?
<system.web> <httpRuntime maxRequestLength="102400" executionTimeout="3600" /> </system.web>
and theThe progress bar will appear to upload but upon completion I just see the<system.webserver> <security > <requestFiltering> <requestLimits maxAllowedContentLength="1024000000" /> </requestFiltering> </security> </system.webserver>
file select and submit button again instead of the controls upload control
being hidden which is what is supposed to happen.