+ Start a Discussion
AnnaTAnnaT 

Can I divide Header of datatable?

Is it possible to divide header of datatable into two rows?

I know I can do this by using "table" but I want to use "datatable" because datatable is easy to set data.

I want to create as following image...

 

Anna

Best Answer chosen by Admin (Salesforce Developers) 
sfdcfoxsfdcfox
 https://c.na10.content.force.com/servlet/servlet.FileDownload?file=015F0000001O8JI 

For future reference: this file is not "publicly accessible". Check the Externally Available Image box on the document, then copy it's public URL. You see it only because the cookie for your session is still active in your browser. The URL should include the word "Image" in it (escapes my mind at this late hour, but I think it's ImageServlet).

 

In answer to your question, though, you can not split them up in a datatable. Namely, once the table "breaks" to the next row for any reason, no more headers will be output.

 

Instead, consider using raw HTML (a la repeat tags).

All Answers

sfdcfoxsfdcfox
 https://c.na10.content.force.com/servlet/servlet.FileDownload?file=015F0000001O8JI 

For future reference: this file is not "publicly accessible". Check the Externally Available Image box on the document, then copy it's public URL. You see it only because the cookie for your session is still active in your browser. The URL should include the word "Image" in it (escapes my mind at this late hour, but I think it's ImageServlet).

 

In answer to your question, though, you can not split them up in a datatable. Namely, once the table "breaks" to the next row for any reason, no more headers will be output.

 

Instead, consider using raw HTML (a la repeat tags).

This was selected as the best answer
AnnaTAnnaT

Dear sfdcfox ,

 

Thank you for the information and answering my question.

I changed the setting.

 

Can you see this?

https://na10.salesforce.com/015F0000001O8JI

 

This is my understanding that I can't create two row header by using datatable, is it correct?

I'll try to create table without using datatable.

 

Thank you very much for your support.

 

Anna

AnnaTAnnaT

Dear sfdcfox,

 

I could create table by using repeat tags!! and it was so easy to create it.

 

I really appreciate you helping me.

 

 

Anna

sfdcfoxsfdcfox

The URL should look like the following:

 

 

https://c.na3.content.force.com/servlet/servlet.ImageServer?id=01550000000IK1S&oid=00D500000007NT9&lastMod=1281746007000

This is a stock Microsoft image that comes with Windows, I believe. To obtain this URL, right-click on the image displayed with "Externally Available Image", and use "Copy Image Location" or the "Properties" dialog.