Dynamic column population

Hi

how can populate Kanban columns?
Apparently this does not work

<ej-kanban id="KanbanBoard" key-field="v_status" dataSource="@Model.lstTasks" action-complete="onCardDrop">
 
      <e-kanbancontext-menu-settings enable="true">
      </e-kanbancontext-menu-settings>
 
      <e-kanbancolumns>
          @foreach (var item in Model.lstStatus)
          {
          <e-kanbancolumn header-text="@item" key=@(new List<string>() { "@item" }) />
          }
      </e-kanbancolumns>
      <e-kanbanfield primary-key="n_id" />
      <e-kanbancard-settings template="#cardtemplate">
      </e-kanbancard-settings>
  </ej-kanban>
Thank you in advance for the help
George


2 Replies

GR George Rossopoulos January 30, 2018 08:49 AM UTC

Hi

I found it!!! I used the columns javascript method.

Thank you
George


BS Buvana Sathasivam Syncfusion Team January 30, 2018 09:40 AM UTC

Hi George,  
 
Thanks for your update.   
 
We are glad to know that your problem is solved.  Please let us know if you need any assistances, we would be happy to assist you.   
  
Regards,  
Buvana S.  
 


Loader.
Up arrow icon