Telerik Forums
UI for WinForms Forum
1 answer
125 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
317 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
90 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
114 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
154 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
80 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
149 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.5K+ 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
375 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
1 answer
112 views
Hello

Currently I have the following problem: In my solution there is a radgridview object bound to a MS SQL table containing one string field, three numeric fields and one boolean field. None of these fields are allowed to be NULL. If I click on "new row" the editor of the first field opens correctly. Now if I click to another row in the table the grid raises the DataError event because the field values are not set. So far, so good.

In my event handler I want to check if all values are empty and then cancel the "add new row" process. So I want to check the values of the problem line by using GridViewDataRowInfo myRow = radGrid.Rows[e.RowIndex] and then loop over all cell values.
But when the event is raised I get e.RowIndex=0 and e.ColumnIndex=-1. RowIndex points to the first existing row in the table but this is not the problem line. Also the columnindex points not to the problem field.

Do I do a mistake by checking RowIndex/ColumnIndex for a new row?

I use Q2/2009 of the telerik suite.

Any ideas or better solutions to solve this problem are welcome.

Kind regards
Roger
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)
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
ProgressBar
CheckedDropDownList
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?