Telerik Forums
UI for WinForms Forum
2 answers
173 views

I wish to programmatically select the "Basic" Colors Tab when the colorbox is opened, without hidding the other tabs

Thanks in advance

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 21 Jun 2019
1 answer
153 views

Hi,

 

Is it possible to add a series of check boxes to each header? I would like them to appear directly underneath the date.

 

Thanks

Nadya | Tech Support Engineer
Telerik team
 answered on 19 Jun 2019
30 answers
1.3K+ views
Hi,

Is it posssible to add additional controls such as a radCheckbox to the 'editAppointmentsDialouge'?
I need to implement a way of marking appointments as confirmed/not yet confirmed.

Regards

Dave
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 19 Jun 2019
1 answer
122 views

I have a gridview with a checkbox column. When the checkbox is checked, I would like to immediately perform some validation and cancel the check if the validation fails. I would like this to happen immediately and not when the user leaves the cell. 

I have set the editmode of the column to onvaluechange and now the CellValueChanged event fires as soon as the checkbox is checked. I can perform validation there and show a messagebox immediately if the validation fails. However if I uncheck the textbox from the CellValueChanged event, it doesn't take affect until the user leaves the cell.

I've tried using the CellValidation event but it doesn't fire until the user leaves the cell. 

How can I uncheck the checkbox and have it take effect immediately, without the user having the leave the cell?

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

I have a RadGridView using the VisualStudio2012Light theme which is exactly the style I want - I don't want anything to change when it comes to that at all, not the headers, summary rows, add new row, etc.

I have some columns with WrapText enabled so they will stretch and auto size their parent rows where needed if AutoSizeRows is enabled.

Now the problem comes in when AutoSizeRows is enabled. All non-data rows resize as well, breaking whatever heights were set as part of the theme. For maintainability I don't want to have to add explicit overrides/adjustments for heights in case the theme changes at a later stage. I am very happy with the theme and only want the rows to stretch in size and to never shrink below what the theme dictates.

I'm using 2016 Q1 and am battling to find the correct event and property combinations to only allow my data rows to resize - I figured that preventing autosizing of non-data rows is probably the cleanest fix for now I don't know if there is any request perhaps to prevent AutoSizeRows from shrinking already themed heights?

I've tried using the CreateRow event but can't figure out how to change enable/disable from there. The GridViewCreateRowEventArgs object has a RowElement property which hasn't been instantiated yet since the row doesn't exist. Must I instantiate that myself to set AutoSize to false? How would I create a default RowElement without changing anything else but that? If I can't use e.RowElement, how do I use e.RowInfo to set AutoSize to false?

I've tried using the RowFormatting event but to no avail.

 Any assistance on this would be greatly appreciated.

 

 

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

Hi

I want to change the header height in scheduer, but i cant figure out how.

It is scheduer in winforms.

 

Nadya | Tech Support Engineer
Telerik team
 answered on 18 Jun 2019
14 answers
1.6K+ views

Hi,
I have a gridview with cells bound to a datasource. In addition I added a checkboxcolumn as follows:

 

this

 

.radGVMeldinger.MasterGridViewTemplate.Columns.Add(new GridViewCheckBoxColumn());

I want this grid not editable, only the checkbox.
I made the following code snippet:

 

private

 

void radGVMeldinger_CellClick(object sender, GridViewCellEventArgs e)

 

{

 

    if (e.RowIndex >= 0)

 

    {

 

        if (this.radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value.ToString() != "True")

 

        {

            radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value =

true;

 

        }

 

        else

 

 

 

 

        {

            radGVMeldinger.MasterGridViewTemplate.Rows[e.RowIndex].Cells[12].Value =

false;

 

        }

    }

}

 

Everything works fine, unless the fact that when I click the checkbox column this event doesn't fire.
This event fires when I click on every other column.
Has anyone a solution?
Regards,
/Henk

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Jun 2019
1 answer
225 views

Lets say I added a row, and a required field is missing, so I alert the user, I want to keep the values the same, but after the alert values disappear. Here is the code, how i tried to return values

 

01.if (!String.IsNullOrEmpty(newItem.stCountryName))
02.                dr.Cells["column1"].Value = newItem.stCountryName;
03.                //((CountryTable)dr.DataBoundItem).stCountryName = newItem.stCountryName;
04.            if (!String.IsNullOrEmpty(newItem.stCountryCode))
05.                ((CountryTable)dr.DataBoundItem).stCountryCode = newItem.stCountryCode;
06.            if (newItem.nCodeLen != null)
07.                ((CountryTable)dr.DataBoundItem).nCodeLen = newItem.nCodeLen;
08.            if (newItem.nRegionID != null)
09.                ((CountryTable)dr.DataBoundItem).nRegionID = newItem.nRegionID;
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Jun 2019
1 answer
286 views

Hi,

I am using the RadMenu and my menu is dynamically created using a database.  The user can select a default start up form and I need to search though the menuitems with recursion to find that startup item and then perform the click event on that menu item.

In the windows menu I was able to do this this.mainMenu.Items.Find(reportID, true).  How can I do this on the menu items?

Thanks,

Tim

Nadya | Tech Support Engineer
Telerik team
 answered on 14 Jun 2019
2 answers
107 views

hi

in  my grid i have a column decimal but I want to remove zero after float . 750.000 -> 750

when i use FormatString = {G} or {N0}  occur exception

moj
Top achievements
Rank 1
 answered on 14 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?