Telerik Forums
UI for WinForms Forum
1 answer
131 views
I would like to do pattern fills in chart series bars rather than just colors. I gather that this is something that could probably be done with custom rendering but I was hoping you might have thought about this and have some sample code that you could show rather than me trying to reinvent the wheel.
Dimitar
Telerik team
 answered on 09 May 2016
1 answer
382 views

Hi,

I have a DateTime field in my table that is nullable.

How can I keep null value in my grid?

I would show empty cell when date is null, and user could insert a date or cancel a date that already exists.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 09 May 2016
1 answer
245 views

Hi to all,

I would create a structure like this:

  • MainForm (mdi)
  • PageView (outlook) dock.left
  • LayoutControlTabbedGroup
  • Every PageView contains a treeview (classic outlook approach)
  • When click a node of current pageview-treeview, it has to:
    • Create a LayoutControlGroupItem
    • Create a MyUserControl (relative to type of node)
    • Add MyUserControl to LayoutControlGroupItem
    • Add LayoutControlGroupItem to LayoutControlTabbedGroup

    Can I do this?

    Actually Imet this problem, when I try to add valuteUC to valuteLG it says me thatvaluteLG.Container = Nothing

    What I have to do?

    Dim valuteUC = New ValuteUserControl()
    Dim valuteLG = New LayoutControlGroupItem()
    valuteLG.Container.Add(valuteUC)
    MainLayoutControlTabbedGroup.Container.Add(valuteLG)

Dimitar
Telerik team
 answered on 06 May 2016
2 answers
121 views

Hello there!

 

The function of the control itself it's pretty straightforward, however, it seems that it does not have the ability of binding to a data source. Is there any possible workaround?.

Thanks in advance.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 May 2016
4 answers
286 views

Hi Folks,

I have a user control (WinForms) that has a radGridView placed on it.

I use it on my radForm as follows:

Declare the instance of the control as a member level variable

private UserctlItemMastGridView _gridview;

Then in the constructor of the form I set it up and:

_gridview = new UserctlItemMastGridView();
_gridview.Dock = DockStyle.Fill;
pnlAll.Controls.Add(_gridview);
_gridview.GridClicked += new EventHandler(this._gridview_GridClicked);

Which is fine. I have an event handler which fires when the grid is clicked.

The issue I have is the mouse-wheel scroll is not being fired or captured. Is there a way to raise an event for mouse scroll on the user control and pass it back to the form?

Many thanks,

Martin.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 May 2016
7 answers
217 views
Is this possible?

Thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 May 2016
6 answers
251 views

Hello,

I've multiple issues with the MultiColumn ComboBox:

1) Filtering the ComboBox with CompositeFilterDescriptor on multiple columns:

if the ComboBox is filtered and "return" is pressed, the selected/filtered values is only taken if the filter text represents the "DisplayMember" column.
So if you have 2 I (ID & NAME) and DisplayMember is NAME and ValueMember is ID and a CompositeFilter like this

RadMultiColumnComboBox1.AutoFilter = true;
RadMultiColumnComboBox1.EditorControl.FilterDescriptors.Clear();
CompositeFilterDescriptor compositeFilter = new CompositeFilterDescriptor();
compositeFilter.FilterDescriptors.Add(new FilterDescriptor("ID", FilterOperator.StartsWith, ""));
compositeFilter.FilterDescriptors.Add(new FilterDescriptor("NAME", FilterOperator.StartsWith, ""));
compositeFilter.LogicalOperator = FilterLogicalOperator.Or;
RadMultiColumnComboBox1.EditorControl.FilterDescriptors.Add(compositeFilter);

you can search/filter for ID/NAME, but if you search for ID and then press "return" the item is not selected and the text becomes empty. If you do the same but search for a name the item will be selected if you press "return".

I've managed to deal with this by overriding the ProcessReturnKey function, but then there is issue #2 left:

 

2) Selecting a item by filtering and pressing "return" doesn't fire the SelectedIndexChanged-Event

if you have the same circumstances as 1) and you filter and then select the item by pressing "return" the SelectedIndexChanged-Event is never fired. I think this has something to do with the handling and event suppressing in "RadMultiColumnComboBoxElement.SetCurrentRowOnReturnOrTabKey". (I didn't try it, but I think the other events (like SelectedValueChanged)  are neither fired.

 

3) Filtering/Suggesting  is not working if the DropDownStyle is set to "DropDownList"

If the DropDownStyle is set to DropDownList neither the filtering nor the suggesting is working (the suggesting kinda works but with odd/strange behavior)

 

4)  Prevent the SelectedIndexChanged event when scrolling through items

If you "scroll" through the displayed items (by keyboard) for every item the SelectedIndexChanged event is fired, makes no sense in most cases because the DropDown is still open, so is there any workaround? Or please implement the OnSelectionChangeCommitted Event.

 

5) MultiColumn ComboBox has a different look as the DropDownList

Using the Windows8-Theme the MultiColumn ComboBox Arrow looks different compared to the DropDownList
Also the Arrow seems a bit blurry (compared to other controls/themes)
I think there should be a uniform look across controls and themes (color / size / arrow symbol ) ... 

 

Kind Regards,

Christian

Dimitar
Telerik team
 answered on 05 May 2016
5 answers
962 views

Hello,

I have a raddropdownlist which is binding to a BindingList.  When I add new item to the list, dropdown automatically selects this last added item.  How do I prevent it from selecting it?

I tested with a combobox from .Net framework and it works fine.  Here is my code and I am also attaching my sample program.

Please do not suggest to store the selection before I add item and then set it back afterwards.  My program is more complicated than this sample.  All my controls are binded and this BindedList get updated in different area of the program, so it is not simple for me to store and restore selected item.  I am sure it is just some property that need to be turned on or off in the control.

You can download my sample program from here: https://www.dropbox.com/s/foc7i5xq6rfli9q/UserControlTests.zip?dl=0

 

Here is my code

public BindingList<string> ListItems { get; set; } = new BindingList<string> { "item1", "item2", "item3" };
private int Count = 3;
public Demo()
{
InitializeComponent();

drpTest.DataSource = new BindingSource(this, "ListItems"); //raddropdownlist
drpTest2.DataSource = new BindingSource(this, "ListItems"); //combobox
}

private void btnAdd_Click(object sender, EventArgs e)
{
Count++;
ListItems.Add("item" + Count);
}

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 May 2016
3 answers
154 views

Hi,

My issue is as follows. I have created a custom theme and applied it to my application. The grid has alternating rows colors (white and gray), a selected row color of light green and a hot tracking color of medium green. Everything works correctly except this one case. When a row is selected and is colored light green, if you move the mouse over that row, the hot tracking color changes from medium green to gray.

It almost looks like there is an alternate hot tracking color. I checked the theme and there are four colors I can set for hot tracking and I set them all to the same medium green to check if that was the issue. It is not. It is also not just showing the regular row color since it is gray for the white rows also.

I have attached two images that show the issue.

Any help with this would be awesome.

Thanks

Ben

Dimitar
Telerik team
 answered on 03 May 2016
1 answer
224 views

Hello,

I was unchecking a cell programmatically and was expecting the same behavior as when I uncheck it through the UI, but it seems that the header checkbox is not updated when you modify a cell's value programmatically:

private void RadForm1_Load(object sender, EventArgs e)
{
    radGridView1.AllowSearchRow = true;
    radGridView1.TableElement.SearchHighlightColor = Color.Orange;
    radGridView1.AutoExpandGroups = true;
 
    DataTable dt = new DataTable();
 
    dt.Columns.Add("test", typeof(bool));
 
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
    dt.Rows.Add(true);
 
    radGridView1.DataSource = dt;
 
    ((Telerik.WinControls.UI.GridViewCheckBoxColumn)radGridView1.Columns[0]).EnableHeaderCheckBox = true;
    ((Telerik.WinControls.UI.GridViewCheckBoxColumn)radGridView1.Columns[0]).Width = radGridView1.Width - 50;
 
    radGridView1.TableElement.Update(Telerik.WinControls.UI.GridUINotifyAction.Reset); //force header checkbox to check
 
    radGridView1.TableElement.ScrollTo(15, 0);
}
 
private void radButton1_Click(object sender, EventArgs e)
{
    radGridView1.Rows[0].Cells[0].Value = false;
}

I have tried adding radGridView1.TableElement.BeginUpdate() to the beginning & radGridView1.TableElement.EndUpdate() to the end of radButton1_Click, along with radGridView1.TableElement.Update(Telerik.WinControls.UI.GridUINotifyAction.ExpandedChanged) & radGridView1.TableElement.Update(Telerik.WinControls.UI.GridUINotifyAction.Reset) immediately after changing the cell's value, but all of these lines seem to invalidate the RadGridView in one way or another. They cause the search row's buttons to flicker and scroll the RadGridView up to the top.

Is there a solution to this problem that will result in behavior similar to checking/unchecking a cell using the UI?

Thank you!

Dimitar
Telerik team
 answered on 02 May 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
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
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
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
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?