SharePoint jQuery DropDown list
-
2012年7月24日 下午 08:51I have a jQuery plugin for a multi-select drop-down list. I have other web parts on my page that I would like to filter on the drop-down list. How can I filter the list without doing a postback and losing all of my selections in the dropdown. I did look and there is an updatepanel, is there any way to hook into the updatepanel of the list. i was looking and trying to see how the list filter works with no postback and there is an updatepanel. This is a pure client-side solution (js). Is there a way to replicate the way SharePoint does the list filtering on the pages? Any help is greatly appreciated.
- 已編輯 RyanVan 2012年7月24日 下午 08:51
所有回覆
-
2012年7月24日 下午 09:06You should try using providers and consumer web parts, this link should guide you http://msdn.microsoft.com/en-us/library/ms469765.aspx.
-
2012年7月24日 下午 09:34I was hoping to be able to do this via an all client side solution.
Ryan
-
2012年7月30日 上午 10:26版主
Hi RyanVan,
If you only want to get an all client side solution, i suggest you use cookie or querystring to record the chosen parameter. When the page posing back, you can use javascript to judgment if has the records. If yes, you can get it and re-assignment to the jquery control.
If you want to achieve make the page partial refresh, you have to write the server-side code.
Here is a cookie example about this(Emir Liu'reply, need add cookie accept for you browser), the querystring method is the same as cookie, it save parameter in the url:
http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/387d85b5-be2c-4f12-a4f0-00f280711eb2
Thanks,
Lhan Han
- 已編輯 Lhan HanModerator 2012年7月30日 上午 10:32
- 已標示為解答 Lhan HanModerator 2012年8月2日 上午 07:07

