or
<telerik:RadWindowManager ID="rwmSalesCallList" runat="server" Style="z-index: 3"><Windows> <telerik:RadWindow ID="rwSalesCallList_PDFExport" runat="server" OnClientClose="rwSalesCallList_PDFExport_OnClientClose" Modal="true" AutoSize="true" Behaviors="Close" ShowOnTopWhenMaximized="false"><ContentTemplate><asp:Panel ID="pSalesCallList_PDFExport" runat="server"> <asp:ValidationSummary ID="vsReportSelection_Reporting" runat="server" HeaderText="ERROR! The report cannot be generated due to the following reasons: " ValidationGroup="vgReportSelection" CssClass="LabelWarning" ShowMessageBox="true" ShowSummary="false" /> <table border="0" cellpadding="5" cellspacing="0" class="ContentTableBordered TableCentered" style="border: solid 1px black" width="450"> <tr> <td class="ContentTableCellTitleDark LabelBold LabelMedium " colspan="2" style="background-color: #808080;color: #FFFFFF;font-size: 10pt;font-weight: bold;border-left: #CCCCCC outset 1px;border-right: #CCCCCC outset 2px;border-top: #CCCCCC outset 1px;border-bottom: #CCCCCC outset 2px;vertical-align:top;"> <asp:Label ID="lblErrorTitle" runat="server" Text="Select Filter Criteria Below"></asp:Label> </td> </tr> <tr> <td class="tableSectionLabelCell" nowrap style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;"> <asp:Label ID="lblReportSelection_StartDateLabel" runat="server" Text="Start Date:" ViewStateMode="Disabled" ></asp:Label> <asp:RequiredFieldValidator ID="rfvReportSelection_StartDate" runat="server" ErrorMessage="Start Date is required." ToolTip="Start Date is required." Text="*" ControlToValidate="rdpReportSelection_StartDatePicker" InitialValue="" ValidationGroup="vgReportSelection"></asp:RequiredFieldValidator> <asp:comparevalidator id="cvReportSelection_StartDate" runat="server" Operator="DataTypeCheck" ControlToValidate="rdpReportSelection_StartDatePicker" Type="Date" ErrorMessage="The value for Start Date is invalid." ToolTip="The value for Start Date is invalid." Text="*" EnableClientScript="true" ValidationGroup="vgReportSelection"></asp:comparevalidator> </td> <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break : break-all;"> <telerik:RadDatePicker ID="rdpReportSelection_StartDatePicker" runat="server" Style="z-index: 4"> <DateInput runat="server" DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy"></DateInput> </telerik:RadDatePicker> </td> </tr> <tr> <td class="tableSectionLabelCell" nowrap style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;"> <asp:Label ID="lblReportSelection_EndDateLabel" runat="server" Text="End Date:" ViewStateMode="Disabled" ></asp:Label> <asp:RequiredFieldValidator ID="rfvReportSelection_EndDate" runat="server" ErrorMessage="End Date is required." ToolTip="End Date is required." Text="*" ControlToValidate="rdpReportSelection_EndDatePicker" InitialValue="" ValidationGroup="vgReportSelection"></asp:RequiredFieldValidator> <asp:comparevalidator id="cvReportSelection_EndDate" runat="server" Operator="DataTypeCheck" ControlToValidate="rdpReportSelection_EndDatePicker" Type="Date" ErrorMessage="The value for End Date is invalid." ToolTip="The value for End Date is invalid." Text="*" EnableClientScript="true" ValidationGroup="vgReportSelection"></asp:comparevalidator> <asp:comparevalidator id="cvReportSelection_EndDateGreater" runat="server" Operator="GreaterThanEqual" ControlToCompare="rdpReportSelection_StartDatePicker" ControlToValidate="rdpReportSelection_EndDatePicker" Type="Date" ErrorMessage="The value for End Date must be equal or greater than the Start Date." ToolTip="The value for End Date must be equal or greater than the Start Date." Text="*" EnableClientScript="true" ValidationGroup="vgReportSelection"></asp:comparevalidator> </td> <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break : break-all;"> <telerik:RadDatePicker ID="rdpReportSelection_EndDatePicker" runat="server" Style="z-index: 4"> <DateInput runat="server" DisplayDateFormat="MM/dd/yyyy" DateFormat="MM/dd/yyyy"></DateInput> </telerik:RadDatePicker> </td> </tr> <tr> <td class="tableSectionLabelCell" style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;"> <asp:Label ID="lblReportSelection_RegionLabel" runat="server" Text="Sales District/Region:" ViewStateMode="Disabled" ></asp:Label> </td> <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break : break-all;"> <telerik:RadComboBox ID="rcbReportSelection_Region" runat="server" DataValueField="Id" DataTextField="Description" AppendDataBoundItems="true" MarkFirstMatch="True" Style="z-index: 5000"> <Items> <telerik:RadComboBoxItem runat="server" Text="-- ALL --" Value="-1" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="tableSectionLabelCell" style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;"> <asp:Label ID="lblReportSelection_IndividualLabel" runat="server" Text="Individual:" ViewStateMode="Disabled" ></asp:Label> </td> <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break : break-all;"> <telerik:RadComboBox ID="rcbReportSelection_Individual" runat="server" DataValueField="Id" DataTextField="Description" AppendDataBoundItems="true" DropDownWidth="250px" MarkFirstMatch="True" Style="z-index: 5000"> <Items> <telerik:RadComboBoxItem runat="server" Text="-- ALL --" Value="-1" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="tableSectionLabelCell" style="background-color:#d3d3d3;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;"> <asp:Label ID="lblReportSelection_TradingPartnerLabel" runat="server" Text="Trading Partner:" ViewStateMode="Disabled" ></asp:Label> </td> <td class="tableSectionDataCell" style="background-color:#ffffff;border-left: #cccccc outset 2px;border-right: #cccccc outset 2px;border-top: #cccccc outset 2px;word-break : break-all;"> <telerik:RadComboBox ID="rcbReportSelection_TradingPartner" runat="server" DataValueField="TradingPartnerNo" DataTextField="Name" AppendDataBoundItems="true" DropDownWidth="275px" MarkFirstMatch="True" Style="z-index: 5000"> <Items> <telerik:RadComboBoxItem runat="server" Text="-- ALL --" Value="" /> </Items> </telerik:RadComboBox> </td> </tr> <tr> <td class="ContentTableCellFooterDark LabelBold LabelMedium TableCellMiddleCenter" colspan="2" style="background-color: #808080;color: #FFFFFF;font-size: 10pt;font-weight: bold;border-left: #CCCCCC outset 1px;border-right: #CCCCCC outset 2px;border-top: #CCCCCC outset 2px;border-bottom: #CCCCCC outset 1px;vertical-align:top;"> <telerik:RadButton ID="btnReportSelection_GeneratePDF" runat="server" Text="Generate PDF" CssClass="Button" OnClick="btnReportSelection_GeneratePDF_Click" ValidationGroup="vgReportSelection" OnClientClicking="SubmitAllPDFExport" Icon-PrimaryIconUrl="~/images/icons/acrobat.gif" Icon-PrimaryIconHeight="16px" Icon-PrimaryIconWidth="16px" /> <telerik:RadButton ID="btnReportSelection_CancelPDF" runat="server" Text="Cancel" CssClass="Button" OnClientClicking="rwSalesCallList_PDFExport_Close" Icon-PrimaryIconCssClass="rbCancel"/> </td> </tr> </table></asp:Panel><asp:Panel ID="pSalesCallList_PDFExportWait" runat="server" style="display:none;"><br /><br /><br /><center><asp:Image ID="imgSalesCallList_MainLoadingPanelDropDown" runat="server" ImageUrl="~/images/loading3.gif" ImageAlign="Bottom" /></center></asp:Panel> </ContentTemplate></telerik:RadWindow></Windows></telerik:RadWindowManager><img:ImageFilterColumn DataMemberBinding="{BindingDocumentStatus}" Header="{BindingHeaderStatus}" ImageStretch="None" ShowFieldFilters="False" /><br>PublicClass ImageFilterColumn Inherits GridViewImageColumn
<br><br>e<br><br>ProtectedOverridesReadOnlyProperty FilteringDisplayFunc() As Func(OfObject, Object)
GetReturnAddressOf ImageFilterColumn.ConvertUriStringToImage
EndGetEndProperty
PublicSharedFunction ConvertUriStringToImage(uriString AsObject) AsObject
Dim image As Image = New Image()
image.Source = New BitmapImage(New Uri(uriString.ToString()))
Return image
EndFunction
EndClass<br><%@ Page Language="VB" AutoEventWireup="false" CodeFile="buttonnoworkie.aspx.vb" Inherits="buttonnoworkie" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="false"> </telerik:RadScriptManager> <div> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> </telerik:RadAjaxManager> <div> <telerik:RadButton ID="RadButton1" runat="server" Text="RadButton" ResolvedRenderMode="Classic"> </telerik:RadButton> </div> </div> </form></body></html>Partial Class buttonnoworkie Inherits System.Web.UI.Page Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load RadButton1.Focus() End SubEnd Class

RadGrid radGridNew = new RadGrid(); radGridNew.ID = "rgAcc" + Guid.NewGuid().ToString().Replace("-", ""); radGridNew.ClientSettings.ClientEvents.OnGridCreated = "GridCreated"; radGridNew.ClientSettings.ClientEvents.OnCommand = "RadGrid1_Command"; radGridNew.AllowPaging = true; radGridNew.PageSize = 10; GridBoundColumn colLogDate = new GridBoundColumn(); colLogDate.DataField = "LogDate"; colLogDate.UniqueName = "LogDate"; colLogDate.DataType = typeof(DateTime); colLogDate.HeaderText = "Log date"; GridBoundColumn colIPAddress = new GridBoundColumn(); colIPAddress.DataField = "IPAddress"; colIPAddress.UniqueName = "IPAddress"; colIPAddress.DataType = typeof(string); colIPAddress.HeaderText = "IP Address "; GridBoundColumn colResult = new GridBoundColumn(); colResult.DataField = "Result"; colResult.UniqueName = "Result"; colResult.DataType = typeof(string); colResult.HeaderText = "Result"; radGridNew.Columns.Add(colLogDate); radGridNew.Columns.Add(colIPAddress); radGridNew.Columns.Add(colResult); radGridNew.AllowSorting = true; radGridNew.MasterTableView.AllowMultiColumnSorting = true; radGridNew.ShowFooter = true; radGridNew.AutoGenerateColumns = false; radGridNew.MasterTableView.PagerStyle.AlwaysVisible = true; radAcc.Controls.Add(radGridNew);function GridCreated(sender, eventArgs) { var Id = sender.ClientID; $.ajax({ type: "GET", url: "LoadWidgetsAsync.aspx", contentType: "application/json; charset=utf-8", data: { Wid: 1, widgetName: "AccountActivityWidget", ID: Id }, async: true, success: function (result) { if (result.length > 0) { var grid = $find(result[0]); var tableView = grid.get_masterTableView(); tableView.set_dataSource(result[1]); tableView.dataBind(); } }, error: function () { alert('Error on binding the data'); } }); }