How to enable Like/Unlike, paging and searchbox functions for customized blog view list with JSLink.

Hi All
I am trying to customizing a view list which based on a blog template( =AllPost.aspx ) bu JSLink. The view need below 3 functions.
1. User can set Like/Unlike for each item on the list view.
2. User can move page by standard like page navigation buttons( prev/next ).
3. User can search the specific item by searchbox keyword.
I tried to overrideCtx.Templates.Item and overrideCtx.Template.Footer in .js - customized footer returns RenderFooterTemplate(ctx).
a). Like/Unlike function worked fine.
b). Page navigation and search did not worked.
Next, I tried to overrideCtx.Templates.Body -
a). Like/Unlike function worked not fine. - when the user clicks Like/UnLike on the page(n>2), list view moves top(n=1) after the below code executed.
EnsureScriptFunc('reputation.js', 'Microsoft.Office.Server.ReputationModel.Reputation', function ()
Microsoft.Office.Server.ReputationModel.Reputation.setLike(
ctxObj,
listId,
itemId,
like);
b). Page navigation and search worked fine.
Finally, I override both Item and Body with almost same code(differs set for the item object).
After that all functions work fine, but I can not understand
why. 
Does anyone have explanation of that or another way?

try this links for button funcitonality:
https://social.msdn.microsoft.com/Forums/en-US/6a19b015-83a3-4cf3-a5da-216133ce936b/need-next-previous-button-on-list-view-webpart?forum=sharepointcustomization
http://maulikdhorajia.blogspot.com/2011/06/sharepoint-2010-customize-paging-in.html

Similar Messages

  • How to clear the open items and parked items for customer

    Hi Experts,
    I need to clear the open items and parked items for customer.
    So any one could let me know the transaction code and procedure for clearing the items for customer.
    Best regards,
    Kesava balaji.

    Hello,
    Parked items will have NO RELEVANCE, unless you post it.
    You CANNOT clear parked items.
    You can clear the posted items using F.13 or F-32
    Regards,
    Ravi

  • How to enable multiple check-out and check-in for offline editing (sharepoint 2010)

    I have  a SharePoint site where I am using check-in check out feature for one of 'Project' document library.
    By default SharePoint supports single document to be checkout for offline editing (when i click on checkout, SP ask for 'Use local draft option' for offline editing), if I select that check box, it take a local copy for offline editing in my 'SharePoint
    Draft' folder.
    but when I try to check-out multiple files from 'Project' document library, it does not show any form for confirmation, as shown above (use 'Local draft option') and files get checked out on server it self, but I didn't find any local copy in  'SharePoint
    Draft' folder. mean sharepoint does not support multiple file check-out feature for offline editing.
    Please suggest if we can check out multiple files for offline editing in sharepoint 2010.
    Thanks

    Sagar, Thanks for reply, but none of the link is useful.
    These all links talk about the check-in check-out feature, but my issue is that, when I do select multiple files for checkout Draft’s dialog
    box does not appear and offline copy of files is does not created. how to fix that issue.

  • How do i delete a message and get thread to go down the list with ios8

    with ios8 if I delete a specific message from a contact the thread stays at top and when opened the last message will be from an earlier date , is there something im missing

    No, it's not there. In fact, only one of my many, many unsorted bookmarks was listed when I highlighted Unsorted Bookmarks. I've been trying to transfer my unsorted bookmarks there, but when the link is dead and jumps to a different URL, it's useless to move the page into Unsorted Bookmarks because it will be the 'new' url (the 404 error message URL) that will appear in Unsorted Bookmarks.
    It took me a really long time to find out that I could move bookmarks into Unsorted Bookmarks.
    Why has Firefox made its bookmarks so hard to organize?

  • How to enable the SharePoint 2010 and 2013 Developer Dashboard for specific WebApplication or Sitecollection?

    How to enable the SharePoint 2010 and 2013 Developer Dashboard for specific Web Application or Site collection(not for all Web Application)?
    Vishal Goyal

    Hi Vishal,
    I don't think there is option for specific site collection or web application,but there is option of enabling developer dashboard on specific master pages and that is one on of the way you could do it.
    look article on below link to enable developer dashboard on specific master pages
    https://msdn.microsoft.com/en-us/library/office/ff512745%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Let me know if this helps.
    Thanks
    Bhism 

  • How do you isolate an album or artist in the new iTunes? (12.0) It is really frustrating when trying to listen to one album and I get the album in the list with all 1,025 other albums in my library.

    How do you isolate an album or artist in the new iTunes? (12.0) It is really frustrating when trying to listen to one album and I get the album in the list with all 1,025 other albums in my library. Same with the artist.

    Welcome to the  Discussion Forums
    ... I assumed that if I played the 1st track, it would continue to play the rest of the album (as iTunes does on my Macs and PCs),...
    You assumed correctly, and it should continue to play the rest of the album in order. Does this happen to all your albums. Have you tried restarting the tv.

  • How to use the selection profile and status profile for production order?

    Hi expert,
       I want to know how to use the selection profile and status profile for production order. what's the usage for these two selection profile and status profile ?
      Please help me.
      thanks in advance.
      george.shi

    Hi George,
    There are are two types of statuses.One is system status and second one is user status.These statuses will tell us current situation of an order.
    We can't change system statuses.But we can create our own statuses through status profile.With this profile we can control user statuses.
    In this status profile,
    1.We define the sequence in which user statuses can be activated,
    2.We define initial statuses
    3. Allow or prohibit certain business transactions.
    Selection profiles are used to select the objects (say production orders) with different status combinations.We assign status profiles to selection profiles in BS42 T-Code.
    Regards,
    Raja.
    Edited by: Rajarao on Oct 30, 2008 6:21 AM
    Edited by: Rajarao on Oct 30, 2008 6:22 AM

  • Does anyone know how to get the vendor ID and product ID for NI-Visa? TIA

    Does anyone know how to get the vendor ID and product ID for NI-Visa? TIA

    This question has already been addressed in this thread:
    Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa?
    John M
    National Instruments

  • Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Hello,
    Exactly which USB device are you referring to? Is the device a NI product?
    The Product ID for National Instruments DAQPad-6020E is 0x12C0. The USB vendor ID is 0x3923. This is a 16-bit hexadecimal number(1093) (that is decimal 4243).
    Also, here's a document on our website that will help you in configuring NI-VISA to control your USB device:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument
    Swapnil P.
    National Instruments Engineer

  • HT1339 my older iPod my husband wants to use and his netbook does not have cd drive. How do I down load iPod and iTunes info for this product so he can now use it?

    my older iPod my husband wants to use and his netbook does not have cd drive. How do I down load iPod and iTunes info for this product so he can now use it?

    Your question(s) is/are a little hard to understand.  So your husband has an iPod as well as a netbook and he wants to be able to sync iPod with this netbook is that correct?  If so, he'll need to first download and install iTunes assuming the netbook is running some version of Windows such as 7, Vista, or XP.
    http://www.apple.com/itunes/download/
    As for importing or ripping music, he'll have to either use an external CD/DVD drive that is attached via USB or rip the songs to another PC you have with a built in CD/DVD drive.  Once you have imported them to the other computer, you can transfer the songs to an external hard drive or to his iTunes library via Home Sharing.
    If this isn't quite what you were looking for, please clarify.
    B-rock

  • I have a component like the following and it completely crashes the design view in flex builder

    I have a component like the following and it completely crashes the design view in flex builder.I can see anything in the layout. Everything compliles fine and looks normal in the outline view. Any ideas whats wrong. If I remove the AdvancedDataGridColumnGroup's all looks fine
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Panel x="353" y="34" width="1159" height="505.7" maxWidth="663" allowDrag="true" allowResize="true" allowClose="true" allowMaximize="true" allowMinimize="true" resizeEffect="Resize" moveEffect="Move" close="parent.removeChild(this)" maxHeight="680" layout="absolute" title="Back office list" xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:AdvancedDataGrid id="deals" displayItemsExpanded="true" dataProvider="{tradesResult}" width="100%" height="373" sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
            <mx:columns>
                <mx:AdvancedDataGridColumn width="75">
                </mx:AdvancedDataGridColumn>
                <mx:AdvancedDataGridColumnGroup headerText="Client side">
                    <mx:AdvancedDataGridColumn dataField="Reference" headerText="Mon Ref" width="60" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="clientside" headerText="MC Pr" textAlign="center" wordWrap="true" width="70">
                    </mx:AdvancedDataGridColumn>
                </mx:AdvancedDataGridColumnGroup>
                <mx:AdvancedDataGridColumnGroup headerText="Bank side">
                    <mx:AdvancedDataGridColumn dataField="bankDealRef" headerText="Bank Ref" width="70" editable="true" wordWrap="true" dataTipFunction="dataTipFuncNotes" showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="Premium2" headerText="Bank Pr" width="55" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                </mx:AdvancedDataGridColumnGroup>
            </mx:columns>
        </mx:AdvancedDataGrid>
    </mx:Panel>

    Nikos,
    When using grouped columns you should change the <mx:columns> to <mx:groupedColumns>, I ran this example in a sandbox app and it works fine.
    EXAMPLE:
    <mx:AdvancedDataGrid id="deals" displayItemsExpanded="true" dataProvider="{flatData}" width="100%" height="373"
            sortExpertMode="true" variableRowHeight="true" headerStyleName="smallHeader" editable="false" fontWeight="normal">
           <mx:groupedColumns>
                <mx:AdvancedDataGridColumn width="75">
                </mx:AdvancedDataGridColumn>
                <mx:AdvancedDataGridColumnGroup headerText="Client side">
                    <mx:AdvancedDataGridColumn dataField="customer" headerText="Mon Ref" width="60" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="product" headerText="MC Pr" textAlign="center" wordWrap="true" width="70">
                    </mx:AdvancedDataGridColumn>
                </mx:AdvancedDataGridColumnGroup>
                <mx:AdvancedDataGridColumnGroup headerText="Bank side">
                    <mx:AdvancedDataGridColumn dataField="revenue" headerText="Bank Ref" width="70" editable="true" wordWrap="true"
                        showDataTips="true" textAlign="center"/>
                    <mx:AdvancedDataGridColumn dataField="cost" headerText="Bank Pr" width="55" editable="true" wordWrap="true" showDataTips="true" textAlign="center"/>
                </mx:AdvancedDataGridColumnGroup>
            </mx:groupedColumns>
        </mx:AdvancedDataGrid>
    HTH,
    Kenny Yates

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • How can u change the desktop and taskbar to a classic windows view

    how can u change the desktop and taskbar to a classic windows view in 8.1

    Hi,
    If you mean to customize the desktop, you can use themes, desktop backgrounds, window colors, and screen savers to personalize your desktop.   
    If you want some free themes and desktop backgrounds to use, there are lots to choose from in the
    Personalization Gallery.
    To learn more about personalizing the desktop, see
    Get started with themes.
    Best regards
    Michael Shao
    TechNet Community Support

  • How to find out the plants and storage location for a given company code

    hi
    How to find out the plants and storage location for a given company code

    Hi
    Check for Assignem,ent of Plant & compnay code in OX18
    & for Combination of Plant & Storage location in OX09
    The total org structure can be viewed in EC01 - Click on Structure  -> navigation
    & Continue, Click on the Compnay code & the wole structure can be viewed
    Thanks & Regards
    Kishore

  • My itunes can not upgrade. it is looking for athe Itunes.MSI file, but it is unable to find it on the C:drive.  How do I correct the error, and reinstall Itune for my Iphone, Ipad and Ipod?

    My itunes can not upgrade. it is looking for athe Itunes.MSI file, but it is unable to find it on the C:drive.  How do I correct the error, and reinstall Itune for my Iphone, Ipad and Ipod?

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

Maybe you are looking for

  • Change of UOM in PO after GR

    Hi Friends, One of our client wants to change the UOM in PO. But they have done GR for part quantity. So it is not allowing to change UOM. So I have told them to reverse the GR. After reversing the GR if it not allows to change the UOM what can I do?

  • Can this be fixed?

    I'm on 9i R2 Patch 7. We use CBO and the Statistics on all the Tables are current. It happens daily. The explain plan for the query below uses a HASH JOIN, does not make use of Indexes and takes 30 seconds to complete. SELECT Column1, Column2 FROM Ta

  • Creating the DDL -- the SQL is the same regardless if the 1 side of the 1:M

    is optional or not. Example: Entity STUDENT has Student_ID as UID and a Student_Name. Entity LOCKER has LOCKER_ID as its UID and a location. I created a sample 1:M relation between STUDENT and LOCKER where each STUDENT may have zero or more LOCKERs a

  • Concurrency issues

    Hi everyone, I have posted various threads on this issue, but to no avail. I am going to simple it dowd a lot. i have a view object that is created with the query, so that all values are calculated, except for two which are transient. If only one per

  • Where do i send my zen micro to get fi

    hi, a few days ago my zen micro got wet(realy wet) and now stops at the first creative screen and only goes that far when pluged into the computer well anyway does any one know where i can send it to get fixed? if you do it would be a big help.