Hello Telerik!
I have use RadControls for ASP.NET AJAX 2008 3 1314
In my project I use custom editors in RadGrid. Everything works fine while I don't use custom editor for GridDropDownColumn. For this column type, custom editor doesn't work properlly when EnableEmptyListItem = true.
In this case column try to convert my custom editor to GridDropDownListColumnEditor (instead of GridDropDownColumnEditor).
See your code (method GridDropDownColumn.OnDataBindColumn())
| if (this.EnableEmptyListItem) |
| { |
| if (this.DropDownControlType == GridDropDownColumnControlType.RadComboBox) |
| { |
| if (((GridDropDownListColumnEditor) this.DropDownListEditor).ComboBoxControl.FindItemByValue(this.EmptyListItemValue) == null) |
| { |
| RadComboBoxItem item3 = new RadComboBoxItem(this.EmptyListItemText, this.EmptyListItemValue); |
| ((GridDropDownListColumnEditor) this.DropDownListEditor).ComboBoxControl.Items.Insert(0, item3); |
| } |
| } |
| else if (((GridDropDownListColumnEditor) this.DropDownListEditor).DropDownListControl.Items.FindByValue(this.EmptyListItemValue) == null) |
| { |
| ListItem item5 = new ListItem(this.EmptyListItemText, this.EmptyListItemValue); |
| ((GridDropDownListColumnEditor) this.DropDownListEditor).DropDownListControl.Items.Insert(0, item5); |
| } |
| } |
In latest realse situation the same. Please fix it or explain how can I use custom editor with GridDropDownColumn and use EnableEmptyListItem property.
Using 2008.Q3 skins with 2009.Q1 Release : RadComboBox
The official Q3 skins for RadComboBox are attached to this post (Q3-Skins-RadComboBox.zip).
The same instructions can also be applied for custom skins (since the RadComboBox did not change its CSS class names).
There are two ways of using the attached skins (SkinName is the skin that you want to use):
ASP.NET Themes
This method is useful if you need to use the skin for all controls of a specific type in the whole web application.
You need to:
1. change the <pages> declaration in your web.config to <pages
theme="SkinName"> e.g.
<pages theme="Gray">
2. add the following lines to the <appSettings> section of your web.config:
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.Skin" value="SkinName"/>
e.g.
<add key="Telerik.Skin" value="Gray"/>
3. create an ASP.NET Theme, named SkinName and add the following all files and folders from the Q3-Skins-RadComboBox archive:
Skins/SkinName/*
e.g.
Skins/Gray/ComboBox.Gray.css
Skins/Gray/ComboBox/*.*
A sample project, demonstrating this method, is attached to this post (Q3-Skins-ASPNETThemes-RadComboBox.zip).
Direct skin registration
This method is useful if you have fewer instances of RadComboBox.
You need to:
1. set the Skin property accordingly
2. set the EnableEmbeddedSkins property to false
3. register the skin file using the following CSS:
<link
rel="stylesheet" type="text/css" href="~/Skins/SkinName/ComboBox.SkinName.css"
runat="server" />
e.g.
<link rel="stylesheet" type="text/css" href="~/Skins/Gray/ComboBox. Gray.css" runat="server" />
A sample project, demonstrating this method, is attached to this post (Q3-Skins-DirectSkinRegistration-RadComboBox.zip).