Telerik Forums
UI for WinForms Forum
0 answers
1.1K+ views
The goal of the Telerik Forum is to provide all registered users with a way to find answers to their questions before officially contacting Telerik. In case you need a faster and precise response, please start a new support ticket as it gets higher priority than Forum posts.

A post in the Forums doesn't guarantee you a response from the Telerik support team although 95% of all posts are eventually addressed. Additionally, a post is not assigned a response time as with the support ticketing system.

The Forums can be used to:
  • Discuss coding techniques with fellow Telerik users
  • Share your experience on the Telerik suite of controls
  • Ask general questions, not related to Telerik controls
  • Contact Telerik with a question
  • Contact Telerik MVPs
  • Help other users

Telerik strives to constantly improve its support services but it is essential to have full information to supply precise replies. If we do not have enough details we will not be able to properly address your inquiry and we will ask for further info. The extra loop is sure to slow down the time it takes to resolve your problem, and subsequently the further development of your project.

It is vital that you follow these guidelines in order to receive an accurate response:

GUIDELINES TO USING THE SUPPORT FORUM
  1. You should have a valid Telerik account to post in the Forum. Anonymous names will not be allowed and such posts will not be answered or will be deleted. 
  2. Use the relevant product forum to post your questions and comments. If your question relates to two or more Telerik products, you can post it in the General Discussions section. 
  3. Choose a descriptive name for your thread in order to allow the other users looking for similar information to find it more easy. 
  4. Try to keep discussing only one subject per thread. If you have information/inquery unrelated to the initial topic of a thread, please open a new thread.
  5. Describe your question in detail. Make sure to include the following information: 
    • Step by step instructions on how to reproduce the problem 
    • Code snippets (file attachments other than .gif, .jpg, .jpeg, and .png are not supported). If you think that Telerik needs to review your project and/or files, start a new support ticket.
    • Stack trace, if applicable
    • Used programming language (VB.NET or C#)
    • Your experience with .Net and RadControls
       
  6. State the software you are using, including: 
    • OS version and applied service packs
    • Regional and language settings, if different from En-US
    • .NET version (.NET2, .NET4, etc)
    • Exact version of the Telerik product 
       
  7. Telerik reserves the right to use, reproduce and share the material you post within the forums. 
  8. Telerik reserves the right to not participate in all posts. 
  9. Telerik reserves the right to remove any messages that do not comply with these terms.

ENJOY!!!

Best Wishes,
The Telerik team

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 07 Sep 2007
4 answers
385 views
I need to format a row depending on a state of the DataBoundItem and i'm trying to use the RowFormatting event.

In some cases i need to set the font of the row to italic and in some other cases i need to hide it from the user.

here is my code

void radGridViewSearchResults_RowFormatting(object sender, RowFormattingEventArgs e)

{

GridViewRowInfo gvri = e.RowElement.RowInfo;

myobject obj = gvri.DataBoundItem as myobject;

if (obj.IsDeleted)

{

gvri.IsVisible = false;

return;

}

if (obj.IsModified || obj.IsNew)

gvri.VisualElement.Font = new Font(gvri.VisualElement.Font.FontFamily, gvri.VisualElement.Font.SizeInPoints, FontStyle.Italic);

if (obj.IsOnError)

gvri.VisualElement.BackColor = Color.Red;

}

The problem is that the rows that should be hidden are still showing up and the ones that should be in red are not?
I've check the state of my objects and they are correct.

I've also remarked that the RowFormatting event is called tice for each item?

What is the correct way of hidding a row from the grid and customize its style?

thanks

Jack
Telerik team
 answered on 07 Sep 2007
6 answers
177 views
Ok I'm only new too this WinForms Gridview so these are probably some simple problems, But thanks in advance for any help you can give.

1) How do I change the default Text in the Group by Row Header.  By default its coming up with <DataField>: <Value>.
Oh and its centered aligned, but I would prefer it left aligned.

2) when I've configured the Gridview to how I Need it, when I run it and try and use the group by feature by drag and dropping a field to the group by header, the new grouped field isn't showing up, up the top in the group by section, so I can't Ungroup  that field.

If anyone can help with these 2 probably that would be greatly appreciated.
Thank you
Dwight
Telerik team
 answered on 07 Sep 2007
1 answer
165 views
Hi,
I would like to stop a node expanding while the mouse is hoovering a node while draging another node.

I've tried the following:

On my class which inherits from RadTreeNode:

public override void Expand()
{
// stop node expanding if dropping to it
if (this.TreeView.DraggedNode!=null || (this.TreeView.SelectedNode!=null && this.TreeView.SelectedNode!=this))
return;
...

The problem here is that the node will not expand if it is not selected, which is the case if i click on the expand icon which does not select the node.

private void deviceTree_Expanding(object sender, System.ComponentModel.CancelEventArgs e)
{
// I set the dragNode variable on the Dragging event of the treeview
if (dragNode != null)
e.Cancel = true;
}

The problem with this solution is that the event is triggered after Expand method of the node.

How can I accomplish this? my problem is that many nodes have large quantities of children and the tree is quite sensitive to which node to drop to, one has to move the mouse a little to choose the right node.

root
+ node1
+ node2
+ node3
+ node4

if I want to drop node4 on node2 it requires the user to move the mouse carefully, it could end up on node1,  node2 or node3, but then node1 expands and i have to cancel the drop and start all over again. Is there a way to change this behaviour? that is expand while dropping OR at least increase the "onhoover" time before expanding.

Thanks,
/ jorge

Boyko Markov
Telerik team
 answered on 07 Sep 2007
1 answer
95 views
Hello,

Is it possible to change the view of the graph to get a top-bottom view. i.e. Having the origin (0,0) in the top-left corner instead of bottom-left corner of the graph.

Thank you.
Dwight
Telerik team
 answered on 07 Sep 2007
5 answers
132 views
Hi Telerik Team,

I encounter that when i am using the RadGridView to do sorting, for example: i am about to sort 1,2,3,4,5,6,7,8,9,10 in descending manner where the datatype is smallint, the grid will return 9,8,7,6,5,4,3,2,1,10 in which i expected 10,9,8,7,6.....,1 since it is smallint datatype.

Pls Help. Thanks
Dwight
Telerik team
 answered on 07 Sep 2007
1 answer
104 views
Hi,

I am working with radgrid with winforms 2.0 . I am facing problem to summaries column which i grouped. I wanted to show summary of the group column next to grouped column name.
Does radgrid support this functionlity ? if yes how ?
if No when will i get it ?

Thanks
Nicky
Dwight
Telerik team
 answered on 07 Sep 2007
0 answers
126 views
hi guys,
..cheers.. got it. was a different issue which did confuse me..
piratenwichtl
Top achievements
Rank 1
 asked on 07 Sep 2007
13 answers
459 views
Just purchased RadControls for Winforms and is starting to use it.

I have a problem with the addnewrow functionality.

Im connected the GridView to a collection of one of my business objects.
It loads just fine. I can edit a value just fine.
I got Allownewrow=true so the "Click here to add new row" shows.
When I enter values here and then change row I can debug that the new object is inserted into my collection, but it does not show any more in GridView. If I do an Update, which saves my collection to DB the object is there and gets saved. If I reload the collection the new row is there.

But I want the user to see new rows added without having to save it. What am I doing wrong?
Lovsten
Top achievements
Rank 1
 answered on 06 Sep 2007
1 answer
95 views
I face a problem of mingling of words and disappearing of words from listbox. I placed listbox and gridview on same form. Bind them with same data source. I make datagridview editable. Now when I change 2-3 values in gridview the column values showing in listbox become mingl and one two three rows got disappear.

Thanks
Abhisek
Julian Benkov
Telerik team
 answered on 06 Sep 2007
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?