Also, when the user has selected a filter, there is no visual indication that the data in the grid is filtered. Is there a way to update the filter icon so that it "appears" filtered?
10 Answers, 1 is accepted
Hello Chris,
From what I see in Office2010 theme, there isn't any overlap. The sort order image shows on the header itself, whilst the sort image shows on the header row. The indicator in that the column is filtered is the value in the filter cell. If this isn't what you mean, would you mind providing a screenshot that indicates the issue?
I hope this helps.
Richard
Thanks. What version of the controls are you using? If it is the latest one, would you be able to provide me with a really basic sample? I can't promise I can sort this for you, but I'm happy to take a look.
regards
richard
Ok, added a .zip file. You'll need to rename it to open it.
Zip files that are renamed to img files won't show up here. The only way to do it on the firus is to paste in text and use the Format Code block.
Regards,
Richard
Ok. A support ticket will go directly to Telerik.
If you need any advice in the forums though, just let me know.
Thanks
Richard
-- Class containing object we'll bind to the grid
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
namespace
RadGridTest
{
class Person
{
public Person(string strFirst, string strLast)
{
First = strFirst;
Last = strLast;
}
public string First { get; set; }
public string Last { get; set; }
}
class PersonCollection : List<Person> { }
}
-- Rad Form with the bound grid
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Windows.Forms;
using
Telerik.WinControls.UI;
namespace
RadGridTest
{
public partial class Form1 : RadForm
{
public Form1()
{
InitializeComponent();
PersonCollection people = new PersonCollection();
people.Add(
new Person("John", "Smith"));
people.Add(
new Person("Frank", "Thompson"));
people.Add(
new Person("Bob", "Tillman"));
people.Add(
new Person("Chris", "Franklin"));
m_grd.DataSource = people;
}
}
}
-- Designer file for the form
namespace
RadGridTest
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region
Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.office2010Theme1 = new Telerik.WinControls.Themes.Office2010Theme();
this.m_grd = new Telerik.WinControls.UI.RadGridView();
((System.ComponentModel.
ISupportInitialize)(this.m_grd)).BeginInit();
((System.ComponentModel.
ISupportInitialize)(this)).BeginInit();
this.SuspendLayout();
//
// m_grd
//
this.m_grd.Dock = System.Windows.Forms.DockStyle.Fill;
this.m_grd.Location = new System.Drawing.Point(0, 0);
//
// m_grd
//
this.m_grd.MasterTemplate.EnableFiltering = true;
this.m_grd.MasterTemplate.ShowFilteringRow = false;
this.m_grd.MasterTemplate.ShowRowHeaderColumn = false;
this.m_grd.Name = "m_grd";
this.m_grd.ShowGroupPanel = false;
this.m_grd.ShowHeaderCellButtons = true;
this.m_grd.Size = new System.Drawing.Size(335, 225);
this.m_grd.TabIndex = 0;
this.m_grd.ThemeName = "Office2010";
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(335, 225);
this.Controls.Add(this.m_grd);
this.Name = "Form1";
//
//
//
this.RootElement.ApplyShapeToControl = true;
this.Text = "Rad Grid Test";
this.ThemeName = "Office2010";
((System.ComponentModel.
ISupportInitialize)(this.m_grd)).EndInit();
((System.ComponentModel.
ISupportInitialize)(this)).EndInit();
this.ResumeLayout(false);
}
#endregion
private Telerik.WinControls.Themes.Office2010Theme office2010Theme1;
private Telerik.WinControls.UI.RadGridView m_grd;
}
}
Would you mind re-posting this please using the Format Code block as it takes considerable effort to format a code file from the text pasted here.
Many thanks
Richard
Please follow the answer that we provided in your support ticket 372163. If you need further assistance, feel free to write back.
All the best,
Svett
the Telerik team