Skip to content

Replies

0
Quan Mac
Quan Mac answered on Dec 15, 2016 11:54 PM

Was able to get around the issue with putting a panel inside the grid and setting the background color of the panel and that worked

0
Quan Mac
Quan Mac answered on Dec 15, 2016 11:44 PM

This will not likely work for our scenario since we can't create CSS classes for every background color a user can choose.

Is there a likely chance that Infragistics is going to allow the background color to be modified outside of using CSS classes?

0
Quan Mac
Quan Mac answered on Dec 6, 2016 3:58 PM

Thanks Denis,

Unfortunately setting the background color client-side isn't an option as we have some server-side code to process data and set the tabs as we aren't hard coding the background color, it's being pulled dynamically from a database entry.

0
Quan Mac
Quan Mac answered on Dec 2, 2016 3:10 PM

We allow users to select a color for a background on a certain part of our website and the grid displays the selected color in one of the cells from the database.

I'm using the grid InitializeRow to set the background color based on a column from the data source.

0
Quan Mac
Quan Mac answered on Dec 1, 2016 6:26 PM

I was able to figure this out but not completely filling in the cell with the desired color.

I changed the unboundfield to the following:

<igtbl:TemplateDataField Key="tabcolor" Header-Text="Color" Header-Tooltip="Color" CssClass="NoPaddingCssClass">

<ItemTemplate>

<asp:Panel ID="CellColorPanel" runat="server" Width="100%" Height="100%" />

</ItemTemplate>

</igtbl:TemplateDataField>

In the CssClass, I set the following properties:

.NoPaddingCssClass

{

padding: 0px 0px 0px 0px;

margin: 0px 0px 0px 0px;

}

This leaves me with a small white border around the panel that I can't get to go away, is there some css that I'm missing?