Hello
I am using a RadGridview (2012 Q1) and I wanted to know if there was a way to read/validate the group's total after a modification.
Format Product Pct
Can 1000 0.2
Can 1001 0.6
Can 1002 0.2
Plas 1003 0.8
Plas 1004 0.2
If a user modifies a percentage, I would like to wait saving to the database until he corrects another product to make sure the total is 100%
I am setting up my Gridview like this:
In another section of my program, I use radGridView1_CellValidating to save data on a modification (if e.OldValue.ToString() != e.Value.ToString()), but in that case, I didn't need any validation. In this scenario, I do need validation.
Is there a way to use the features of the current gridview to edit directly, or would it be better to build a new form with my format isolated, and fully validating on a button press? Or another workaround I haven't considered?
Thanks.
Philippe
I am using a RadGridview (2012 Q1) and I wanted to know if there was a way to read/validate the group's total after a modification.
Format Product Pct
Can 1000 0.2
Can 1001 0.6
Can 1002 0.2
Plas 1003 0.8
Plas 1004 0.2
If a user modifies a percentage, I would like to wait saving to the database until he corrects another product to make sure the total is 100%
I am setting up my Gridview like this:
radGridView1.GroupDescriptors.Add(
new
GridGroupByExpression(
"Format Group By Format"
));
GridViewSummaryRowItem item1 =
new
GridViewSummaryRowItem();
item1.Add(
new
GridViewSummaryItem(
"pct"
,
"Total: {0:F2} "
, GridAggregateFunction.Sum));
In another section of my program, I use radGridView1_CellValidating to save data on a modification (if e.OldValue.ToString() != e.Value.ToString()), but in that case, I didn't need any validation. In this scenario, I do need validation.
Is there a way to use the features of the current gridview to edit directly, or would it be better to build a new form with my format isolated, and fully validating on a button press? Or another workaround I haven't considered?
Thanks.
Philippe