Telerik Forums
UI for WinForms Forum
1 answer
174 views
I use a background worker to load data into my grid. It is not bound, due to special requests by the users, I must insert each row manually. After inserting all the data to the grid, I add a programmatic GroupByExpression to automatically group when the grid renders in my application and programmatically expand all the groups.

However, after upgrading to the latest Telerik Winform controls (Q3 2009), the vertical scrollbar disappears -only- for the grids where I have programmatic grouping with automatic group expansion. Other grids in the application do not have any problems. 

Eventually I made the Vertical Scrollbar Visibility to be Always True. However, this still did not solve the problem. The scrollbar does not actually scroll. It is not recognizing that there are more rows to scroll down to. I've even tried manually adjusting the VScrollBar.Maximum value to no avail. 

The scroll will work again if I remove the group on client side, then re-add it, or if I collapse a group then re-expand it, again on client side. But this is cumbersome for users. One other thing to note, if I do not Expand All Groups, the vertical scrollbar shows up perfectly and works fine after expanding the groups on the client side.

I have added a snippet of how I am adding the GroupExpressions below. As well as how I'm using Group Summary Event in this scenario.

 
private void pendingWorker_RunWorkerCompleted (object sender, RunWorkerCompletedEventArgs e) {  
    try {  
        this.gridView.Rows.Clear();  
        this.gridView.MasterGridViewTemplate.GroupByExpressions.Clear();  
        if (documentData != null && documentData.Rows.Count > 0) {  
            int rowCount = 0;  
            foreach (DataRow dr in documentData.Rows) {  
                ModelObject obj = GetModelObject(dr);  
                this.gridView.Rows.AddNew();  
                PopulateRow(obj, rowCount);  
                rowCount++;  
            }  
        }  
        this.gridView.MasterGridViewTemplate.GroupByExpressions.Add("[StatusColumn] Group By [StatusColumn]");  
    } catch (Exception ex) {  
        messageToolTip1.ShowExceptionMessage(ex);  
        logger.Error(ex);  
    }  
    CleanUpLoadingWorker();  
}  
 
void OnGroupSumaryEvaluate (object sender, Telerik.WinControls.UI.GroupSummaryEvaluationEventArgs e) {  
    try {  
        if (e.FormatString.ToLower().Contains("status")) {  
            e.FormatString = "STATUS STANDING : {0}";  
            this.gridView.MasterGridViewTemplate.ExpandAllGroups();  
        }  
    } catch (Exception ex) {  
        messageToolTip1.ShowExceptionMessage(ex);  
        logger.Error(ex);  
    }  
}  


Is there a workaround here that will satisfy user requirements and have the vertical scrollbar work as expected?

Thanks
Jack
Telerik team
 answered on 12 Nov 2009
1 answer
107 views
With Q2 2009 (2009.2.9.729) and even Q3 2009 Beta (2009.2.9.1016), the end-user was able to type the ampersand ("&")-prefixed letter in the Text Property of a RadMenuItem on the ContextMenu to select that item.  Starting with the final release of Q3 2009 (2009.3.9.1103), those letters are non-repsonsive.

Telerik WinForms 2009Q3 (2009.3.9.1103), VB, VS 2005 (v8.0.50727.762 SP.050727-7600), .Net 2.0 (2.0.50727), XP SP3, 3GB, 2.99GHZ, Core2Duo.


Deyan
Telerik team
 answered on 12 Nov 2009
1 answer
172 views
I just installed Telerik Q3 2009 WinForms (2009.3.9.1103) over Q2 2009 (2009.2.9.729) and it's now keeping Focus on the RadMenu vs. the first Visible, Enabled Control (1) on the Modeless System.Windows.Forms.Form (C) I opened from the Modeless System.Windows.Forms.Form (B) the RadMenu is in after selecting a RadMenuItem from that RadMenu even though Form C is the Active Form and its Control 1 is highlighted with a flashing Text Cursor.  By keeping Focus, I mean Left / Right Arrow keys cycle through  the RadMenu options vs. moving through the parts of Control 1 (which btw is a RadDateTimePicker).  Form B is a child of App's Startup Form A.

Telerik WinForms 2009Q3 (2009.3.9.1103), VB, VS 2005 (v8.0.50727.762 SP.050727-7600), .Net 2.0 (2.0.50727), XP SP3, 3GB, 2.99GHZ, Core2Duo.
Deyan
Telerik team
 answered on 12 Nov 2009
9 answers
488 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
146 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
388 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
131 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
146 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
185 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
100 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
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
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?