Hi
i want if colum.segment value = 1 then color of colum.bookid should be blue else color of whole line should be yellow
if (Result != null)
{
foreach (var colum in Result)
{
string StudentName = "";
View_SessionDetail Res = bALSessionPlan.GetSessionDetail(Convert.ToInt32(colum.SessionPlanID));
ZoomMeeting Zoom = bALZoom.GetZoomMeetingDetail(Convert.ToInt32(colum.SessionDeliveryCalendarID));
htmlTable.Append("");
htmlTable.Append("" + colum.SessionDeliveryCalendarID + " ");
htmlTable.Append("" + colum.BookID + " ");
htmlTable.Append("" + colum.SessionID + " ");
htmlTable.Append("" + colum.MentorID + " ");
htmlTable.Append("" + colum.Segment + " ");
htmlTable.Append(" ");
}
}
Thanks
Rajkiran SwainPosted Jun 1, 2023, 6:21 PM
Amit MohantyPosted Jun 1, 2023, 9:32 AM
Check this example:
Ramco RamcoPosted Jun 1, 2023, 8:19 AM
Hi Amit
Is it possible that thru Javascript it can be done . It is difficult to change condition evaluation .
Thanks
Ramco RamcoPosted Jun 1, 2023, 8:08 AM
Hi Amit
I have condition colum.segment gets evaluated later on but Book Id column is displayed before
Thanks
Amit MohantyPosted Jun 1, 2023, 7:52 AM
Try this