Telerik Forums
UI for WinForms Forum
3 answers
332 views

Hello.

I have a logic controlling whether the cell is editable or no. It is checked on cell begin edit:

private void CellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
     e.Cancel = !controller.IsEditingAllowed(grid.CurrentCell);
}

Now I need also to control focus: if the cell is not editable, it shouldn't be possible to focus on it using the tab key (preferable using mouse also) even in read mode.

Is this possible to implement this?

Dmitry
Top achievements
Rank 1
 answered on 04 Apr 2018
1 answer
367 views

Hello,

I have a RadListView with custom SimpleListViewVisualItem which has a button.  When an item is selected in the listview control the button is visible and hidden when it is not (only one button shows at a time on the selected index). This is working just fine using the "VisualItemFormatting" functionality. 

Now I am trying trying to enable a different mode in the interface which eliminates the functionality that the button provides so should remove the option of the button for the user (hide it).  I am not sure how to "repaint" the listview control so that the VisualItemFormatting function can kick in and remove the button on the selected index and put it back in when returning to that mode.

Any suggestions?  I've tried updating the list and the viewelement but it doesn't seem to have an effect.

Thanks!

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Apr 2018
2 answers
208 views

Hello.
How can I change the pin state (pinned/unpinned) of some page of RadPageView from code? RadPageView.ViewMode is set to Strip.
Can this be done, when the RadPageView.ViewElement.ShowItemPinButton = false ?
Thank you!

Vitaliy
Top achievements
Rank 1
 answered on 04 Apr 2018
3 answers
707 views

In regular winforms controls, where there's a touch screen, if a textbox gains focus then the touch keyboard doesn't automatically popup. However automatic popup works correctly on winforms VS RichTextbox control.

see the following stackoverflow forum thread

https://stackoverflow.com/questions/36179917/automatically-pop-up-tablet-touch-keyboard-on-winforms-input-focus/40259606

I only discovered the problem a couple of days ago as I usually use keyboards I've developed myself which are embedded in my windows. We've moved into the Chinese market with our product and because the Pinyin keyboard is so horribly complex we thought we'd opt to use Windows own touch keyboard despite not being able to host it nicely in the windows. Whilst researching and testing we discovered in horror that textboxes wouldn't support it.

My only option is switching out all textboxes and there's 100s of forms :( .

I've a 2nd problem in that I can't test on my development pc as it doesn't have a touch screen, the touch screen emulator came after vs2010. So I can't just throw one of your radtextboxes on  a form and try it out.

So my question is, if I globally switched out all the textboxes with RadTextBox or radtextboxcontrol, will they automatically pop up the touch keyboard? (We're updating our old app a form at a time with telerik controls)

thanks
Hristo
Telerik team
 answered on 04 Apr 2018
3 answers
136 views
Please look at the attachment,

From the first column to the third column, my expectations are like the fifth column.

Remarks: I hope to support word (or excel) replication in the entire row (full column)
Hristo
Telerik team
 answered on 03 Apr 2018
3 answers
179 views
This bug appears in the entire row or column。
Hristo
Telerik team
 answered on 03 Apr 2018
9 answers
606 views
Hi,
I have RadGridView object and I want to Validate user input. there are two coulmns. when the user enters a value which is greater than 0 for column1 then if the column2 is greater than 0 an error must be occured and also this is the rule for coulmn2 (that is if coulmn2 value is greater than 0 and also column1's value is greater than 0 the error occurs.)
the problem is that first of all I must check the value of a cell. but when I check an error occurs and tells that the value is null:
if(column1.currentrow.column["MyCoulmn"].value!=null) // Runtime Error:  Value is null, use new keyword!

how can I validate column content without getting this error. also when I try this:
Convert.ToInt16(column1.currentrow.column["MyColumn"].value.ToString())>0
FormatException Occurs. While my value is 2 for example, Why such error occurs?
Thank you, please help me.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Apr 2018
1 answer
146 views

I read this: "Commercial WinForms applications deployed to Your end users. In this case, you may deploy the Telerik assemblies together with your application with the sole exception of the Telerik.WinControls.UI.Design.dll assembly. The Telerik.WinControls.UI.Design.dll assembly may not be deployed to end-users under any circumstance."

 

And then if I release a free or trial version I'm required to protect all assemblies. If I don't sell my application with a free version or a free version with a trial I can deploy all the telerik assemblies as is with the exception of Telerik.WinControls.UI.Design.dll?

Hristo
Telerik team
 answered on 02 Apr 2018
1 answer
140 views
Please refer to the picture to see the following information:
T1, T2 are two common cells and T3 is a merged cell
When the mouse moves on T3, it triggers the border of T1 and T2, which will change the cell size of T1 and T2
Hristo
Telerik team
 answered on 02 Apr 2018
1 answer
149 views

I'm evaluating the RichTextEditor for WinForms as a replacement for another third-party control.  Frankly it would save me a lot of work if we could use your control, so I'm very enthusiastic about it, but I've discovered a problem.  When a line contains multiple font styles, I'm seeing a vertical alignment issue. Likely no one would ever do this in the real world, but it's part of our regression tests and I know it's going to be a barrier selling this to my boss.

I've attached a couple images.  My test app is little more than the editor and an associated ribbon bar, and I used the ribbon bar to make the formatting changes as shown.  The default font in Verdana, and the misaligned text is Courier New.  I saved the text as a docx and loaded it in Word, and you can see in the other image that the alignment problem is not present.

Any suggestions?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Apr 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)
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?