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

[Solved] CommandItem bar not displaying properly

3 Answers 133 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Mark Mikhail
Top achievements
Rank 1
John Mark Mikhail asked on 26 May 2008, 05:17 PM
Hi,

I'm having an issue with the Command Item Bar. The functionality works, but there is a white bar covering the theme. I'm not sure what I'm missing.

Here is what it looks like:










3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 27 May 2008, 05:29 AM
Hi John,

Can you try decreasing the width of the CommandItem as shown below.

ASPX:
<MasterTableView DataSourceID="SqlDataSource1"  CommandItemDisplay="Top" > 
            <CommandItemStyle  Height="25px" /> 


Thanks
Princy.
0
John Mark Mikhail
Top achievements
Rank 1
answered on 28 May 2008, 12:35 AM
No difference.

In fact if I change the background colour, this happens:

picture2.png

Any other ideas?
John
0
Shinu
Top achievements
Rank 2
answered on 28 May 2008, 04:26 AM
Hi John,

How are you changing the BackColor of the CommandItem? I tried setting the backcolor for the commanditem as shown below and it is working properly.

CS:
protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridCommandItem) 
        { 
            GridCommandItem cmditm = (GridCommandItem)e.Item; 
            cmditm.BackColor = System.Drawing.Color.Blue; 
        } 
 
    } 


Thanks
Shinu.
Tags
Grid
Asked by
John Mark Mikhail
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
John Mark Mikhail
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or