Change viewable columns in Administration > Users

Bruce Williams asked on June 6, 2014 12:46

Anyway we can change the user columns in the initial gridview? starting is user name, fullname, email, nickname, created, enabled.

i want to add First and last name.

what files do we modify?

Recent Answers


Brenden Kehren answered on June 6, 2014 14:27

I believe you'd have to modify this XML definition. Make sure you don't remove any columns simply because there could be code behind relying on a column to be there.

~/CMSModules/Membership/Pages/Users/User_List.xml
1 votesVote for this answer Mark as a Correct answer

Jakub Oravec answered on June 10, 2014 04:05

Hi,

definition of Users grid is in ~/CMSModules/Membership/Pages/Users/User_List.xml as Brenden mentioned. This file defines presentation of users in grid. More details on unigrid definition can be found here

That's displaying part. But you will need to add those columns also to the query getting records from DB. If you are using Kentico 7 simply add column names to Columns property of unigrid in ~/CMSModules/Membership/Pages/Users/User_List.aspx file.

If you are running Kentico 8 you can find the list of columns the grid gets from the DB in ~/Old_App_Code/CMSModules/Membership/Users/UserListExtender.cs file (OnInit method, line starting with Control.Columns).

0 votesVote for this answer Mark as a Correct answer

Guenter Michalke answered on July 30, 2018 16:01 (last edited on July 30, 2018 16:02)

Hi

Can You tell me how it works on Kentico 10. Unfortunately I can't find the file UserListExtender.cs there.

I added a custom field. And want to display it in the user grid. How can I implement it? And is this the right way to go with a Kentico update in the future?

thanks in advance

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.