Page 1 of 1

Datagrid Default Column

Posted: 26 Feb 2015, 21:00
by aschalund
I am working with the candidates page and I am looking to change the default columns that populate. When I modify
Code: Select all
 $this->_defaultColumns = array(
            array('name' => 'Attachments', 'width' => 31),
            array('name' => 'First Name', 'width' => 75),
            array('name' => 'Last Name', 'width' => 85),
            array('name' => 'City', 'width' => 75),
            array('name' => 'State', 'width' => 50),
            array('name' => 'Owner', 'width' => 65),
            array('name' => 'Modified', 'width' => 60),
            array('name' => 'Added To List', 'width' => 75),
            
        );
Nothing actually changes it still holds the original set of columns and there widths that are declared in 'lib/Candidates.php'. Am I missing something?

Thanks

Re: Datagrid Default Column

Posted: 10 Mar 2015, 21:48
by manuel
Hi,

When I try this on my test site the things do change.

When I delete: "array('name' => 'City', 'width' => 75)," it's gone when I reset to the standard colums.
When I change the "with" it actually changes.

Are you sure you uploaded your edited file before testing.

Re: Datagrid Default Column

Posted: 12 Mar 2015, 16:00
by aschalund
Alright so I noticed that the changes do not reflect for the Root account but they do show for everyone else. Have not looked into why this is happening but atleast it is working as designed.

Thanks for the reply