or
| void JobsList_SelectedIndexChanged(object sender, EventArgs e) |
| { |
| FilterCombo.AppendDataBoundItems = true; |
| FilterCombo.Items.Clear(); |
| RadComboBoxItem myItem = new RadComboBoxItem("All", "-1"); |
| FilterCombo.Items.Insert(0, myItem); |
| FilterCombo.Items[0].Selected = true; |
| if (JobsList.SelectedValue == "1") |
| { |
| FilterCombo.DataSource = TechniciansSource; |
| FilterCombo.DataTextField = "TechName"; |
| FilterCombo.DataValueField = "TechnicianId"; |
| FilterCombo.DataBind(); |
| } |
| else |
| { |
| FilterCombo.DataSource = SuburbSource; |
| FilterCombo.DataTextField = "Suburb"; |
| FilterCombo.DataValueField = "SuburbId"; |
| FilterCombo.DataBind(); |
| } |
| } |

| void RadGrid1_PreRender(object sender, EventArgs e) | |
| { | |
| foreach (GridDataItem itm in RadGrid1.Items) | |
| { | |
| if (itm.OwnerTableView.DataSourceID == "JobCodesSource") | |
| { | |
| //Go through each of the items in there | |
| int numChildRows = itm.ChildItem.NestedTableViews[0].Items.Count; | |
| int numChanged = 0; | |
| foreach (GridDataItem childItm in itm.ChildItem.NestedTableViews[0].ItemsHierarchy) | |
| { | |
| string TechName = "Bill Gates"; | |
| if (childItm["TechnicianId"].Text != Techname) | |
| { | |
| childItm.CssClass = "MyCustomRowClass"; | |
| numChanged++; | |
| } | |
| TechniciansSource.SelectCommand = oldSelect; | |
| } | |
| if(numChanged == numChildRows) | |
| itm.CssClass = "MyCustomRowClass"; | |
| } | |
| } | |
| } |
| using System; |
| using System.Runtime.InteropServices; |
| using System.Web.UI; |
| using System.Web.UI.WebControls; |
| using System.Web.UI.WebControls.WebParts; |
| using System.Xml.Serialization; |
| using System.Data; |
| using Microsoft.SharePoint; |
| using Microsoft.SharePoint.WebControls; |
| using Microsoft.SharePoint.WebPartPages; |
| using Telerik.Web.UI; |
| using PmeUtilities; |
| namespace PmeRisk |
| { |
| [Guid("975f68de-868f-4e53-b5f4-1025a0db6c1c")] |
| public class RiskGrid : System.Web.UI.WebControls.WebParts.WebPart |
| { |
| private HtmlTextWriter textWriter; |
| private ScriptManager scriptMan; |
| public ScriptManager AtlasScriptManager |
| { |
| get |
| { |
| if (scriptMan == null) |
| { |
| scriptMan = ScriptManager.GetCurrent(this.Page); |
| if (scriptMan == null) |
| { |
| scriptMan = new ScriptManager(); |
| this.Controls.Add(scriptMan); |
| } |
| } |
| return scriptMan; |
| } |
| } |
| public RiskGrid() |
| { |
| this.ExportMode = WebPartExportMode.All; |
| } |
| protected override void Render(HtmlTextWriter writer) |
| { |
| base.Render(writer); |
| textWriter = writer; |
| } |
| protected override void CreateChildControls() |
| { |
| base.CreateChildControls(); |
| try |
| { |
| RadGrid radGrid = new RadGrid(); |
| radGrid.ID = "RAD GRID"; |
| String siteName = SharepointUtils.determineWebURL(); |
| String riskListName = "Risks"; |
| DataTable riskTable = SharepointUtils.getListItems(siteName, riskListName, textWriter); |
| radGrid.DataSource = riskTable.DefaultView; |
| this.Controls.Add(radGrid); |
| } |
| catch (Exception ex) |
| { |
| String message = ex.Message; |
| String stackTrace = ex.StackTrace; |
| } |
| } |
| } |
| } |
window.radopen('PreviewTemplate.aspx','PreviewWindow')
If my RadAjaxPanel1.EnableAJAX property is set to true I receive the following Javascript Error: Line 4911 Error: length is null or not an object
If the property is set false which disables ajax then the preview window works perfectly.
I was wondering if this is a known bug and if a hotfix is available to resolve it as of yet. I have browsed the forum in prometheus Ajax and Window sections but have not found a resolution, maybe I missed something though.

