Telerik Forums
UI for WinForms Forum
1 answer
235 views

Hi

I have my own objects I want to bind to my grid and I want to make the column by myself because it’s not all the fields I want publish so I do like this

            CompanyEOList Companylist = new CompanyEOList(WinXLFSecurity.XLFSecurity, WinXLFSecurity.CurrentDAL);  
            Companylist.GetAll();  
              
            gdCompanyList.MasterGridViewTemplate.AllowAddNewRow = false;  
            gdCompanyList.MasterGridViewTemplate.AutoGenerateColumns = true ;  
            gdCompanyList.MasterGridViewTemplate.AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;  
 
gdCompanyList.MasterGridViewTemplate.Columns.Add(new GridViewDataColumn("Address", "Address"));  
            gdCompanyList.DataSource = Companylist ;  
 

 

where gdCompanyList is my grid. When I do like this and want filtering I can’t edit the filtering textbox. If I set the property AutoGenerateColumns to true it works. I have also tried to set the property AllowFiltering on the new column but that work either.

            Telerik.WinControls.UI.GridViewDataColumn newColumn = new GridViewDataColumn("Name", "Name")

            newColumn.AllowFiltering = true;

            gdCompanyList.MasterGridViewTemplate.Columns.Add(newColumn);

 

What have I missing ?

One other thing. When I bind my own objects to the grid and the user is edit the objects how do I force the grid to save the change ?

Best regards
Kim Johansen

Svett
Telerik team
 answered on 28 Jan 2010
2 answers
105 views
Hi,
I'm trying to reimplement a part of system using telerik gridView control.
I'm trying to bind a collection of objects to a dataGridView. This objects contains some other objects, that's why i want to use binding to sub objects. Everything works great, until a sub-object is a NULL. Then the whole row is not displayed. What I want to achive, is only not to display this column's value, and display all other values.
Is it possible using such a binding scenario?
Or should I do it in any other way (for example by initializing all these items with empty ones)? As far as these are database objects, I don't want to implement additional logic for adding such 'empty' items and deleting them before saving changes to DB.

I have similiar problem when using wpf version of this control.

Thanks for Your help in advance
Marcin Danek
Marcin Danek
Top achievements
Rank 1
 answered on 27 Jan 2010
1 answer
289 views
I would like to use a custom icon with RadMessageBox. I see that the only overloaded calls to Show() which let you pass an icon .bmp file also require that you pass the previous window as the first parameter. I would like to use the same default window as the overloads to Show() that don't require this parameter. What can I use as the window that would give me the same results?
Martin Vasilev
Telerik team
 answered on 27 Jan 2010
1 answer
82 views
I have a legacy app which I was doing some updates to, so I thought I'd attach the telerik WinForms controls.  I can't even express how pleased I am with the entire suite...my app looked like crap (admittedly) before.  However now just by changing a few classes to inherit from Telerik and no other changes, the app looks 200% better and somehow runs faster!

Nice work guys, super happy
Vassil Petev
Telerik team
 answered on 27 Jan 2010
1 answer
123 views
If I want to reorder columns in treeview, nothing happens. If I want to reorder columns in tableview, the property builder automaticaly closes. The only way reordering works is, if I first reorder columns in treeview (although it doesn't seem this does anything) and then reorder columns in tableview.
Julian Benkov
Telerik team
 answered on 27 Jan 2010
13 answers
1.2K+ views
Hello,

I have forms inside document panes. The panes are created automatically for each MDI child form. I don't understand why document panes are working with form events. Isn't it logical that the little X button in the top right corner of the document pane causes the form to close? As a replacement for the normal close button of the form. If I don't want the form to close, just hide, I can always intercept the FormClosing event and cancel it, right?

The way it works now is very bad:
1) When I manually call the form Close method , the form closes, but the pane stays open. It should close as well since it is obviously not needed anymore.
2) When I click the document pane's X button it disappears, but the FormClosing/FormClosed events do not fire.

I've also read another post related to Activate and Deactivate events not firing and you say it's by design. I don't understand why it should be this way. Without the proper plumbing I have to write a lot more complicated code just to do all this basic stuff.

Can't you extend the document pane logic to support MDI child forms better? If not, is there another solution?
Nikolay
Telerik team
 answered on 27 Jan 2010
1 answer
122 views
We set an appoinment with recurring rule as follows:

every second week of every month starting 1/26/2010 until no  end date
See attached configuration form.

But we do not see any appointments in January of 2011
Dobry Zranchev
Telerik team
 answered on 27 Jan 2010
7 answers
511 views
I have a RadComboBox displaying 70 user options (yes, it's a lot, but it's needed to replicate an electronic device that has all of these settings).  To simplify the option selection for users, I'm using a second RadComboBox to allow the user to see only subsets of the 70 options in the first RadComboBox.  Whether I use the Hidden or Collapsed visibility settings for the items I wish to hide, an empty space is shown in the drop-down list so the list is just as long, but mostly empty.  Is this the intended behavior of the RadComboBox, or have I set this up incorrectly?  Please don't tell me I supposed to load separate collections of items and have different selected item event code for each subset.

Thanks in advance for your help.
Scott Steinman
Top achievements
Rank 1
 answered on 27 Jan 2010
1 answer
197 views
Hi

Can toolwindows dock ontop of each other.like VS does?
Nikolay
Telerik team
 answered on 26 Jan 2010
1 answer
191 views
Hi, i am using Visual Basic .net.

I have a radchart on my form that i want to print.
Is that possible ?

I found this http://www.telerik.com/community/forums/winforms/chart/printing.aspx

but it doesn't seem to work.

There is an error coming up in the code in italics
radChart1.Printing.PrintChart(ChartPrintOptions.ShowPrintPreviewDialog)

Thanks
Dwight
Telerik team
 answered on 26 Jan 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)
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?