Telerik Forums
UI for WinForms Forum
2 answers
95 views
I have a collection of say invoices that has a collection of invoice details or line items and a collection of payements.  I want to bind the gridview to the collection without manually creating all of the columns and such.  When I use the Invoice collection as the datasource I do not get the children of invoice, only the single column.  I am setting autoGenerateHeirarchy.  Do I need to define the relationships to accomplish this, even though they are well defined already?

Thanks




Julian Benkov
Telerik team
 answered on 01 Apr 2010
3 answers
853 views
I'm having an issue with  RadGridView1_RowsChanged event. Normally this event will trigger if I modify the row content and moved to another row. If the row contains a cell with NULL values and I clicked on that cell and without editing I moved to another row, then also the RadGridView1_RowsChanged event triggered which is causing me issue. What I'm trying to do in my project is that I need to get the edited row details and update that to database on a button click. If I go through a null cell and moved to another row then also RadGridView1_RowsChanged event triggerd and my edited row index valu will change and I'm not able to save the details to database.  Some part of my code is given below. Can anybody help me?
 private void radGridHome_RowsChanged(object sender, GridViewCollectionChangedEventArgs e)  
        {  
            try  
            {  
                if (isGridLoadCompleted)  
                {  
                    isRowsChanged = true;  
                    //Getting the edited rows index   
                    previousRowIndex = e.NewStartingIndex;  
                    if (!arrRowChangedIndex.Contains(e.NewStartingIndex))  
                    {  
                        arrRowChangedIndex.Add(e.NewStartingIndex);  
                    }  
                    Console.WriteLine("RowsChanged @ " + e.NewStartingIndex + e.OldStartingIndex + "  ");  
                }  
            }  
            catch (Exception ex)  
            {  
                WriteLogFile(ex.ToString(), "radGridHome_RowsChanged");  
            }  
        }  
 
 private void radGridHome_CurrentRowChanged(object sender, CurrentRowChangedEventArgs e)  
        {  
            try  
            {  
                if (isGridLoadCompleted && isRowsChanged && chkSaveExitingRow.Checked)  
                {  
                    // Updating the edited row details to datatbase  
                    UpdateCustomerOrderInfo(chkSaveExitingRow.Checked, false, previousRowIndex);  
                    isRowsChanged = false;  
                }  
                arrPastRowValue.RemoveRange(0, arrPastRowValue.Count);  
            }  
            catch (Exception ex)  
            {  
                WriteLogFile(ex.ToString(), "radGridHome_CurrentRowChanged");  
            }  
        } 
Svett
Telerik team
 answered on 01 Apr 2010
1 answer
293 views
Can you tell me how I get the grid view to wrap text and force the height of the cell to match the amount of text - IE exactly like in Excel where you select cell properties and select "wrap text"??

I really need a solution that is defined in the front end like the show/hide columns, expand widths etc, so the settings can be saved on the users end.

Can you tell me what i am looking for to achieve this?

Thanks





Svett
Telerik team
 answered on 01 Apr 2010
1 answer
265 views
Hi Experts,

I add decimal columns into my grid. My application is base on the example GridView/Columns/Column type example.

My problem is when I try to set the appropriate DecimalPlaces no change appear to the grid view. For example, it show 500.000 instead of 500.

I try to do a modification to the code of the Telerik Grid example and change the numeric column decimal places from 0 to 2 and I got the same result then in my application; decimal place didn't change and the numeric column still show 0 decimal places...

What I am doing incorrectly?

Thanks
Nadia
Julian Benkov
Telerik team
 answered on 01 Apr 2010
2 answers
202 views
If I set the

 

 

MasterGridViewTemplate.AddNewRowPosition =

PinnedRowPosition.Top, then the Value changing event does not fire. It fires only if it is set to bottom... Please advise


Thanks
Deepak

 

Svett
Telerik team
 answered on 01 Apr 2010
7 answers
353 views
Hi,

I follow this code: http://www.telerik.com/support/kb/winforms/combobox/implementing-checkbox-items-in-radcombobox.aspx

and i could fill the combo well.

But now i cant know if one item is checked or not..
This line gives me the content of the item: MItem= RadComboBox1.Items(i).Text
but i cant know if its check or not. How can i know that?

Best regards
Ricardo Antunes
Nikolay
Telerik team
 answered on 01 Apr 2010
3 answers
89 views
we want to use web form scheduler for adding recurring appointment and save it in a database  and

We want a winform application to use scheduler to retrieve the same database  and use the data .

We tried it and found that the recurring appointments are saved in different manner  in winform and webform in the table .

is ther a way to make both controls save the data in the same manner . So that both asp.net  application and windows winform application can use the same data ?

Dobry Zranchev
Telerik team
 answered on 31 Mar 2010
4 answers
142 views
Hi - I am having a strange problem when using hostedcontrols with radtreeview.  Replicate by dragging a new radtreeview onto a vb.net form.  Set AllowArbitraryItemHeight to true, and then add code to add some nodes with some hostedcontrols containing radpanels.  When I run the app, a radpanel appears incorrectly at the very upper left of the treeview.  Then I scroll to the bottom, and back up to the top, and the mystery panel disappears.  Also, when I expand / collapse nodes, it all seems to go a bit haywire.  Using 2010.1.10.308 and VS2008 / VB.NET. Any ideas?  Thanks!

Here is code to replicate the problem:

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

Dim viewParentNode(3) As Telerik.WinControls.UI.RadTreeNode
viewParentNode(1) = New Telerik.WinControls.UI.RadTreeNode("Level1")
viewParentNode(2) = New Telerik.WinControls.UI.RadTreeNode("Level2")
viewParentNode(3) = New Telerik.WinControls.UI.RadTreeNode("Level3")

Dim viewChildNode(5) As Telerik.WinControls.UI.RadTreeNode
viewChildNode(1) = New Telerik.WinControls.UI.RadTreeNode("sub 1")
viewChildNode(2) = New Telerik.WinControls.UI.RadTreeNode("sub 2")
viewChildNode(3) = New Telerik.WinControls.UI.RadTreeNode("sub 3")
viewChildNode(4) = New Telerik.WinControls.UI.RadTreeNode("sub 4")
viewChildNode(5) = New Telerik.WinControls.UI.RadTreeNode("sub 5")

Dim thumbnailPanel(5) As Telerik.WinControls.UI.RadPanel
Dim viewImageNode(5) As Telerik.WinControls.UI.RadTreeNode
For i = 1 To 5
thumbnailPanel(i) = New Telerik.WinControls.UI.RadPanel
thumbnailPanel(i).Height = 61
thumbnailPanel(i).Width = 100
viewImageNode(i) = New Telerik.WinControls.UI.RadTreeNode
viewImageNode(i).HostedControl = thumbnailPanel(i)
viewImageNode(i).ItemHeight = "75"
viewImageNode(i).Expanded = True
viewChildNode(i).Nodes.Add(viewImageNode(i))
Next

viewParentNode(1).Nodes.Add(viewChildNode(1))
viewParentNode(1).Nodes.Add(viewChildNode(2))
viewParentNode(2).Nodes.Add(viewChildNode(3))
viewParentNode(2).Nodes.Add(viewChildNode(4))
viewParentNode(3).Nodes.Add(viewChildNode(5))

For i = 1 To 3
RadTreeView1.Nodes.Add(viewParentNode(i))
Next

RadTreeView1.ExpandAll()
RadTreeView1.Refresh()

End Sub




Victor
Telerik team
 answered on 31 Mar 2010
1 answer
457 views
Simply, I need to make a toolstrip with large imagebuttons, for example 30x30, and I need to have more space between buttons.

How to do it? Thank you.

Stefano.

Martin Vasilev
Telerik team
 answered on 31 Mar 2010
1 answer
215 views
When first opening a form with a new type of RadControl on it (like a RadGrid or a RadDock), the form takes several seconds to load (about 4 seconds on my AMD Phenom II X2 550). Subsequent forms with the same controls open nearly instantly (I have a MDI application). I understand that there might be some one-time initialization going on, but 4 seconds on a fairly decent modern CPU is a bit annoying. I'm worried about my clients who might not have the latest hardware (to put it mildly). Is there anything that can be done to speed up this process?
Nikolay
Telerik team
 answered on 31 Mar 2010
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?