Telerik Forums
UI for WinForms Forum
9 answers
850 views
I have a calendar set so that I highlight holiday dates etc on the calendar using the ElementRender event.

I therefore need to use the SelectionChanging event to to all the pre-work required to get holidays etc from my database.

My problem is that for some reason the SelectionEventArgs in tthe SelectionChanging event only tells me the currently selected date.

How do I find the date that the users has just selected that fired the SelectionChanging event?

For example the current date is 19 Feb 2011, the user selects 30 Mar 2011, SelectionEventArgs contains 19 Feb 2011, I need 30 Mar 2011.

Thanks

Hristo
Telerik team
 answered on 29 Jun 2018
3 answers
186 views

Hi all,

When clicking the "Draw Shape", "Draw Text", etc, buttons on the image editor, is there a way to disable the pop up windows that comes up by default?

I don't want my users to be able to select the colors when they draw. Thank you.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jun 2018
1 answer
103 views
I have a RadGridView on a .NET form and is there a way when a user makes their .NET form larger that the RadGridView control can become larger at the same time on the page?
Dimitar
Telerik team
 answered on 29 Jun 2018
2 answers
259 views

Hi,

I currently export using a custom function that takes the grid as an argument and passes it to the function to create the excel,however when i filter my grid to only show a few items it still prints all of the original items in the grid which have been filtered out 

I Know it is exporting them all to the function because obviously they still live in the grid,i was wondering there was a way i could create another grid and set it to the filtered grid with only the displayed rows or whether i can remove those rows from my grid before sending it to my function 

I Do now want the use the export function provided by telerik as i have a very specific layout that my excel must have and this function is to be used by hundreds of Screens in the future

 

Kind Regards

Josh

Joshua
Top achievements
Rank 1
 answered on 28 Jun 2018
0 answers
79 views

How can change the aspect of linear bar like picture bellow? I don't want it to be a straight line,like in default.

 

Reptilianus
Top achievements
Rank 1
 asked on 28 Jun 2018
1 answer
186 views

When I disable a RadTextboxControl the "BackColor" color turns "gray" which appears to be the default color. I've been unable to find anything on how to change the default "BackColor" on the disabled control. Anytime I update the "BackColor" property via the code behind or designer itself it always goes back to the same "gray" BackColor. Thoughts?

Dimitar
Telerik team
 answered on 28 Jun 2018
5 answers
1.4K+ views
I am wondering if it is possible to have a GridViewComboBoxColumn that when clicked on, will automatically dropdown the list of choices for you to choose from (This saves one click when you are clicking many comboboxes in one go)? I imagine you would run the dropdown code in the CellBeginEdit event.. I am just not sure exactly how to accomplish this..
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jun 2018
5 answers
113 views
Hi,I try to making a graph in windows forms using RadHorizontalGauge with telerik, what library I should used? In plus,for example,RadRadialGauge is worked and Visual Studio not say what library should I used.
Reptilianus
Top achievements
Rank 1
 answered on 28 Jun 2018
1 answer
96 views
How can change range of a label, if I have a RadLinearGauge with RangeStart=0 and EndRange=85 and Count=2,but I don't want to my label to be segmented like:0,42.5,85 . I want particular range of labels,but how?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Jun 2018
1 answer
178 views
private void radGridView5_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        {
            if (e.Column.Name == "operati")
            {
                RadDropDownListEditor editors = (RadDropDownListEditor)e.ActiveEditor;
                RadDropDownListEditorElement elements = (RadDropDownListEditorElement)editors.EditorElement;
 
                switch (_endOperationSoc)
                {
                    case "принят":
                        elements.Items.RemoveAt(4);
                        elements.Items.RemoveAt(1);
                        break;
                    case "приостановлен":
                        elements.Items.RemoveAt(3);
                        elements.Items.RemoveAt(1);
                        break;
                    case "снят":
                        elements.Items.RemoveAt(4);
                        elements.Items.RemoveAt(3);
                        elements.Items.RemoveAt(2);
                        break;
                    case "возобновлен":
                        elements.Items.RemoveAt(4);
                        elements.Items.RemoveAt(1);
                        break;
                }
            }
 
            if (e.Column.HeaderText == "соц. работник")
            {
                RadDropDownListEditor editors = (RadDropDownListEditor)e.ActiveEditor;
                RadDropDownListEditorElement elements = (RadDropDownListEditorElement)editors.EditorElement;
                if (radGridView5.RowCount != 0)
                    elements.SelectedIndex = elements.FindString(radGridView5.Rows[radGridView5.RowCount - 1].Cells[1].Value.ToString());
            }
 
            RadDropDownListEditor editor = e.ActiveEditor as RadDropDownListEditor;
 
            if (editor == null)
            {
                return;
            }
 
            RadDropDownListElement element = editor.EditorElement as RadDropDownListEditorElement;
 
            int scrolBarWidth = 0;
 
            if (element.DefaultItemsCountInDropDown < element.Items.Count)
            {
                scrolBarWidth = 35;
            }
 
            foreach (RadListDataItem item in element.Items)
            {
                string text = item.Text;
                Size size = TextRenderer.MeasureText(text, element.Font);
 
                if (element.DropDownWidth < size.Width)
                {
                    element.DropDownWidth = size.Width + scrolBarWidth;
                }
            }
        }

here is this moment:

switch (_endOperationSoc)
                {
                    case "принят":
                        //elements.Items[4].IsVisible = false;
                        elements.Items.RemoveAt(4);
                        elements.Items.RemoveAt(1);
                        RadMessageBox.Show("принят", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
                        break;
                    case "приостановлен":
                        elements.Items.RemoveAt(3);
                        elements.Items.RemoveAt(1);
                        RadMessageBox.Show("приостановлен", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
                        break;
                    case "снят":
                        elements.Items.RemoveAt(4);
                        elements.Items.RemoveAt(3);
                        elements.Items.RemoveAt(2);
                        RadMessageBox.Show("снят", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
                        break;
                    case "возобновлен":
                        elements.Items.RemoveAt(4);
                        elements.Items.RemoveAt(1);
                        RadMessageBox.Show("возобновлен", "Ошибка", MessageBoxButtons.OK, RadMessageIcon.Exclamation);
                        break;
                }
            }

How do I not delete items but just hide or display them?
It is necessary to do it in this moment.
Thank you.

 

Dimitar
Telerik team
 answered on 27 Jun 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)
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
ProgressBar
CheckedDropDownList
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
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?