Telerik Forums
UI for WinForms Forum
9 answers
523 views
Hi All,

I am trying to set a maximum vertical size to be displayed for a child grid at all times, the vertical scroll bar of the child grid enabled in autohide mode in order to be able to see the rest of the rows. By vertical size I mean how many rows to be displayed at any given time in the child grid, and not the vertical height of each individual row. Unfortunately, although I have tried, I cannot find a reference on how to implement this feature. Any suggestions will be highly appreciated.

Kind Regards,


George
Jack
Telerik team
 answered on 12 Nov 2009
1 answer
156 views
Hi,

Having a bit of anxiety attack finding out users are experiencing slow launch times on a Office plugin using Winforms.
Initially I thought is may be due to something I did, but found out it's all in the Telerik object initializations.
The delays are to the point that the solution is not shippable and I'm in a bind unless I can bring these long init times down.
Delays of 6 sec to 30 sec are being reported by many test users.

I put in some code to measure timings, which brought me to my conclusion.
I don't connect up the datasources until later, the long init times are with no data connected.  Also I moved all of the ResumeLayout() and performLayout()  calls to the end of the InitializeComponent() block.


[debug_timing] =
[0s 0m] AddinModule_AddinInitialize_Start 
[0s 31m] AddinModule_AddinInitialize_End 
[0s 0m] Display Form Request - Zeroed 
[0s 0m] InitializeComponent start 
[6s 515m] InitializeComponent end 
[0s 62m] Form Loading 
[0s 0m] Lookup Data Start 
[0s 671m] Lookup Data End 
[1s 718m] Display Form 

Put in some more detailed timing calls, and found:

Of this excessive initialization time:
Approx 40% of the time is spent creating the Teleric controls and the BeginInits() , From <<<a>>> to <<<b>>>
Approx 60% pf the time is spent in the Teleric EndInit() calls,  From <<c>> to <<<d>>>

private void InitializeComponent() 
{
this.SuspendLayout();
<<<< a >>>>> 
new Telerik.WinControls.UI....(); 
.. 
.. 
((System.ComponentModel.ISupportInitialize)....BeginInit(); 
<<<< b >>>>>> 
... 
setup properties for each forms object 
.. 
<<<<< c >>>>> 
((System.ComponentModel.ISupportInitialize)....EndInit(); 
<<<<< d >>>>> 
.. 
.. 
Moved all the ResumeLayout() and performLayout() calls here 
} 
 


I love the product, and chose it primarily to provide a UI that is in line with the Office suite.  I've noticed other users experiencing similar issues.

Any thing else I can try?

Thanks.
Ron
Martin Vasilev
Telerik team
 answered on 12 Nov 2009
8 answers
423 views

I have a problem with the SaveLayout / LoadLayout methods.

If I group my GridView by a DateTime column or a column which has been formatted and then save the layout, I get a null reference exception when I try to load it: "System.NullReferenceException was unhandled by user code
Message="Object reference not set to an instance of an object."

At least it seems to be only when I do the mentioned grouping, but I won't say for sure that it won't happen in other cases as well. In my grid I mostly have Text columns, and the LoadLayout works fine if I group by these.

Is this a bug, or am I doing something wrong?  

Regards, Jill-Connie Lorentsen

Julian Benkov
Telerik team
 answered on 12 Nov 2009
5 answers
143 views
I'd like to make a "feature request" to add an option to allow multiple Tabs (GridViewTemplates) at the MasterGridViewTemplate (Root) Level.  I know this can be done by combining a TabControl or RadTabStrip with separate RadGridViews (or even having a 0-Row "dummy" MasterGridViewTemplate), but adding this feature would make it significantly easier for the developer and end-user.

Telerik WinForms 2009Q3 Beta (2009.2.9.1016) / 2009Q2 (2009.2.9.729), VB, VS 2005 (v8.0.50727.762 SP.050727-7600), .Net 2.0 (2.0.50727), XP SP3, 3GB, 2.99GHZ, Core2Duo.
Vassil Petev
Telerik team
 answered on 12 Nov 2009
0 answers
165 views
Radcombobox.Items.Clear();

Collection can not be cleared while the control is data bound. Clear the data source instead or set the DataSource property to null.

anyone can help me...

thanks
vignesh
kottu
Top achievements
Rank 1
 asked on 12 Nov 2009
0 answers
197 views
Hi Telerik
i am having issue with RadGridView most of time it works fine but some times when i load gridview it comes with blank rows the number of rows are same as my datatable row count but there is no data in rows

im using datatable to loop grid and add each row one by one

example
RadGridView.Rows.Clear()

for i=0 to dtTable.rows.count-1
    RadGridView.Rows.AddNew()
    RadGridView.Rows(i).Cells(1).Value ="<value>"
    ..
next

now most of time it works fine but some time it just shows me blank rows with no data
i was using Q2 2009 now i have updated with Q3 2009 but still same problem

help me please thanks

Kind Regards:
Harinder Singh

PunjabiSingh
Top achievements
Rank 2
 asked on 12 Nov 2009
1 answer
108 views
I am using the following code to set the datasource for combobox Column

((GridViewComboBoxColumn)radGridView1.Columns["Name"]).DataSource = from medicine in db.Medicines
                                                                                                                         select medicine;
 ((GridViewComboBoxColumn)radGridView1.Columns["Name"]).DisplayMember = "Name";
((GridViewComboBoxColumn)radGridView1.Columns["Name"]).ValueMember = "ID";

during adding new row in grid, when i click on combo column, following exception throws

but getting the following Exception

"The list must be an IBindingList to AddNew."

a quick response would be highly appreciated

thanks
Julian Benkov
Telerik team
 answered on 12 Nov 2009
1 answer
228 views
Hi All,

I am wondering how to programable change the ForeColor of a toolstrip label. The following code does not work.

tslMode.ForeColor = Color.Red

Thanks in advance
Mark

Martin Vasilev
Telerik team
 answered on 12 Nov 2009
6 answers
1.6K+ views
I am evaluating RadControls for WinForms, particularly the GridView and so far am impressed.  I was wondering though, is there a way to check if a row or cell is dirty, or has been changed?  It would be great if I could do this in the CurrentRowChanging event.
Martin Vasilev
Telerik team
 answered on 12 Nov 2009
7 answers
465 views
I'm trying to "Conditionally Format" a Row in a different color whose Date value in a specified Column is equal to a specified value.  I added ConditionalFormattingObject using RadGridView.Columns.Item("Date Column's Came").ConditionalFormattingObjectList.Add method.  I haven't been able to get it to work with comparison values other than blank.

I know I can always manually implement conditional formatting using the RowFormatting or CellFormatting Events.  However, that means the user can't add, edit or delete the formatting (unless you also implement your own Conditional Formats Editor) it and it can't be saved / loaded by SaveLayout / LoadLayout (unless you manually add / remove-interpret it before / after the calls to SaveLayout / LoadLayout ).  Getting the ConditionalFormattingObject to support comparing non-blank Date values would still be the ideal solution.

Telerik 2009Q2 (2009.2.9.729), VS 2005 (v8.0.50727.762 SP.050727-7600), XP SP3 on Core2Duo 2.99GHZ with 3GB.
Martin Vasilev
Telerik team
 answered on 11 Nov 2009
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?