leninpardo / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

Row Color with XML Data #151

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set the Flexigrid dataType to XML
2. In XML, specify row background color attribute <row color='#E5FFEC'></row>

What is the expected output? What do you see instead?
As an expected output, it should display the row with Background color set to 
the one specified in the color attribute.
Instead, it shows just white background color!

What version of the product are you using? On what operating system?
Product Version: Flexigrid for jQuery -  v1.1
Operating System: Windows XP with SP3
Browser: Firefox 22.0

Please provide any additional information below.
I noticed that instead of using "color" attribute, it uses ID attribute to set 
the background color.
Line # 502:
$(tr).css('background',$(this).attr('id')); 
It should be changed to:
$(tr).css('background',$(this).attr('color'));

Fixed file is attached.

Original issue reported on code.google.com by dexse...@gmail.com on 7 Jul 2013 at 11:35

Attachments: