سؤال

أنا أعرض قائمة مخصصة باستخدام ListViewWebPart.أريد تحديث الشاشة بحيث يحتوي على بعض الأزرار (عمودان في النهاية بالأزرار).

أريد بعد ذلك التعامل مع الزر النقر والقيام ببعض المنطق المخصص.

هل يمكنني القيام بذلك باستخدام ListViewWebPart؟

أنا أستخدم الجزء الصحيح على الويب؟

هل كانت مفيدة؟

المحلول

Use the dataview webpart rather than the list view one. Insert a blank dataview in sharepoint designer and then attach the custom list as the data source. You can do a lot more with the dataview webpart than the list view one.

نصائح أخرى

What you can do is put HTML through calculated column following the link below:
Using calculated columns to write HTML

The guy has explained how you can add HTML in a calculated column or you can make single line textbox to prepare your HTML and then using JavaScript the HTML will be rendered in XSLTListView.. following is the link to download JavaScript:
Download link - Topic : HTML Calculated Column

So you can create buttons, link buttons, image buttons inside and on javascript redirect to other page or call pop up etc.

But you need to make sure the JavaScript is on every page you have the XSLTListView...

I hope this helps

You would open the page in SharePoint Designer and modify the Web Part by adding the buttons. Custom logic when pressing the buttons would be easiest by using JavaScript and Client Object Model.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top