Telerik Forums
UI for WinForms Forum
1 answer
303 views
There's a way to remove the border around the tree view control?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 Sep 2018
2 answers
150 views

Hi, 

I'm struggling for something that perhaps is very easy...

I have assigned a DataTable as Datasource for my GridView.

The data is correcly shown and the boolean values are mapped on checkboxes.

I save back the values to the database getting the new values from the DataTable.

However sometimes the user open the form, click on checkboxed value, and then click on the Save button.

It seems that if you don't deselect the modified Row, the new value of the checkbox is not stored into the DataTable, so I save the old value, while in the GridView you see the new value.

Is there a way to force the sync right after the click on the checkbox?

I've tried with something like this, but without success.

private void RadGridView1OnCellBeginEdit(object sender, GridViewCellCancelEventArgs e)
{
            e.ActiveEditor.EndEdit();
            e.ActiveEditor.Validate();
}
Dimitar
Telerik team
 answered on 03 Sep 2018
2 answers
109 views

 Hi there, I've searched internet for info for a long time but I couldn't get much answers, this why I'm asking here.

I have a simple UserControl with 2 radtextbox inside, one with dock left and other with dock fill.

What I wanna do is the same u do with Textbox height. Example: if u change the Textbox Font or ThemeName it's height will be resized.

This is exactly what I want to do, change my UserControl height to be exactly the same TextBox height when I change Font or ThemeName.

I've already tried:  

-> override void SetBoundsCore();

-> inherit ControlDesigner to override SelectionRules.

-> overriding Size property do half work, because the UC keeps reseting location to 0,0 when used, every build 

And, of course I'm setting those TextBox Font and Theme when change it on UserControl.

And it should work the same way on the designer.

Sorry for bad english. And hope u could understand what I'm trying to achieve.

 

Hristo
Telerik team
 answered on 03 Sep 2018
0 answers
85 views

Good morning.
I have a DataGrid with cells whose wallpaper is red, green or orange.
I must allow the selection of certain cells that have the same color background.
I am testing with the "SelectionChanging" and "SelectionChanged" events, as well as with "ViewCellFormatting", but I can not avoid selecting any cell.
Any suggestions?

Thanks!

Esteban
Top achievements
Rank 1
Iron
Iron
 asked on 31 Aug 2018
3 answers
127 views

Add a button in RichTextEditor demo project, and this code in its event handler:

var editor = new RadDocumentEditor(radRichTextEditor1.Document);
var startA = new DocumentPosition(editor.Document);
var endA = new DocumentPosition(editor.Document);
 
Span a = new Span("A");
editor.InsertInline(a);
 
startA.MoveToStartOfDocumentElement(a);
endA.MoveToEndOfDocumentElement(a);
 
System.Diagnostics.Debug.Assert(startA != endA);

 

Why this last line asserts? I would like to set a DocumentPosition to the end of newly added "A" text (or just select it), but don't know how.

Tanya
Telerik team
 answered on 31 Aug 2018
2 answers
393 views

Hi,

I have a datetime column in a RadGridView as a GridViewDateTimeColumn. When the excel-like filter is used it is setting the expression includes "12:00:00 AM", so when selecting todays days date it does not work. See the attached gif (performed on 08/28/2018). How can I have the filter only filter by date (and not time)

Thanks

 

Terry
Top achievements
Rank 1
 answered on 29 Aug 2018
2 answers
287 views

Hi i'm trying to understand how to use TypeConverters with databound columns.

The databound type is Int and I want to display a picture in a GridViewImageColumn based on that, but I can't make it work, the TypeConverter is never used by the RadGridView to convert the data?

Code:

TypeDescriptor.AddAttributes(typeof(int), new TypeConverterAttribute(
typeof(SeverityImageConverter)));
GridViewImageColumn Severity = new GridViewImageColumn("Severity", "Severity");
Severity.DataTypeConverter = TypeDescriptor.GetConverter(typeof(int));
IssueOverviewGrid.MasterTemplate.Columns.Add(Severity);
IssueOverviewGrid.DataSource = MasterBindingSource;

Type converter implementation:

public class SeverityImageConverter : TypeConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext context,
   Type sourceType)
{
if (sourceType == typeof(int))
return true;
else
return base.CanConvertFrom(context, sourceType);
}

public override object ConvertFrom(ITypeDescriptorContext context,
   System.Globalization.CultureInfo culture, object value)
{
// if no value passed along
if (value == null)
throw new ArgumentNullException("value");

// if the source is a string then convert to our type
if (value is int)
{
// get strongly typed value
int? SeverityValue = value as int?;
Image SeverityImage = Library.GetIssueSeverityIcon(SeverityValue.Value);

return SeverityImage;
}

// otherwise call the base converter
else
return base.ConvertFrom(context, culture, value);
}
}


Christoffer
Top achievements
Rank 1
 answered on 29 Aug 2018
1 answer
409 views

Hi everybody :)

I am turning a little bit crazy, I am trying building a classic form, with some radlabel and some radtextbox control.

All controls are placed in LayoutControlItems, and for elementary aesthetic reason I would like that my label control would be align middle right in the LayoutControlItem. to be close to the radTextBox.

For some reason beyond my understanding, whatever the way I have been using, moving anchor, TextAlignment, my radlabels remain aligned left.

I probably miss something very stupid but some help would be welcome :)

Jeff

Hristo
Telerik team
 answered on 29 Aug 2018
17 answers
800 views
Hi
I'm using 2010 Q2
How can I add an unbound column to show row numbers?! Row numbers must be updated after sorting, filtering & grouping.
thanks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Aug 2018
8 answers
430 views

Hey there! I'm just doing a bit of scouting at the moment for a new desktop app we're looking to write -- probably a WinForms C# app. This app will need as one of its features to be able to edit XML and CSharp code snippets.

Since RichTextEditor is already in our toolbox of toys -- but I haven't worked with it previously -- I was wondering, is there any way to make it behave as close as possible to a Visual Studio style code edit window?

I like the look of the code blocks ("InsertCodeBlock()" function) in RTE but those appear to be read-only. Ideally I'd want the entire edit window to look like the code block (syntax highlighting for the desired language) but not do any of the RTF type things (bolding, italics, etc.)

Just thought I'd pick the communities thoughts to see if this was even feasible before sinking too much time going down a dead end. Thanks!

 - Tony

Hristo
Telerik team
 answered on 29 Aug 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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
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
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?