Telerik Forums
UI for WinForms Forum
1 answer
139 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
158 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.0K+ 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
1 answer
108 views

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.

Dimitar
Telerik team
 answered on 23 Jan 2018
2 answers
137 views
I'm trying to clear out the text entered in a RadDropdownlist while the popup is open by doing a "shift + home" to select all text but instead it causes the first dropdown item to get selected from the popup window.  Pressing the "end" key will select the last item from the list.  I've tried everything I could think of to suppress this but nothing seems to work. What can I do?
Dave Wolf
Top achievements
Rank 1
Iron
 answered on 22 Jan 2018
1 answer
98 views

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

 

 

 

 

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jan 2018
1 answer
101 views
Moving relation in diagram and when move shape its fix. what shall i do
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jan 2018
6 answers
340 views
Hi, I have a RadDiagramShape that contains .Text and a DiagramShapeElement.Image. When the shape is resized, only the bounds of the RadDiagramShape change: Both the image and the text stay the same size. What is the best approach for both the image and the text to increase and decrease in size with the shape bounds? 
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 22 Jan 2018
9 answers
709 views
Hi,

I'm creating new themes for the rad controls.Here I'm not able to apply the alternate row color to the resultant[result displayed in gridview] grid view.When a particular row is selected it is applied with a user selected color for it,when user clicks on next row,then the previous selected row is occupied with default color and the selected row is applied with the user selected color.

please reply ASAP

Thank you,
Pradeep
Hristo
Telerik team
 answered on 22 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
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?