custom module grid layout only showing one column

bert limerkens asked on March 3, 2017 12:15

Hey guys,

I have an issue with the unigrid for a custom module. In the code below you can see my code for showing the grid. My problem is that is only shows the first column. The others are not shown.

grid>
  <query name="products.customproducts.selectallproducts" columns=""></query>
  <objecttype name="products.customproducts" columns=""></objecttype>
  <actions>
    <action name="Edit" caption="$General.Edit$" fonticonclass="icon-edit" fonticonstyle="allow"/>
    <action name="#delete" caption="$General.Delete$" fonticonclass="icon-bin" fonticonstyle="critical" confirmation="$General.ConfirmDelete$" />
  </actions>
  <columns>
    <column source="ProductName" caption="Name" width="70%" />
    <colum source="Brand" />
    <colum source="Type" />
  </columns>
</grid>

Any ideas where things are going wrong? I followed the documentation available.

Correct Answer

Anton Grekhovodov answered on March 3, 2017 13:23

You have mistakes here colum instead of column

<colum source="Brand" />
<colum source="Type" />
1 votesVote for this answer Unmark Correct answer

Recent Answers


Anton Grekhovodov answered on March 3, 2017 13:03

Hi,
Have you tried to add captions for them?

0 votesVote for this answer Mark as a Correct answer

bert limerkens answered on March 3, 2017 13:12

Yes, the columns don't show.

0 votesVote for this answer Mark as a Correct answer

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