or
| .RadGrid_Resonance .rgFilterActive, |
| .RadGrid_Resonance .rgFilterActive:hover |
| { |
| background-color: #ffffB0; |
| } |
Firstly, with this it doesn't apply the style for the filters that are active, so to workaround in the item created event, I did the following:
| foreach (GridColumn column in grid.Columns) |
| { |
| if (((GridTemplateColumn)column).AllowFiltering == true) |
| { |
| if (column.CurrentFilterFunction != GridKnownFunction.NoFilter) |
| { |
| (filteringItem[column.UniqueName].Controls[1] as Button).CssClass = "rgFilter rgFilterActive"; |
| } |
| else |
| { |
| if (filteringItem[column.UniqueName].Controls.Count > 1) |
| { |
| (filteringItem[column.UniqueName].Controls[1] as Button).CssClass = "rgFilter"; |
| } |
| } |
| } |
| } |
With this everything works as expected, but when we click on the filter image and click outside, it loses the active styling.
Kindly note although this is a small issue, but needs to be resolved. Please let me know should I follow any other way to implement this, or is this an issue grid styling itself.
Thanks,
Tilak


public void InstantiateIn(System.Web.UI.Control container){ RadToolTip RadToolTip1 = new RadToolTip(); RadToolTip1.ID = container.ClientID + DateTime.Now.Ticks.ToString(); RadToolTip1.HideEvent = ToolTipHideEvent.LeaveToolTip; RadToolTip1.OffsetY = -1; RadToolTip1.RelativeTo = ToolTipRelativeDisplay.Element; RadToolTip1.EnableViewState = false; RadToolTip1.Position = ToolTipPosition.TopCenter; RadToolTip1.AnimationDuration = 300; RadToolTip1.DataBinding += new EventHandler(RadToolTip1_DataBinding); if (request.UserAgent.ToLower().Contains("android")) { RadToolTip1.ShowEvent = ToolTipShowEvent.OnClick; } container.Controls.Add(RadToolTip1);}
var data = new MyEntity(); // it can be a new object, so I do not have an ID until I save itdata.Title = txtTitle.Text; // and so on...data.Save();foreach(var file in asyncUpload.UploadedFiles){ data.Attachments.Add(file);}