Telerik Forums
UI for WinForms Forum
2 answers
324 views

I have a dropdownList that has the following:

DataSource: binds to a table with 2 columns (ID, Style)

DisplayMember: Is Set to "Style"

ValueMember: Is Set to "Style"

 

I have a binding source which binds to an model. One of its properties, "PartitionStyle" is a string value.

I set the dropdownList DataBinding.Text: BindingSource.PartitionStyle (Note, I did also try DataBinding.SelectedValue as well)

Now when I choose a value from the drop down list, the "PartitionStyle" property updates to that value which is great. So I save that model and close the form down. Now when I relaunch the form passing in that model to the bindingsource, the display or text of that dropdownlist does not have the correct value(has the index 0 value selected).

I've tried setting BindingSource.DataSource to that model, then BindingSource.ResetBindings, it doesn't work. All the rest of the controls that are NOT dropdownList are displaying correctly(textboxes have the correct values from the properties they are binded to, checkboxes as well).

Any help?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 25 Jun 2019
3 answers
527 views

Hello
Have problem with negative sign in grid with right-to-left =true

the negative numeric values are displayed like:
10-
20-
300-
instead of:
-10
-20
-300

I use decimal Column

Nadya | Tech Support Engineer
Telerik team
 answered on 25 Jun 2019
1 answer
206 views

I am looking for a way to put a arrow head on a line (Draw Shape).

Is there a way to do this, if not can I suggest it for a future release?

Dimitar
Telerik team
 answered on 24 Jun 2019
2 answers
138 views

Hello,

 

How can I filter enum from unwished values.

public enum StudentType
{
None,
Commercial,
Free,
Partial
}
 
public class Student
    {
        public Student()
        {
        }
 
        public StudentType StudentType { get; set; }   

 

///

}

 

I want to see in the DataEntry list only filtered values, ex. Commercial and Free.  

Emin
Top achievements
Rank 1
 answered on 24 Jun 2019
1 answer
124 views

Hi,

  In RadDateTimePicker the dd/MM/yyyy is not moving as individually but changing on whole. After entering the year it should not go back to date. Video link mentioned below with the issue & how we need it. Please check & share your inputs.

 

Issue Video link : https://suganya-gmail.tinytake.com/tt/MzU5ODI1Ml8xMDg3NTE3NQ

How we need it, Video link : https://suganya-gmail.tinytake.com/tt/MzU5ODI2MF8xMDg3NTE4NA

 

Dimitar
Telerik team
 answered on 24 Jun 2019
2 answers
363 views

 Grid position is not proper after reload the data. Winforms radgridview we are using.

Grid is having huge data with headers and child grids (Nested grid).

The issue is related to grid position after data save.

User will expand the grid including header ,child and do some edits and save the records.

After save the grid position we are trying to set from code. As a part of the save function grid data will be reloaded and then we are expanding the headers and child grid same as how the user kept.

Below two properties are not consistent before save and after data reload.

 rdGrid.VerticalScroll.Maximum
 rdGrid.VerticalScroll.Minimum

Other than setting these properties how we can set the grid position.  Thanks in Advance

 

 int position = vScroll.Maximum ;
 bool isMaxValue = position == vScroll.Maximum - vScroll.LargeChange + 1;

     if (isMaxValue)
                            {
                                position = vScroll.Maximum - vScroll.LargeChange + 1;
                            }
                            rdGrid.TableElement.VScrollBar.Value = position;

 

Dimitar
Telerik team
 answered on 24 Jun 2019
1 answer
172 views

In your example when you maximize the window, it does not stay fullscreen, but rather before the Windows Taskbar. how to do this?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2019
3 answers
394 views

Hi guys,

So I was following this telerik video on the 3 types of filtering (basic, excel-like, custom) :  https://www.telerik.com/videos/winforms/filtering-and-expressions-in-radgridview-for-winforms

I tried to apply the custom filtering using a textbox just like the video on my project, but I keep getting an error.  It's suppose to search all the rows and match what's in the textbox.  It'll run, but as soon as I try typing into the textbox, I get an error.  What am I doing incorrectly?

I've attached some pics of it and the code as well.  Thank you!

 

Here is my code:

 private void ProductionInstructionPrintPage_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dbMTISysDataSet.VW_ProdPrintPage' table. You can move, or remove it, as needed.
            this.vW_ProdPrintPageTableAdapter.Fill(this.dbMTISysDataSet.VW_ProdPrintPage);

            this.WindowState = FormWindowState.Maximized;

            radGridView1.EnableFiltering = true;
            radGridView1.EnableCustomFiltering = true;

        }

 

private void radTextBox1_TextChanged(object sender, EventArgs e)
        { 

            radGridView1.MasterTemplate.Refresh();
        }

        private void radGridView1_CustomFiltering(object sender, GridViewCustomFilteringEventArgs e)
        {
            // if the custom filter is empty, reset this row to its default state
            if (string.IsNullOrEmpty(radTextBox1.Text))
            {
                e.Visible = true;

                //reset each cell in this row
                for (int i=0; i<radGridView1.ColumnCount; i++)
                {
                    e.Row.Cells[i].Style.Reset();
                    e.Row.InvalidateRow();
                }

                return;
            }

            //if the custom filter is set, locate the cells in this row that match it and colorize them
            e.Visible = false;
            for (int i = 0; i<radGridView1.ColumnCount; i++)
            {
                string text = e.Row.Cells[i].Value.ToString();

                //locate and colorize matching cells
                if (text.IndexOf(radTextBox1.Text, StringComparison.InvariantCultureIgnoreCase) >= 0)
                {
                    e.Row.Cells[i].Style.CustomizeFill = true;
                    e.Row.Cells[i].Style.DrawFill = true;
                    e.Row.Cells[i].Style.BackColor = Color.PowderBlue;
                    e.Visible = true;
                }
                else
                {
                    e.Row.Cells[i].Style.Reset();
                    e.Row.InvalidateRow();
                }
            }
        }

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2019
2 answers
232 views

I would like my users to red mark images before sending to us.What I am looking for is where I would have buttons above the image for:

Draw Line
Draw Circle
Draw Rectangle
Draw w/Pen

And each would be preset to width of 2, color red. I do not want to use your Draw Dialogs at all.

I would also want to have Undo/Redo available without using your tool palette.

Save I can handle already since you have the SameImageAs method.

How can I do this please?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2019
2 answers
112 views

Hello Telerik Community , I just moved from devexpress to telerik and I can say it's really amazing for winforms.

I have some questions about licensing to make sure I don't get in trouble for copyright laws.

 

I'm developing an open-source app which is a 3D modeler and I used Telerik Rad Controls for Winform Trial to build GUI.

So here's the first question , Is it OK if I publish my app source in git-hub when it's using telerik trial version?

 

And second question , Can I share trial assemblies downloaded from official telerik website ?

 

In this case users and developers who use my app get nag screen and they need to buy full version of telerik right ?!

So it's OK to do that ?

 

Regards,

Mike Cell

Mike
Top achievements
Rank 1
 answered on 22 Jun 2019
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
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
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
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
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
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?