Accessing HTML data-* Attributes in Render Function

Accessing HTML data-* Attributes in Render Function

tech-otakutech-otaku Posts: 4Questions: 1Answers: 0

I'm using the example in this discussion to construct a url in a render function using HTML data-* attributes.

From my test case you can see that the render function is executed four times for each of the three targeted columns; when the type is display, type, sort and filter.

When the type is type or filter the data-search-text attribute is retrieved successfully for all three columns. For sort the render function only executes for the first column.

However, when the type is display, the one I’m interested in, the value of the data-search-text attribute is retrieved successfully for the cells in the first column, but not for cells in the second and third columns even though the render function is executed for all three columns.

Am I missing something or is this expected behaviour?

Many thanks, Steve.

Replies

Sign In or Register to comment.