public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Activities;component/Views/ActivitiesListUserCo" + "ntrol.xaml", System.UriKind.Relative)); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.activitiesGrid = ((Telerik.Windows.Controls.RadGridView)(this.FindName("activitiesGrid"))); this.Status = ((Telerik.Windows.Controls.GridViewDataColumn)(this.FindName("Status"))); }
public void InitializeComponent() { if (_contentLoaded) { return; } _contentLoaded = true; System.Windows.Application.LoadComponent(this, new System.Uri("/Procbel.Apps.Silverlight.Modules.Companies;component/Views/CompanyActivitiesUser" + "Control.xaml", System.UriKind.Relative)); this.uc = ((System.Windows.Controls.UserControl)(this.FindName("uc"))); this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot"))); this.VisualStateGroup = ((System.Windows.VisualStateGroup)(this.FindName("VisualStateGroup"))); this.Normal = ((System.Windows.VisualState)(this.FindName("Normal"))); this.Add = ((System.Windows.VisualState)(this.FindName("Add"))); this.Edit = ((System.Windows.VisualState)(this.FindName("Edit"))); this.scheduleView = ((Telerik.Windows.Controls.RadScheduleView)(this.FindName("scheduleView"))); this.activitiesGrid = ((Telerik.Windows.Controls.RadGridView)(this.FindName("activitiesGrid"))); this.Status = ((Telerik.Windows.Controls.GridViewDataColumn)(this.FindName("Status"))); this.overlayRectangle = ((System.Windows.Shapes.Rectangle)(this.FindName("overlayRectangle"))); this.border = ((System.Windows.Controls.Border)(this.FindName("border"))); this.dialog = ((Procbel.Apps.Silverlight.Helpers.ScheduleViewCustomDialogHost)(this.FindName("dialog"))); }
private Telerik.Windows.Controls.GridViewDataColumn CreateGridViewDataColumn(String header, String dataBindingMember, Double width, Int32 maxWidth, Boolean wrapText) { Telerik.Windows.Controls.GridViewDataColumn column = new Telerik.Windows.Controls.GridViewDataColumn(); column.Header = header; column.DataMemberBinding = new System.Windows.Data.Binding(dataBindingMember); if (width != 0) { column.Width = new Telerik.Windows.Controls.GridViewLength(width); } if (maxWidth != 0) { column.MaxWidth = maxWidth; } column.TextWrapping = (wrapText) ? TextWrapping.Wrap : TextWrapping.NoWrap; column.Background = new SolidColorBrush(MercuryApplication.ColorFromWebColor("EEEEEE")); return(column); }
private void MemberEnrollmentGrid_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e) { Telerik.Windows.Controls.GridView.GridViewDataControl dataControl = (Telerik.Windows.Controls.GridView.GridViewDataControl)sender; Telerik.Windows.Controls.GridViewDataColumn dataColumn = null; if (dataControl.ParentRow != null) { dataControl.ShowGroupPanel = false; dataControl.AutoGenerateColumns = false; dataControl.ColumnWidth = new Telerik.Windows.Controls.GridViewLength(1, Telerik.Windows.Controls.GridViewLengthUnitType.Star); dataControl.SelectionMode = SelectionMode.Single; dataControl.IsReadOnly = true; // TODO: SILVERLIGHT UPDATE //if (dataControl.ItemsSource is System.Collections.ObjectModel.ObservableCollection<Client.Core.Member.EnrollmentCoverage>) { // #region Enrollment Coverage Table // dataControl.Columns.Add (CreateGridViewDataColumn ("Benefit Plan", "BenefitPlan.Name", 0, 0, true)); // dataControl.Columns.Add (CreateGridViewDataColumn ("Coverage Code", "CoverageCodeId", 0, 125, true)); // dataControl.Columns.Add (CreateGridViewDataColumn ("Rate Code", "RateCode", 80, 0, true)); // dataColumn = CreateGridViewDataColumn ("Effective", "EffectiveDate", 80, 0, true); // dataColumn.DataMemberBinding.Converter = new Client.ValueConverters.DateToStringFormatter (); // dataColumn.IsFilterable = false; // dataControl.Columns.Add (dataColumn); // dataColumn = CreateGridViewDataColumn ("Termination", "TerminationDate", 80, 0, true); // dataColumn.DataMemberBinding.Converter = new Client.ValueConverters.TerminationDateToStringFormatter (); // dataColumn.IsFilterable = false; // dataColumn.SortingState = Telerik.Windows.Controls.SortingState.Descending; // dataControl.Columns.Add (dataColumn); // #endregion //} //else if (dataControl.ItemsSource is System.Collections.ObjectModel.ObservableCollection<Client.Core.PcpAssignment>) { // #region PCP Assignment Table // dataControl.Columns.Add (CreateGridViewHyperlinkButton ("PCP Provider", "PcpProvider.Entity.Name", "PcpProvider.Id", "Open Provider Profile", 0, 0, true)); // dataControl.Columns.Add (CreateGridViewHyperlinkButton ("PCP Affiliate", "PcpAffiliate.Entity.Name", "PcpAffiliateId", "Open Provider Profile", 0, 0, true)); // dataColumn = CreateGridViewDataColumn ("Effective", "EffectiveDate", 80, 0, true); // dataColumn.DataMemberBinding.Converter = new Client.ValueConverters.DateToStringFormatter (); // dataColumn.IsFilterable = false; // dataControl.Columns.Add (dataColumn); // dataColumn = CreateGridViewDataColumn ("Termination", "TerminationDate", 80, 0, true); // dataColumn.DataMemberBinding.Converter = new Client.ValueConverters.TerminationDateToStringFormatter (); // dataColumn.IsFilterable = false; // dataColumn.SortingState = Telerik.Windows.Controls.SortingState.Descending; // dataControl.Columns.Add (dataColumn); // #endregion //} } return; }