I have a RadGrid control with Excel like filtering which will populate the values on demand. I want to reduce the height of the filter pop up and remove the (contains,equal to,...) dropdown from the pop up.
I used the below code to remove the dropdowns(HCFMRCMBFirstCond and HCFMRCMBSecondCond ). But I was getting javascript error and my filter doesn't work.
void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
{
foreach (Control c in e.Item.Controls)
{
RadComboBox combo = c as RadComboBox;
if (combo != null)
{
if(combo.Items.Count == 16)
{
combo.Visible = false;
}
}
}
}
I used the following code to reduce the filter pop up height.
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridFilteringItem)
{
GridFilteringItem item = (GridFilteringItem)e.Item;
item.Height = Unit.Pixel(100);
}
}
But doesn't seem to work.
I want to have only the Wild card Search box and the filterlist items on my filter with reduced filter pop up height. How could I do this? Please help!