New topic Closed topic
avatar image
1
Page Builder: Mark record in Datalist as selected
By Created , last editted

Hi there,

I have a Data list that is fetching data. When I click on a row I want to change its color from white to primary. How should I do this.

I did manage to set a current record after click to a datacontainer of the same source model as the datalist that is placed below de datalist. I can see the model.id change when I click different rows in the data list.

I tried to place the datalist also in that Datacontainer, Then I added a conditional (default hidden) with the idea to do the following: show conditional when datalist.model.record.id = datacontainer.model.record.id. But this doesn't work because for some reason the Pagebuilder sees the two models with the same name as the same. So my condtional component is shown alsways becaus the Page builder validates is as: datalist.model.record.id = datalist.model.record.id

Looking forward to a solution for this


Hi there,

I have a Data list that is fetching data. When I click on a row I want to change its color from white to primary. How should I do this.

I did manage to set a current record after click to a datacontainer of the same source model as the datalist that is placed below de datalist. I can see the model.id change when I click different rows in the data list.

I tried to place the datalist also in that Datacontainer, Then I added a conditional (default hidden) with the idea to do the following: show conditional when datalist.model.record.id = datacontainer.model.record.id. But this doesn't work because for some reason the Pagebuilder sees the two models with the same name as the same. So my condtional component is shown alsways becaus the Page builder validates is as: datalist.model.record.id = datalist.model.record.id

Looking forward to a solution for this

Answers
Sort by:

This topic is closed.