Telerik Forums
UI for WinForms Forum
7 answers
257 views
Hi, 

I'm trying to set the maximum height of a row, but it doesn't work... I've enabled the AutoSizeRows property.

private void Grid_RowFormatting(object sender, RowFormattingEventArgs e)
{
     // Current ->  e.RowElement.RowInfo = 64
    e.RowElement.RowInfo.MaxHeight = 32;
}

Thanks,

--
François
Stefan
Telerik team
 answered on 06 Mar 2014
1 answer
280 views
I'm writing an application which iterates through the rows of an unbound RadGridView and changes the value and formatting of a particular cell as it goes.  I'm having no issue iterating through the rows, but when I get to the point of calling for a cell's value or formatting to change the cell empties of all visible data instead.

The way I'm iterating through the cells and changing the value is like so:

foreach (GridViewRowInfo row In rgvFiles.Rows)
{
    row.Cells[2].Value = "New Text";
    row.Cells[2].Style.BackColor = Color.DarkGreen;
    row.Cells[2].Style.ForeColor = Color.White;
}
Ralitsa
Telerik team
 answered on 05 Mar 2014
1 answer
113 views
hi
how to disable many of keys in raddatetimepicker?
I'm using the following code, but I did not give the desired result 

private void DTP_bDate_KeyPress(object sender, KeyPressEventArgs e)
        {
            e.Handled = char.IsDigit(e.KeyChar);
        }
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Mar 2014
9 answers
216 views
Hey,$0      I have a problem when trying to filter on "Contains" condition. The datacolumn in the database is of type int and I bound the datafield to a GridViewTextBoxColumn in the RadGrid. When I try to make a filter on Contains condition and once I type a number I got an error Cannot perform 'Like' operation on System.Int32 and System.String$0$0$0$0$0Is there anyway to fix that?$0
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 05 Mar 2014
1 answer
114 views
Hi,

Create new form and paste code below. 
Run form, expand "root" node and select any item. SelectedNodeChanged event should write to console value "1".
Then click button to rebuild re-build the tree, again expand "root" node and select any item.
This time SelectedNodeChanged will write to console value: "2".

private void Form1_Load(object sender, EventArgs e)
{
    RadButton b = new RadButton();
    b.Text = "Rebuild";
    b.Dock = DockStyle.Top;
    b.Click += b_Click;
 
    rtv = new RadTreeView();
    rtv.SelectedNodeChanged += rtv_SelectedNodeChanged;
    rtv.Dock = DockStyle.Bottom;
 
    this.Controls.Add(b);
    this.Controls.Add(rtv);
 
    Rebuild(rtv);
}
 
RadTreeView rtv = new RadTreeView();
 
private void rtv_SelectedNodeChanged(object sender, RadTreeViewEventArgs e)
{
    Console.WriteLine(rtv.SelectedNodes.Count);
}
 
private void b_Click(object sender, EventArgs e)
{
    Rebuild(rtv);
}
 
private void Rebuild(RadTreeView rtv)
{
    rtv.Nodes.Clear();
    rtv.Nodes.Add("root");
    rtv.Nodes[0].Nodes.Add("level 1 item 1");
    rtv.Nodes[0].Nodes.Add("level 1 item 2");
    rtv.Nodes[0].Nodes.Add("level 1 item 3");
    rtv.Nodes[0].Nodes.Add("level 1 item 4");
 
    // this don't work
    rtv.SelectedNodes.Clear();
}
Ralitsa
Telerik team
 answered on 05 Mar 2014
4 answers
290 views
I added some maskbox column to my datagrid.the mask type is time. I want the row summery shows sum of times in each column
Ralitsa
Telerik team
 answered on 04 Mar 2014
1 answer
113 views
In winform project, how to adapt to different layouts resolution computer?
Dimitar
Telerik team
 answered on 04 Mar 2014
1 answer
82 views
I'm trying set PanelImage as (none) in my panorama. I setted this option in RadPanoramaElement and that hid in my FormDesign, but when I run the application, the image still there.

I tried a lot of options and this default panelImage always back. How can I set if to be disable forever?

Thanks
Dimitar
Telerik team
 answered on 04 Mar 2014
10 answers
503 views
I just updated my project to Q1 2009. The buttons in my RadRibbon are displayed as an icon centered above text.

After the upgrade, the icon is no longer centered, but left-aligned over the text.

Why has the behavior changed, and what do I need to do to get my alignment back where it belongs?
George
Telerik team
 answered on 04 Mar 2014
3 answers
187 views
Hi,

in a form, I Need to use a TextBox to enter values in the exponential form. In Radform's textboxes, there's no possibility to directly validate the Input or to Format it like ##.##e##. Is there a way to do this by radform or do I Need to write my own Input Validation and formatting?


Peter
Telerik team
 answered on 03 Mar 2014
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
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
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?