kentico_michal
-
2/2/2011 3:02:52 AM
RE:Add Fields to Document Library Web Part Grid
Hello,
You will need to add your new field into definition of columns that will be selected, so please find gridDocuments_OnDataReload method in ~\CMSModules\DocumentLibrary\Controls\DocumentLibrary.ascx.cs file and add you new field as an input parameter of MergeColumns method:
string string columns = SqlHelperClass.MergeColumns( DocumentHelper.GETDOCUMENTS_REQUIRED_COLUMNS, "NewField, FileDescription, NodeAlias, ...
Last thing you need to do is to add new column into ~\CMSModules\DocumentLibrary\Controls\DocumentLibrary.xml file:
<column source="NewField" caption="NewField" wrap="false" > </column>
Best regards, Michal Legen
|