Telerik Forums
UI for WinForms Forum
4 answers
348 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
242 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
969 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
327 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
1.0K+ 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
151 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
163 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.3K+ 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
178 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
7 answers
1.1K+ views
Hello!
I'm using RadDropDownList control in DropDown and SuggestAppend mode. I have a databound collection of customers (simple object with properties Id, Name, Phone, Email etc).

I've figured out how to implement "contains" search with:
ddlCustomers.DropDownListElement.AutoCompleteSuggest.SuggestMode = SuggestMode.Contains;

But now I need to search not only by customer Name, but by Phone too (and maybe by Email in the future).
I think that I need to implement my own suggest helper and inherit it from AutoCompleteSuggestHelper.
Am I right? If so, which methods should I override? Or maybe there is more simple solution here?
Thank you in advance.
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)
Form
Chart (obsolete as of Q1 2013)
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?