Hi Telerik,
I posted a thread a couple of days ago and I thought I had solved my problem but turns out I just moved it.
My problem now is that I have template columns that contain buttons and others that have text that needs to be on a different color depending on the status of the item.
So basically, I used to bind my grid using the 'simple way' (Create data table, add source to the grid and bind)
Once it was bound, I would go through each rows, set the text to the button and set the appropriate CSS on the text label.
Since I needed to sort and to filter, I saw that I could use the 'OnNeedDataSource' event, which is the second way to bind a grid.
This worked and I could sort/filter my grid.
But now, after the event is called, I tried to change the CSS and the text again but it says that the grid doesnt have any items.
I believe its because it wasnt bound (even though I can see the rows once everything is done)
I posted a thread a couple of days ago and I thought I had solved my problem but turns out I just moved it.
My problem now is that I have template columns that contain buttons and others that have text that needs to be on a different color depending on the status of the item.
So basically, I used to bind my grid using the 'simple way' (Create data table, add source to the grid and bind)
Once it was bound, I would go through each rows, set the text to the button and set the appropriate CSS on the text label.
Since I needed to sort and to filter, I saw that I could use the 'OnNeedDataSource' event, which is the second way to bind a grid.
This worked and I could sort/filter my grid.
But now, after the event is called, I tried to change the CSS and the text again but it says that the grid doesnt have any items.
I believe its because it wasnt bound (even though I can see the rows once everything is done)