or
| <script type="text/javascript" language="javascript"> |
| function Export() { |
| var masterTable = $find('RadGrid1').get_masterTableView(); |
| if (masterTable != null) |
| masterTable.exportToExcel(); |
| } |
| </script> |
| <telerik:RadGrid ID="RadGrid1" ShowStatusBar="True" Height="360px" |
| runat="server" AutoGenerateColumns="False" AllowSorting="false" |
| GridLines="None" ShowFooter="false" EnableDrag="false" |
| OnNeedDataSource="RadGrid1_NeedDataSource" ExportSettings-FileName="NostroTransfer" |
| OnItemDataBound="RadGrid1_ItemDataBound"> |

<telerik:RadGrid ID="dgEscrow" runat="server" GridLines="None" EnableEmbeddedSkins="false" AutoGenerateColumns="false" ShowFooter="true" CssClass="esGridTable"> <HeaderStyle Font-Bold="true" HorizontalAlign="Center" /> <ClientSettings> <ClientEvents OnGridCreated="setScrollerDimensionsEscrow" /> <Scrolling AllowScroll="true" SaveScrollPosition="true" /> </ClientSettings></telerik:RadGrid>Public Sub BindDG(Optional ByVal isPrintPage As Boolean = False) Dim edt As New EscrowDataTable(TractGID) Dim dt As DataTable = edt.GetDataTable Dim dv As DataView = dt.DefaultView With dgEscrow .CellSpacing = 0 .ItemStyle.CssClass = "esGridRow" .AlternatingItemStyle.CssClass = "esGridRow" End With dgEscrow.DataSource = dv dgEscrow.DataBind() End Sub