or
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<telerik:radeditor> <Tools> <telerik:EditorToolGroup> <telerik:EditorTool Name="LinkManager" /> <telerik:EditorTool Name="Unlink" /> <telerik:EditorTool Name="ImageManager" /> <telerik:EditorTool Name="DocumentManager" /> </telerik:EditorToolGroup> </Tools></telerik:radeditor>