Then with Button1_onclick(), i remove the existing code and add
Dim i
Dim table
table = $("#DataTable1").DataTable()
For i = 0 To 10
If i Mod 2 = 1 Then
$(table.rows(i).nodes()).addClass("myColouryellow")
Else
$(table.rows(i).nodes()).addClass("myColourblue")
End If
Next i
For some reason, only every second row is coloured (yellow). Is something causing this?
I got the row colours working correctly using the classes. However, this is not practical for my app as i need to colour rows based on different groups and the colours are selected by the users and there can be many groups.
Can i create colour classes when i fill the grid for the numerous groups or is there some other way to colour the row?
For your code, i am still not sure how i can apply this to my Appstudio code. I cannot put my classes in projectCSS as there is an unknown number of colours to be used and the actual colour is not known yet, as the user adds what they require.
Do i need something like a cellrenderer used with the JqxGrids?