Telerik Forums
UI for WinForms Forum
5 answers
247 views
Hi. 
With radPanorama I have the option of a smooth scroll (simulation of scroll with a gesture) to desired element from the code?
Thank you.
Dimitar
Telerik team
 answered on 24 Jan 2018
4 answers
268 views

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.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jan 2018
1 answer
189 views

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

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jan 2018
3 answers
802 views

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.

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jan 2018
14 answers
269 views

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

Marc
Top achievements
Rank 1
Veteran
 answered on 24 Jan 2018
4 answers
921 views

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; }
    }

Dimitar
Telerik team
 answered on 24 Jan 2018
2 answers
106 views

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

Toni
Top achievements
Rank 1
 answered on 24 Jan 2018
1 answer
121 views
Hi
There is a problem with Arabic sentences ... Arabic words appear in the opposite direction.
Can you help me?
Thank you so much
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jan 2018
4 answers
1.2K+ views

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.

Chris Kirkman
Top achievements
Rank 1
 answered on 23 Jan 2018
1 answer
137 views

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!

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Jan 2018
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
BarcodeView
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
ToolbarForm
NotifyIcon
DateOnlyPicker
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?