Hello,
I'm using an UltraWebGrid with a column with buttons. The fact is that in my application, the buttons should not appears for all rows. It depends of the content of another cell in another column of the grid.
The problem is that the CellButtonStyle is defined in the grid initialization, and put for all the column.
In the row initialization, I tried that :
With e.Row.Cells.FromKey(ColumnKeyProperty).Style .Width = Unit.Percentage(100) .Height = Unit.Percentage(100) .Font.Size = FontUnit.XXSmall .BackgroundImage = ResolveUrl(Pictures.GridConfig) .BackColor = Drawing.Color.White .Cursor = Infragistics.WebUI.Shared.Cursors.Hand .HorizontalAlign = HorizontalAlign.Center .CustomRules = ButtonCustomRules .BorderWidth = New Unit(0) End With
But it only works for the cell's style, and doesn't work for the button. And if I use the same but on e.Row.Cells.FromKey(ColumnKeyProperty).Style.Column.CellButtonStyle, it applies the values on all the column...
Have somebody an idea to help me ?
Thanks in advance.
Hi Djoul,
It has been some time since your post, however in case you still need assistance I am happy to help.
You can hide the buttons in some cells of a button column using the OnHover client-side event. Pease refer to the following discussion for information on how to achieve that:
http://community.infragistics.com/forums/t/62088.aspx
Please let me know if you have any questions.
Best Regards,
Petar IvanovDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support