Block Username Dropdown list in Timesheet

2 posts, 0 answers
  1. Matteo Gugliotta
    Matteo Gugliotta avatar
    16 posts
    Member since:
    Oct 2006

    Posted 30 Oct 2014 Link to this post

    Hi Team,
    I want to disable the users dropdown list in Timesheet in order to forbid users
    to see other peoples timesheet.

    I followed an approach similar to the one suggested here:
    I found that in C:\Program Files (x86)\Telerik\TeamPulse\wwwroot\Areas\View\Views\Timesheet\Index.cshtml
    the dropdown list is created by: @Html.Partial("UsersList",

    But even if I:
    ·        comment the line
    ·        restart the site
    ·        refresh the app pool
    ·        give a ctrl+F5

    The list does not disappear.

    What can I do to disable the selection?

    Why even if I comment the row the combobox does not disappear?

    Best regards,
  2. Ivan
    Ivan avatar
    73 posts

    Posted 31 Oct 2014 Link to this post

    Hello Matteo,

    Currently there is no option in TeamPulse to disable this field.

    Anyway you can modify a file to disable the dropdown. You will need to go and open this file - "C:\Program Files (x86)\Telerik\TeamPulse\wwwroot\Scripts\wirejs\timesheet\timesheetController.js".
    The file is minified, so it may look a little bit ugly. You need to find - dataValueField:"id"  and add ",enable:false" after that, it must look like this:


    This will disable the dropdown. Please note that the dropdown cannot be removed because the information for the current user is needed. Also this will not completely fix your problem, because any user can make an api call and will receive the timesheet information for others.

    Also one more thing. All users will need to clear their browser cache, so they can download the modified "timesheetController.js".

    Also take in mind that if you upgrade TeamPulse you will have to make the same changes again.

    I hope that the information is useful for you. If not feel free to contact us at any time.

Back to Top