I am having problem to select row column for datatable excelhtml5
I am having problem to select row column for datatable excelhtml5
raslmania07
Posts: 5Questions: 3Answers: 0
I have searched with text in column C and applied style for selected column only with the following code:
$('row c[r^="B"]', sheet).each( function () {
// Get the value
if ( $('is t', this).text() == 'Category Total Pcs' || $('is t', this).text() == 'Category Value(std Price)' || $('is t', this).text() == 'Category Value(Vat Price * 15%)' || $('is t', this).text() == 'Category Value(Retail Price)' ) {
# $(this).attr( 's', '25' );
}
});
But i want to style full row of selected column result. Please help. And sorry for my bad English.
This question has accepted answers - jump to:
This discussion has been closed.
Answers
Hi @raslmania07 ,
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin
http://live.datatables.net/lojugapa/1/edit?html,js,output
Hi @Colin,
Please have a look. Here if you download the excel, you will be able to see 'director' cell styled.
I want to style full row of this selected cell.
Ah, I understand, see this thread here - my example is doing what you want.
C
thanks a lot