or
ExpandMode="FullExpandedItem"
<
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
Sub
function
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?