Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop down header is displaying html #42

Open
BrettAndo opened this issue Oct 13, 2016 · 2 comments
Open

Drop down header is displaying html #42

BrettAndo opened this issue Oct 13, 2016 · 2 comments
Labels

Comments

@BrettAndo
Copy link

Hi,
I've implemented this on my SharePoint site and DataTables loads perfectly but for each column drop-down, it's displaying the full html inside the header.
So instead of the label displaying, it shows the following:
<div sortable="" sortdisable="" filterdisable="" filterable="" filterdisablemessage="" name="Proximity" ctxnum="653" displayname="Proximity" fieldtype="DateTime" resulttype="" sortfields="View={67c3e33b-8110-4eaa-be19-28d5c67f2c0a}&amp;SortField=Proximity&amp;SortDir=Asc" class="ms-vh-div"><a id="diidSortProximity" onfocus="OnFocusFilter(this)" href="javascript:" onclick="javascript:return OnClickFilter(this,event);" sortingfields="View={67c3e33b-8110-4eaa-be19-28d5c67f2c0a}&amp;SortField=Proximity&amp;SortDir=Asc">Proximity<img src="/_layouts/images/blank.gif" class="ms-hidden" border="0" width="1" height="1" alt=""></a><img src="/_layouts/images/blank.gif" alt="" border="0"><img src="/_layouts/images/blank.gif" border="0" alt=""></div><div class="s4-ctx"><span>&nbsp;</span><a onfocus="OnChildColumn(this.parentNode.parentNode); return false;" onclick="PopMenuFromChevron(event); return false;" href="javascript:;" title="Open Menu"></a><span>&nbsp;</span></div>

So the label should be "Proximity". The drop-down values display correctly as text.

Does anyone know what I need to change in the ColumnFilterWidgets.js file to render this as html?

@cyberhobo
Copy link
Owner

I took a look at the ColumnFilterWidget examples with version 1.10.12 of DataTables and didn't see this. If you can reproduce it somewhere I can see I'll take a look.

@cyberhobo cyberhobo added the bug label Oct 16, 2016
@BrettAndo
Copy link
Author

to add to my description above; The Column header is a javascript hyperlink, so when datatables grabs the column header, it's grabbing all the javascript html within that .
I am going with a dataview web part for now, if anyone else is using this with Datatables for SharePoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants