Thank you for your assistance
Tracy
Private Sub rgvDataExceptions_DetailTableDataBind(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridDetailTableDataBindEventArgs) Handles rgvDataExceptions.DetailTableDataBind Dim SelectedRow As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem) Dim intException As Int32 = SelectedRow.GetDataKeyValue("ExceptionID") Dim detailTable As GridTableView = DirectCast(SelectedRow.ChildItem.NestedTableViews(0), GridTableView) SQLDS_DataExceptionsMessage.SelectParameters.Clear() SQLDS_DataExceptionsMessage.SelectParameters.Add("intExceptionId", intException) e.DetailTableView.DataSource = SQLDS_DataExceptionsMessage 'Get value from master table row Dim strExceptionMessage As String = SelectedRow("ExceptionMessage").Text
I would then like to set the bltExceptionMessage,which is a bulled list that is in a template column of the details view
'Dim bltMessages As BulletedList = DirectCast(SelectedRow.FindControl("bltExceptionMessage"), BulletedList) 'Dim aryMessages As New ArrayList 'aryMessages.AddRange(Split(strExceptionMessage, "~")) 'bltMessages.DataSource = aryMessages 'bltMessages.DataBind() End Sub
function openPromoteWindows(RadWindowManagerId) { var oManager = $find(RadWindowManagerId); var oWindows = oManager.GetWindows(); for (i = 0; i < oWindows.length; i++) { var oWindow = oWindows[i]; oWindow.show(); oWindow.Minimize(); oWindow.get_popupElement().style.zIndex = 10000 + i; }}function rwmPromote_Close(sender, eventargs) { var rwm = $find(window['rwmPromoteId']); var oWindows = rwm.GetWindows(); var i; for (i = 0; i < oWindows.length; i++) { var oWindow = oWindows[i]; if (oWindow == sender) break; } if (i < oWindows.length) { rwm._windows.splice(i, 1); }}function rwmPromote_Close(sender, eventargs) { var rwm = $find(window['rwmPromoteId']); var hf = $get(window['hfWindowIdsId']); hf.value = ''; var oWindows = rwm.GetWindows(); var i; for (i = 0; i < oWindows.length; i++) { var oWindow = oWindows[i]; if (oWindow == sender) break; } if (i < oWindows.length) { rwm._windows.splice(i, 1); oWindows = rwm.GetWindows(); for (i = 0; i < oWindows.length; i++) { hf.value += oWindows[i].id + ','; } }}// At the conclusion of every postback hfWindowIds.Value = "";foreach (RadWindow rw in rwmPromote.Windows){ hfWindowIds.Value += rw.ClientID + ',';}// And then on the ValueChanged event for the HiddenField protected void hfWindowIds_ValueChanged(object sender, EventArgs e) { char[] sep = {','}; string[] WindowIds = ((HiddenField)sender).Value.Split(sep, StringSplitOptions.RemoveEmptyEntries); List<RadWindow> rwList = new List<RadWindow>(); foreach (RadWindow rw in rwmPromote.Windows) { if (!WindowIds.Contains(rw.ClientID)) rwList.Add(rw); // No longer open client side } foreach (RadWindow rw in rwList) rwmPromote.Windows.Remove(rw); // Remove each closed window } } <jha:RadGrid ID="grdVendors" runat="server" DataSourceID="odsVendors" OnItemDataBound="grdVendors_ItemDataBound" OnItemCommand="grdVendors_ItemCommand" OnExportCellFormatting="grdVendors_ExportCellFormatting" OnItemCreated="grdVendors_ItemCreated" OnPdfExporting="grdVendors_PdfExporting"> <MasterTableView DataKeyNames="VendorID"> <Columns> <telerik:GridBoundColumn HeaderText="ID" DataField="VendorID" Visible="false" /> <telerik:GridBoundColumn HeaderText="First Name" DataField="FirstName" /> <telerik:GridBoundColumn HeaderText="Last Name" DataField="LastName" /> <telerik:GridBoundColumn HeaderText="City" DataField="City" /> <telerik:GridBoundColumn HeaderText="State" DataField="State" ItemStyle-HorizontalAlign="Center" /> <telerik:GridBoundColumn UniqueName="CreatedOn" HeaderText="Created On" DataField="CreatedDateTime" DataFormatString="{0:MM/dd/yyyy}" ItemStyle-HorizontalAlign="Right" /> </Columns> </MasterTableView> </jha:RadGrid>protected void grdVendors_ItemCommand(object sender, GridCommandEventArgs e){ switch (e.CommandName) { case RadGrid.ExportToExcelCommandName: case RadGrid.ExportToPdfCommandName: grdVendors.CssClass = "export"; string title = "Foo"; GridExportSettings settings = grdVendors.ExportSettings; settings.ExportOnlyData = true; settings.OpenInNewWindow = true; settings.IgnorePaging = true; settings.HideStructureColumns = true; settings.FileName = string.Format("{0} {1:yyyy-MM-dd}", title, DateTime.Now); // PDF settings.Pdf.DefaultFontFamily = "Tahoma"; settings.Pdf.PageTitle = title; settings.Pdf.Title = title; settings.Pdf.AllowPrinting = true; settings.Pdf.AllowAdd = false; settings.Pdf.AllowCopy = true; settings.Pdf.AllowModify = false; settings.Pdf.PaperSize = GridPaperSize.A4; settings.Pdf.PageHeight = Unit.Parse("210mm"); settings.Pdf.PageWidth = Unit.Parse("297mm"); settings.Pdf.PageTopMargin = Unit.Parse("20mm"); settings.Pdf.PageHeaderMargin = Unit.Parse("10mm"); settings.Pdf.PageBottomMargin = Unit.Parse("10mm"); settings.Pdf.PageLeftMargin = Unit.Parse("10mm"); settings.Pdf.PageRightMargin = Unit.Parse("10mm"); break; }}protected void grdVendors_ExportCellFormatting(object sender, ExportCellFormattingEventArgs e){ /// Never fires when exporting to PDF switch (e.FormattedColumn.ItemStyle.HorizontalAlign) { case HorizontalAlign.Left: e.Cell.Style["text-align"] = "left"; break; case HorizontalAlign.Center: e.Cell.Style["text-align"] = "center"; break; case HorizontalAlign.Right: e.Cell.Style["text-align"] = "right"; break; } if (e.FormattedColumn.UniqueName == "PostalCode") e.Cell.Style["mso-number-format"] = @"\@";}protected void grdVendors_ItemCreated(object sender, GridItemEventArgs e){ if (grdVendors.CssClass.Contains("export")) { if (e.Item is GridDataItem) { foreach (TableCell cell in e.Item.Cells) { if (e.Item.ItemType == GridItemType.AlternatingItem) cell.Style["background-color"] = "#E6EFF7"; else cell.Style["background-color"] = "#FFFFFF"; } } else if (e.Item is GridHeaderItem) { Table table = e.Item.Parent.Parent as Table; table.Style["font-family"] = "Tahoma"; table.Style["font-size"] = "8pt"; foreach (TableCell cell in e.Item.Cells) { cell.Style["border-color"] = "#FFFFFF"; cell.Style["background-color"] = "#EEEEEE"; cell.Style["text-align"] = "left"; cell.Style["color"] = "#274777"; cell.Style["font-weight"] = "bold"; } } }}Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 1/25/2012 9:56:43 AM
Event time (UTC): 1/25/2012 2:56:43 PM
Event ID: 234287b000864dfeadd74c5105b467c8
Event sequence: 75
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/8/ROOT-1-129719554943999466
Trust level: Full
Application Virtual Path: /
Application Path: e:\inetpub\site
Machine name:
Process information:
Process ID: 12760
Process name: w3wp.exe
Account name:
Exception information:
Exception type: NullReferenceException
Exception message: Object reference not set to an instance of an object.
at Telerik.Web.UI.RadCompression.Compress(HttpApplication application)
at Telerik.Web.UI.RadCompression.PreRequestHandlerExecute(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)