This is a migrated thread and some comments may be shown as answers.

how to highlight the selection of the filter options

1 Answer 32 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bindu
Top achievements
Rank 1
Bindu asked on 29 Sep 2008, 04:30 PM
Hi all,

I am using the RadGrid filter option. I would like to know how the filtering options gets highlighted when I just move my mouse over. Now I dont see any highligter showing up when the mouse is placed over the filter options.

One more thing, I have enabled the add new record facility in the Grid. and I see that there is a Refresh automatically visible on the grid.
I dont think it is offering much funtionaliy so I dont wnat to show refresh on the Grid. how to get rid of it.

How to handle the gridlines for empty string or non breaking space.
nbsp solved most of the grid lines problem but still i can see some difference when compared to the other grid lines.

All my questions are generic and I dont think I might need to post any code.

Thanks for all your help in advance,

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 30 Sep 2008, 05:22 AM
Hello Bindu,

You can highlight the filter menu options on mouseover as shown in the code below:
cs:
 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        GridFilterMenu menu = RadGrid1.FilterMenu; 
        foreach (RadMenuItem item in menu.Items) 
        { 
            item.Attributes.Add("onmouseover", "this.style.backgroundColor = 'red';");                    
        } 
    } 

To hide the Refresh button you can try out the following code.
cs:
 protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        foreach (GridCommandItem item in RadGrid1.MasterTableView.GetItems(GridItemType.CommandItem)) 
        { 
            Button btn1 = (Button)item.FindControl("RefreshButton"); 
            btn1.Visible = false
            LinkButton lnkbtn1 = (LinkButton)item.FindControl("RebindGridButton"); 
            lnkbtn1.Visible = false
        } 
   } 

Thanks
Princy.
Tags
Grid
Asked by
Bindu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or