Monday, January 30, 2012

Re: Apllying CSS in DataGid in GWT2.4

Hi Vaibhav,
 
try the following code to specify class name:
 

dataGrid.getElement().setClassName("dataGridEvenRow");
 
 
Best Regards,
Kiran

On Mon, Jan 30, 2012 at 3:57 PM, vaibhav jain <vaibhav12jain@gmail.com> wrote:

Hello Experts,
                     How can i change my DataGrid look and feel in gwt2.4,I tried to simply define the property in my CSS to change the background color of even rows,

.dataGridEvenRow {
    background: #FF3030 !important;
}

and in code i used
dataGrid.setStyleName("dataGridEvenRow");


but its not reflecting the color change.

Thanks,
Vaibhav

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment