| Students | Total points | @x.AssignmentName |
|---|---|---|
| @x.FirstName @x.LastName | @totptsawd/@totptspbl | @x.PointsAwarded /@x.PointsPossible |
convert table into webgrid
how do i convert this table into webgrid
vidhyaPosted Jul 15, 2013, 7:42 AM
Iftikar HussainPosted Jul 15, 2013, 7:37 AM
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 7:33 AM
if the student does not have corresponding assignment leave as blank otherwise display the value for particular student.
Iftikar HussainPosted Jul 15, 2013, 7:21 AM
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 7:15 AM
vidhyaPosted Jul 15, 2013, 7:15 AM
Iftikar HussainPosted Jul 15, 2013, 6:59 AM
Regards.
Iftikar
vidhyaPosted Jul 15, 2013, 6:43 AM
Instead of column @item.PointsAwarded/@item.PointsPossible i need to display in row.
i need output like this
students totalpoints newassignemnt testing assignment
raj kumar 30/55 10/20 10/15 10/20
but it displays like this
students totalpoints newassignemnt students totalpoints testing students totalpoints assignment
raj kumar 30/55 10/20 raj kumar 30/55 10/15 raj kumar 30/55 10/20
raj kumar 30/55 10/20 raj kumar 30/55 10/15 raj kumar 30/55 10/20
raj kumar 30/55 10/20 raj kumar 30/55 10/15 raj kumar 30/55 10/20
3 assignments there so i displays 3 rows. but i need to display in a single row.
Iftikar HussainPosted Jul 15, 2013, 6:33 AM
cols.Add(grid.Column(format:@
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 6:32 AM
instead of column i need to add as row.
how to do this?
vidhyaPosted Jul 15, 2013, 6:21 AM
when i add this code
i get error
Compiler Error Message: CS1026: ) expected
Iftikar HussainPosted Jul 15, 2013, 6:10 AM
cols.Add(grid.Column(format:@
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 6:05 AM
cols.Add(grid.Column(format:@
but i need the output as
10/20
so i used like this
cols.Add(grid.Column(format:@
but i get the output as
10+"/"+20
Iftikar HussainPosted Jul 15, 2013, 6:00 AM
cols.Add(grid.Column(format:@
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 5:59 AM
cols.Add(grid.Column(format:@
but i need
cols.Add(grid.Column(format:@
vidhyaPosted Jul 15, 2013, 5:52 AM
Iftikar HussainPosted Jul 15, 2013, 5:45 AM
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 5:40 AM
Parser Error Message: The code block is missing a closing "}" character. Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.
cols.Add(grid.Column(totptsawd,header:"Total Points");
Iftikar HussainPosted Jul 15, 2013, 5:31 AM
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 5:28 AM
It shows error like this
Iftikar HussainPosted Jul 15, 2013, 5:09 AM
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 5:02 AM
List
foreach (GradeBook.StudentGradeBook x in Model.Student)
{
cols.Add(grid.Column(x.FirstName, header: "student"));
cols.Add(grid.Column(totptsawd,header:"Total Points");
}
}
How do i concatenate the 2 string as x.firstname x.lastname for column student.
i need to use local variable forcolumn total points.
i cant use like this cols.Add(grid.Column(totptsawd,header:"Total Points");
Iftikar HussainPosted Jul 15, 2013, 4:39 AM
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 4:37 AM
Iftikar HussainPosted Jul 15, 2013, 4:26 AM
Regards,
Iftikar
vidhyaPosted Jul 15, 2013, 4:11 AM
raj kumar 30/55 10/20 10/15 10/20
Iftikar HussainPosted Jul 15, 2013, 2:56 AM
Could please share the output (application output) of this table?
Regards,
Iftikar