Data Grid 2 Loosing Custom Content (Filter)

hi community,  i have a problem again with the data grid 2 widget (my favorite widget). in one app i use the data grid to display data. some columns just display the attribute, in others i use custom content, so i can insert e.g. containers with conditional visibilty or on click actions, or also work with dynamic labels. when i first call the table everything works great, but as soon as i sort or use filters i often have display problems. some labels or containers are not displayed. it always varies if and which columns cause problems.  the problems always occur only with custom content columns. (see screenshots) does anyone of you have the same problem and knows a solution? i am happy about feedback.   Problem Settings   Content/Columns  
3 answers

Hi Marc, 

Have you tried updating to the latest MTS version (9.6.latest)?

I believe this issue has been resolved in 9.6.7, specifically, by this fix:

  • We fixed an issue where re-rendering a widgets property linked to the datasource of a pluggable widget no longer rendered its contents properly.


Don’t use the data view inside the custom content column. Instead of the data view use the list view and then try it.


You are stretching this new widget to and over its limits. Lovely. Pitty that it does not hold up and very unlikely that this gets resolved anytime soon. I kind of expect this behavior to be normal again if you do not use visibility in the Datagrids. So just remove the visibility-settings and try again. Yes, you will see multiple buttons and that is not what you want, but just as experimental test. Does it indeed show the buttons?

Another test: what happens if in you second image ‘with filter’, you chang the sort-order of Status. Is still line 1 correctly showing the buttons and line 2 still empty, or did that change too?

Can you perhaps add a widget and use the dynamic class to add a different class based on the status-value. And style the button based on that?