PDA

View Full Version : [CLOSED] Gridcommand doesn't show icon



Antonio09
Oct 01, 2012, 2:22 AM
I build a gridpanel in code behind and when I add some imagecommand and command columns with gridcommands, some icons are displayed correctly but other doesn't:


Dim colBol As New CommandColumn
colBol.ID = "Boletinar" & solicitud.Trim
colBol.Text = "Boletinar"
colBol.AutoHeight = True
colBol.DataIndex = "Boletinar"
colBol.Align = Alignment.Center

Dim BolCom As New GridCommand
BolCom.CommandName = "Boletinar"
BolCom.Icon = Icon.Rosette 'Does not display this icon
BolCom.Text = "Boletinar"
colBol.Commands.Add(BolCom)

ModelSeg.Fields.Add("Boletinar")
GridPanelSeg.ColumnModel.Columns.Add(colBol)

As an example, Rosette icon is not displayed but Accept icon is displayed correctly, I was testing and most of the icons are not displayed, only a few, wich may be the cause of this behavior??

blueworld
Oct 01, 2012, 10:08 AM
I am not sure, but you could try this in your page_load


ResourceManager1.RegisterIcon(Icon.Rosette )

Daniil
Oct 01, 2012, 10:16 AM
Hi @Antonio09,

I am unable to reproduce it with the last sources. Could you update from the 2.1 branch and retest?

Hi @blueworld,

Yes, your suggestion can help. Thank you for your attention!

Antonio09
Oct 02, 2012, 12:43 AM
Thank you! It seems like @blueworld solution works fine

Daniil
Oct 02, 2012, 5:25 AM
I think it should not be required.

If you have a chance to provide a sample to reproduce, we would investigate.