this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "Id", "ParentId");
Did I do something wrong or is this a known bug?
private
void
OrderHistory_GroupSummaryEvaluate(
object
sender, GroupSummaryEvaluationEventArgs e)
{
decimal
totalRevenue = 0;
foreach
(GridViewRowInfo row
in
e.Group)
{
totalRevenue += (
decimal
)row.Cells[
"RevenueValue"
].Value;
}
e.FormatString = String.Format(
"{0} : £{1:0.00}"
, e.Value, totalRevenue);
}
public ReceiptSplitWizard(String receiptNumber)
{
InitializeComponent();
trustReceivables = new BindingList<
CashReceivable
>();
trustDGV.DataSource = trustReceivables;
trustDGV.CellValidated += new CellValidatedEventHandler(trustDGV_CellValidated);
trustDGV.RowsChanged += new GridViewCollectionChangedEventHandler(trustDGV_RowsChanged);
... foreach loop here to add pre-existing receivables to the binding list to pre-populate it ...
}
void trustDGV_CellValidated(object sender, CellValidatedEventArgs e)
{
if (e.RowIndex == -1)
{
if (e.Column.UniqueName.Equals("trustTargetInvoiceNumberDGVTBC"))
{
CashReceivable receivable = CashReceivable.Clone(originalReceivable);
receivable.TXSet = null;
receivable.BillInvoiceNo = (String)e.Value;
receivable.CheckAmount = null;
receivable.BusinessFunction = GetBusinessFunction(receivable.BillInvoiceNo);
trustReceivables.Add(receivable);
trustDGV.MasterView.TableAddNewRow.CancelAddNewRow();
trustDGV.CurrentRow = trustDGV.Rows[trustDGV.Rows.Count - 1];
trustDGV.CurrentColumn = trustDGV.Columns[1];
}
}
}
void trustDGV_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)
{
GridViewDataRowInfo row = (GridViewDataRowInfo)e.NewItems[0];
CashReceivable receivable = (CashReceivable)row.DataBoundItem;
// if it's been distributed, then gray it out and set it readonly
if (receivable.TXSet != null)
{
foreach (GridViewCellInfo cell in e.GridViewTemplate.Rows[e.NewStartingIndex].Cells)
{
cell.Style.Font = new Font("Segoe UI", 8.25F, FontStyle.Italic);
cell.Style.ForeColor = Color.SlateGray;
cell.ReadOnly = true;
}
}
}
Good Morning.
I doubt the problem is regarding the control "Telerik.WinControls.UI.RadScheduler" componet of the software.
I will explain with details. i did a several checks
1. 9:05 - 9:07
2. 9:07 -8:09
3.9:10-8:11
I'm handling the range of one hour as follows:
(this.schScheduler.ActiveView as SchedulerDayViewBase).RangeFactor = ScaleRange
.OneHour.
It doesn’t work correctly because when I open the calender RadScheduler only show the two appointments 9:05 - 9:07 and 9:07 -9:09 and the other is that I did is hidden..
Detalis
when I open the Calender RadScheduler, it's not able to show the three appointments in the range established - it only shows one 9:05 - 9:07 and the appointment between 9:07-9:09 is hidden.. the only way to see this appointment is to drop the appointment made between 9:05 - 9:07. After that, the control shows the second appointment 9:07-9:09 - I think it is a bug.. Its a big problem because my company is selling this product and maybe its doesn't work correctly.
Perhaps there is a way to solve it? By the way, I made the tests with WinControl 2010
thanks for your help.