Telerik Forums
UI for WinForms Forum
9 answers
205 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
105 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
274 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
104 views
In winform project, how to adapt to different layouts resolution computer?
Dimitar
Telerik team
 answered on 04 Mar 2014
1 answer
75 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
486 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
172 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
5 answers
91 views
Hi, I want to save the state of the page view and restore it when a user logs back in.

I am trying to find out how to;

1) inspect the pageviews and determine if they are a) in the overflow area and if so b) is their button visible or hidden.

2) set the pageviews back to the state they were at in the overflow area and whether the button is hidden

Thanks,



Peter
Telerik team
 answered on 03 Mar 2014
9 answers
615 views
Hi,

I am having trouble using the RadGridView (RowValidating Event).

When the RowValidating is fired, the values of my new row to be added are checked,
if one of them is not okay, the message is shown to remind the user to input the correct values.

The problem is:
- if I don´t want to add this new row, how do I discard it?
(in the case I have all cells, for this new row, with null values)

I have the "e. Row. Cancel = true" to try to cancel de adding, and it works,
but the problem is that the phrase "Click here to add a new row" is not set
back to the top, and any other values (Cells) that is in the grid can´t be edited,
it got stuck, until I finish adding this row.

If I erase my "RowValidating" and try again, the problem is solved.

Is it possible to discard a new row
if I have a "RowValidating" on, and once it´s canceled,
to have the phrase "Click here to add a new row" back on top to start over a new adding?

Thanks for your help.

Stefan
Telerik team
 answered on 03 Mar 2014
1 answer
63 views
I am trying to put a dotted border around the selected row. It seems that if I choose "SingleBorder" with element state GridDataRowElement.IsSelected.IsCurrent.HotTracking, the border does not appear until to row is selected a second time. If I choose "FourBorders" it works fine but I always get a solid border when BorderDashStyle is set to anything other than solid. It does not appear that you can use the BorderDashStyle with "FourBorders" selected - only "SingleBorder" works with BorderDashStyle. Any thoughts?
Dimitar
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)
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
CheckedDropDownList
ProgressBar
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
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
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?