or
| public class MyCustomFilteringColumnCS : GridBoundColumn | |
| { | |
| //RadGrid will call this method when it initializes the controls inside the filtering item cells | |
| protected override void SetupFilterControls(TableCell cell) | |
| { | |
| RadGrid RadGrid2 = (RadGrid)cell.Page.FindControl("RadGrid1"); | |
| base.SetupFilterControls(cell); | |
| cell.Controls.RemoveAt(0); | |
| RadComboBox combo = new RadComboBox(); | |
| combo.ID = ("ComboBox_" + this.UniqueName); | |
| combo.ShowToggleImage = false; | |
| combo.Skin = "Office2007"; | |
| combo.AutoPostBack = true; | |
| combo.Items.Add(new RadComboBoxItem("All", "%")); | |
| combo.DataSource = RadGrid2.DataSource; | |
| combo.DataTextField = this.UniqueName; | |
| combo.DataValueField = this.UniqueName; | |
| combo.Items.Insert(0, new RadComboBoxItem("All","%")); | |
| combo.DataBind(); | |
| combo.SelectedIndexChanged += this.list_SelectedIndexChanged; | |
| cell.Controls.AddAt(0, combo); | |
| cell.Controls.RemoveAt(1); | |
| } | |
| <asp:Content ID="Content2" ContentPlaceHolderID="cph2" Runat="Server"> |
| <style type="text/css"> |
| .mp |
| { |
| border:1px solid #898c95; |
| background-color:#f1f1f1; |
| margin-left: 2px; |
| float:left; |
| width: 100%; |
| } |
| .ts |
| { |
| text-align:left; |
| width: 160px; |
| margin-right:1px; |
| } |
| </style> |
| </asp:Content> |
We have been waiting for Q2 release to target as the first production usage, assuming the breaking bugs for us are fixed..
Is the "Q" part the quarter or something else? as it is almost the end of Q2?
Also is there a release schedule somewhere, and a contents list of what it actually contains (or at least planned to contain)..
Anything to enable us to plan our activities..
Thanks..
I am using WebBlue Skin. How can I use CSS in a RadGrid EditItemStyle-CssClass="Test" . I have tried what is below and it does not work.
<telerik:RadGrid .... EditItemStyle-CssClass="Test" >
.RadGrid_WebBlue .Test
{
background-color:red;
}
| Public Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender |
| If Not IsPostBack Then |
| For Each item As GridItem In RadGrid1.MasterTableView.Items |
| If TypeOf item Is GridEditableItem Then |
| Dim editableItem As GridEditableItem = CType(item, GridDataItem) |
| 'TRY to find my column YEAR here but I'm not able |
| If editableItem.ID = "YEAR" Then |
| editableItem.Edit = True |
| End If |
| End If |
| Next |
| RadGrid1.Rebind() |
| End If |
| End Sub |