or
Partial
Class login_User_Status
Inherits System.Web.UI.Page
End
Class
Hi guys
I seem to have a problem afetr upgrading to Q2 2010 version of the controls.
I have a menu created using Q2 2009 version and have modified the text colors of the Bllack skin
with this css:
div.RadMenu_Black .rmRootGroup .rmLink { color:#A49261; font-family: Georgia; font-weight:500; font-size:11px; } div.RadMenu_Black .rmRootGroup .rmLink:hover, div.RadMenu_Black .rmRootGroup .rmLink:focused { color:#A49261; font-family: Georgia; }protected void AttributesRadGrid_ItemDataBound(object sender, GridItemEventArgs e) { if (e.Item is GridEditableItem && e.Item.IsInEditMode) { GridEditableItem editedItem = e.Item as GridEditableItem; GridEditManager editMan = editedItem.EditManager; GridDropDownListColumnEditor fieldTypeEditor = editMan.GetColumnEditor("FieldType") as GridDropDownListColumnEditor; GridDropDownListColumnEditor attributeCategoryIDEditor = editMan.GetColumnEditor("AttributeCategoryID") as GridDropDownListColumnEditor; fieldTypeEditor.ComboBoxControl.Items.Add(new RadComboBoxItem("Text", "0")); fieldTypeEditor.ComboBoxControl.Items.Add(new RadComboBoxItem("Yes/No", "1")); fieldTypeEditor.ComboBoxControl.Items.Add(new RadComboBoxItem("Multi Yes/No", "2")); fieldTypeEditor.ComboBoxControl.Items.Add(new RadComboBoxItem("Select", "3")); FillAttributeCategoriesComboBox(attributeCategoryIDEditor.ComboBoxControl); if (e.Item.RowIndex != -1) { CellphonesCL.Database.attributes attr = (CellphonesCL.Database.attributes)e.Item.DataItem; fieldTypeEditor.ComboBoxControl.SelectedValue = attr.FieldType.ToString(); attributeCategoryIDEditor.ComboBoxControl.SelectedValue = attr.AttributeCategoryID.ToString(); } } else if (e.Item is GridDataItem) { GridDataItem dataItem = e.Item as GridDataItem; CellphonesCL.Database.attributes attr = (CellphonesCL.Database.attributes)e.Item.DataItem; dataItem["AttributeCategoryID"].Text = attr.attributecategories.Title; dataItem["FieldType"].Text = attributes.GetAttributeFieldTypeStr((AttributeFieldType)attr.FieldType); } }' Add column to RadGrid1 ProgrammaticallyPrivate Sub AddNewColumnToRadGrid(ByVal UniqueName As String, ByVal HeaderText As String, ByVal DataField As String, ByVal SortExpression As String) Dim boundColumn As New GridBoundColumn() RadGrid1.MasterTableView.Columns.Add(boundColumn) boundColumn.UniqueName = UniqueName boundColumn.HeaderText = HeaderText If DataField.Length > 0 Then boundColumn.DataField = DataField If SortExpression.Length > 0 Then boundColumn.SortExpression = SortExpressionEnd Sub' Simple Export to Excel FunctionProtected Sub btnExportToExcel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnExportToExcel.Click RadGrid1.ExportSettings.FileName = "Report" RadGrid1.ExportSettings.ExportOnlyData = True RadGrid1.ExportSettings.IgnorePaging = True RadGrid1.ExportSettings.OpenInNewWindow = True RadGrid1.MasterTableView.ExportToExcel()End Sub