Posts tagged DVWP
Marc D Anderson: Firing an Event When a User Selects a Value from a Data View Web Part Dropdown
Apr 14th
Change SharePoint 2007 Data View Filter with Javascript
Mar 23rd
I found this blog about How to query cross-site lists in DataFormWebPart , and from that I found out how to simply change filter value on a column on a Data View Web Part with a javascript.
http://jamestsai.net/blog/default.aspx
Simply add a onlick event or whatever on your page page and make sure you have enable filter on column header enabled in SPD.
ex:
onclick=”__doPostBack(‘ctl00$PlaceHolderMain$g_0af48c6e_86ae_427e_ab2e_167525795962′,’NotUTF8;__filter={@Title=##dvt_all##}’);”
onclick=”__doPostBack(‘ctl00$PlaceHolderMain$g_0af48c6e_86ae_427e_ab2e_167525795962′,’NotUTF8;__filter={@Title=Value}’);”
g_0af48c6e_86ae_427e_ab2e_167525795962′ is the data view web part id.
Hope this works.
Recent Comments