Telerik Forums
UI for WinForms Forum
4 answers
215 views
How can I print a radGridView with custom painting? See the attached image.
Dimitar
Telerik team
 answered on 28 Jun 2016
6 answers
282 views
i have a little function that will loop through an active view and unselect any cells that have been selected

        private void UnselectCells()  
        {  
 
            SchedulerMonthViewElement monthView = this.schRates.SchedulerElement.ViewElement as SchedulerMonthViewElement;  
            Telerik.WinControls.RadElementCollection childrenCollection = monthView.Children[1].Children;  
 
            foreach (MonthCellElement cell in childrenCollection)  
            {  
                if (cell.Header.Selected == true)  
                {  
                    cell.Header.Selected = false;  
                }  
 
                if (childrenCollection.IndexOf(cell) == 34)  
                { break; }  
            }  
        } 

but i would like something similar to unselect any appointments but cant seem to find a way?? something like the following.......

        private void UnselectAppointments()  
        {  
            foreach (IEvent appointment in this.schRates.ActiveView.Appointments)  
            {  
                 
                if (appointment.Selected == true)  
                {  
                    appointment.Selected == false;  
                }  
            }  
        } 

Any help is greatly appreciated,

Cheers,
Craig
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jun 2016
3 answers
530 views

I have a grid that contains a dropdown column as bellow:

GridViewComboBoxColumn type = new GridViewComboBoxColumn();
type.Name = "Type";
type.HeaderText = "Type";
type.ValueMember = "Id";
type.DisplayMember = "Type";
type.DataSource = new string[] {"A", "B", "C"};
type.DropDownStyle = RadDropDownStyle.DropDownList;
grid.Columns.Add(type);

Suppose the user adds two new rows and selects "A" from dropdown for the first row and selects "B" from dropdown for the second row. I don't know how I can save the grid and then load it later. I should say that I know how to use Linq to save data into SQL database, but I don't know how I can get the values that the user selected and how to load data into grid later. Please help me.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jun 2016
6 answers
380 views

Hello Telerik

I would like to have an editor in a GridView for selecting one business object (DataBase Key, Name, Code (like an EAN CODE) in a collection. As The name is also considered to be an unique Key, the editor is based on a textbox which display the name of a product. The textbox should have a autocomplete feature (suggest with a dropdown) but the suggestion should be based on the whole list of product filtered by the Name or the Code.

The editor is valid only if the text is matching a product name (return the matching DataBase key for the binding) or is empty (return a nullvalue for binding).

What is the best way to reach this objectif ? Should I start from a RadDropDownListEditor, a RadTextBoxControlEditor, a RadTextBoxEditor ?

Thanks for your support

Marco
Top achievements
Rank 2
Veteran
 answered on 27 Jun 2016
10 answers
120 views
Here is the problem I am having:

1. I created a simple RadForm called form1.cs and added a number of labels, panels and text boxes to it.  I run this form and everything is good.

2. I created a second RadForm called form2.cs and it extends form1.cs.  I run this form and everything works fine.

3. I add a RadListControl to form2.  I run this and the designer view of the form disappears, the program runs, when I exit the program I get an error stating "The designer loader did not provide a root component but has not indicated why."  and the designer view is gone.

4. I close form2.cs, rebuild the project and open form2.cs and it appears in the designer.   As soon as I make any code changes to form2.cs (even as simple as moving the locaiton of a control by one pixel), save and run the file I get the same error listed in step 3.

This only has happened to me with the RadListControl.  textboxes, labels, panels, manu bars, status bars, etc. do not exhibit this behavior.

I have a full solution I can provide that causes the problem.  Tried to open a support ticket but there is no option for the ListControl.  Let me know what I should try next.

BTW, Computer is HP laptop, Windows 7, latest winForms release (Q2 SP1 build 806), VS 2010 Ultimate.  I believe everyting Microsoft is at latest patch level.
Dimitar
Telerik team
 answered on 27 Jun 2016
1 answer
120 views

We have recently converted our controls from win form control to telerik control.

Now "_" is being shown for mnemonic all the time (without pressing Alt key).
Earlier when user press Alt key all the mnemonic get highlighted with _.
i want the same old visual style. 
Any help will be really helpful.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2016
8 answers
931 views
When I press a key inside a grid, a mnemonic outside the grid is activated, instead of the grid entering edit mode.
For instance, with a combo box column, I expect the first item starting with the key pressed to be selected.

To reproduce, add a grid view, and standard win forms button to a form.  Add the following code to the form:
public Form1()
{
    InitializeComponent();
    var list = new List<Data>();
    list.Add(new Data(1, "Apple"));
    list.Add(new Data(2, "Banana"));
    list.Add(new Data(3, "Orange"));
  
    var lookupList = list.ToList();
  
    radGridView1.MasterTemplate.AllowAddNewRow = false;
    radGridView1.MasterTemplate.AllowColumnChooser = false;
    radGridView1.MasterTemplate.AllowDeleteRow = false;
    radGridView1.MasterTemplate.AllowDragToGroup = false;
    radGridView1.MasterTemplate.EnableGrouping = false;
    radGridView1.ShowGroupPanel = false;
    radGridView1.Columns.Add(new GridViewComboBoxColumn("Key") { DataSource = lookupList, ValueMember = "Key", DisplayMember = "Value" });
    radGridView1.Columns.Add(new GridViewTextBoxColumn("Value"));
    radGridView1.DataSource = list;
  
    button1.Text = "&Button";
    button1.Click += button1_Click;
}
  
private void button1_Click(object sender, EventArgs e)
{
    RadMessageBox.Show(this, "Button Pressed");
}

Add the following class:
public class Data
{
    public Data(int key, string value)
    {
        Key = key;
        Value = value;
    }
  
    public int Key { get; set; }
    public string Value { get; set; }
}

Click on a combo box cell and type "b".  The button is activated, instead of selecting Banana in the combo.

Is this a bug?
Is there a work around?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Jun 2016
1 answer
360 views

I want to be able to set the backcolor for the chart itself with a gradient.  I can easily set the backcolor property but don't see away to control the gradient.  I see that in the property build under Edit UI Elements there is the RadChartElement.  Not sure how to get to that programmatically?  Please advise or let me know the correct way to accomplish this.

Thanks

Dimitar
Telerik team
 answered on 24 Jun 2016
9 answers
319 views

Hi

i use telerik 2015 q3 for winforms

i wanna change the shape of my labels. i have several labels and each of them must have their own shape.

i use the shape property in the in smart tag -> edit ui element -> root element -> shape

and select my predefiened shape and then change the border primitive shape and my label shape change successfully.

but when i use the create new shape instead of select predefined shape nothing happen and when i finish create new one in custom shape editor and click ok, no chnage apeare.

could you please tell me right way

Regard

Hristo
Telerik team
 answered on 22 Jun 2016
3 answers
207 views
In Microsoft Excel there is an option named Add Current Selection to Filter. Actually, in Excel, when you search a key in filter popup and click OK, then when you search another key in filter popup then there is an option named 'Add Current Selection to Filter'. I need something like this option in radGridView Excel Like Filtering. Please see the attached file.
Dimitar
Telerik team
 answered on 22 Jun 2016
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
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
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
BindingNavigator
Styling
Barcode
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
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?