
I've successfully bound data to the grid; however, when the model bound to the grid changes the results don't show up in the grid until I give focus to that row. For the purposes of this issue, don't worry about the meaning of the "scans" and "_snc" objects as they have nothing to do with the issue.
Here is where I successfully bind to a model called "ComparisonScansViewModel" which has a public "List<ComparisonScanViewModel> Scans" property.
await Task.Factory.StartNew(() =>
{
// source scans for comparison
_model = new ComparisonScansViewModel(_snc, scans);
});
BatchComparisonGrid.DataSource = _model.Scans;
Here is the model code (loads up fine)
public class ComparisonScansViewModel
{
public ComparisonScansViewModel(SNC snc, List<Scan> scans)
{
Scans = new List<ComparisonScanViewModel>();
scans.ForEach(s =>
{
Scans.Add(new ComparisonScanViewModel()
{
Id = s.ScanId,
Type = snc.Values.GetInstance(s.Type).Text,
Field = s.FieldSize.ToString(),
Energy = s.EnergyForDisplay,
Depth = s.Depth,
});
});
}
public List<ComparisonScanViewModel> Scans;
}
public class ComparisonScanViewModel
{
public int Id { get; set; }
public string Type { get; set; }
public string Field { get; set; }
public string Energy { get; set; }
public decimal? Depth { get; set; }
public decimal Gamma { get; set; }
}
In the code below I am hard coding the value of a property in my model named "Gamma". When the grid is first shown this value is '0' and when the value changes in a dropdownlist I am going to properly update the "Gamma" value; however, for the purposes of debugging I am simply hard coding for now.
private async void ReferenceProjectDropDownList_SelectedValueChanged(object sender, EventArgs e)
{
if (null != _model)
{
BatchComparisonWaitingBar.Visibility = Telerik.WinControls.ElementVisibility.Visible;
BatchComparisonWaitingBar.StartWaiting();
BatchComparisonStatusLabel.Text = "Calculating gamma...";
// calculate the passing % (gamma) for each item in the table
await Task.Factory.StartNew(() =>
{
for (int i = 0; i < _model.Scans.Count; i++)
{
//Thread.Sleep(500);
ComparisonScanViewModel sm = _model.Scans[i];
sm.Gamma =250m;
}
});
BatchComparisonWaitingBar.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
BatchComparisonWaitingBar.StopWaiting();
BatchComparisonStatusLabel.Text = "Ready";
}
}
When this event above is fired, the values in the model ARE updated; however, the results of this update are NOT reflected in the UI. I have to scroll through the grid view and/or click on a row to see the value change in the grid.
Hi Team Telerik,
I have a issue with the expression in Telerik winforms R3 2017 SP1. When i declared 2 columns type of decimal and i need show the result in another column with 8 decimals (0,00000000 or {"0:N8"}), this result auto round de last decimal to next value. Please, can you tell me how can i fix that.
I attach an image of the problem.
Thanks!


Hello team,
in my application i have a RadGridView Controls. One of the columns in the grid is a checkboxcolumn.
When the grid is loaded i can check and uncheck the cells in the checkboxcolumn but when it comes to evaluation all values of the checkbox cells are null.
Ive found several sources about the radgridview and checkbox column but they didnt help me. Can you guide me on this topic.
Thanks and best regards.

dear supporter;
there is a following problems related to Telerik Diagram tools:
i don't know why the scroll of diagram windows disappeared when i apply "right to left" property for diagram
and also why its relations/connectors moved outside and disconnected When I apply "right to left" Property
for diagram's shape
.it is interesting when i zoom in or zoom out ,the last problem is solved.
would you mind helping me in this case and give me solution .
Regards.
Nafiseh



