Hi
I have RadGridView with editable checkbox column. I created custom summary row item which code i presented below.
public
class
CheckedRowsSummaryItem : GridViewSummaryItem
{
public
CheckedRowsSummaryItem(
string
name,
string
formatString, GridAggregateFunction aggregate)
:
base
(name, formatString, aggregate)
{ }
public
override
object
Evaluate(IHierarchicalRow row)
{
int
count = 0;
foreach
(GridViewRowInfo childRow
in
row.ChildRows)
{
try
{
if
((
bool
)childRow.Cells[
"chkBoxKol"
].Value)
{
count++;
}
}
catch
{ }
}
return
count;
}
}
My problem is that when I change the chceckbox state my custom row summary for the column is not refreshed until I change current row or current cell. I tried to set IsCurrent properity on false or rise EndEdit() method for the grid in CellBeginEdit event but these solutions not worked. How could I programmatically make my summary refresh to avoid changing current column by the user?
All the best