Hello.
I need a radcheckbox in a button.
How can i disable the border from the checkbox programaticly?
I can“t find it on the sourcecode.
Thank you.
Hi, I have a single tree list which contains several top level nodes, each node has multiple children. What I want to do is to only allow movement of nodes within only within the list of sibling nodes.
The effect that I'm after is something similar to the first animation in https://stackoverflow.com/questions/45838579/separator-line-drag-drop-tree-nodes-c-sharp-winforms.
I have set my tree view AllowDragDrop to true and this allows me to move items around however it is possible to move an existing into a sibling node and generate a sub-tree.
Is this possible and if so, how ? Also is it possible to override the drawing of the "insertion point" ?
Regards
Toby
Hi.
I want to show Custom toolTips for each item in rddlist.
i can use visualItem, but thats not suitable. visualitem.Text, only show item text. I want to set Custom Text for each item. like:
for items[0] = "text1", items[1] = "not working", items[2] = "it's too easy" and etc.
when rddlist popupOpened, and user,moving mouse on any item, tooltip must be show.
Hey,
I'm using the dock.
It is possible to move tabs out of the TabStrip.
If a user press the close-Button on the tab, I want to dock the tab back to the DocumentTabStrip.
How can I do this?
Regards, Marc
Once setting the .DataSource of a dropdownlist to a view model. How can I immediately tell the dropdownlist to select a specific value within the model?
// UI
ReferenceProjectDropDownList.DisplayMember = "Name";
ReferenceProjectDropDownList.DataSource = new ProjectsViewModel(snc.Measuring.Projects.ToList()).Projects;
if (null != project)
{
ReferenceProjectDropDownList.SelectedItem = ???
}
// view model
public class ProjectsViewModel
{
public ProjectsViewModel(List<ScanProject> projects)
{
Projects = new List<ProjectViewModel>();
projects.ForEach(p =>
{
Projects.Add(new ProjectViewModel()
{
Id = p.Id,
Name = p.Name,
});
});
}
public List<ProjectViewModel> Projects;
}
public class ProjectViewModel
{
public int Id { get; set; }
public string Name { get; set; }
}
Hi
How could I adjust in VB.NET the backcolor of all my child templates?
I mean the property equivalent to TableElement.BackColor for MasterTemplate
I point that area in my attached file
Thanks in advance
Kind regards
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!