Telerik Forums
UI for WinForms Forum
4 answers
231 views

I use an unbound radgridview. After initialization of the columns i have an empty radgridview.

When i now call radgridview1.MasterGridViewTemplate.BestFitColumns( );

then the column header is ignored in the calculation of the best size for the columns and all columns are shrunken to a few pixels.

Kind Regards,

Ramius 

Jack
Telerik team
 answered on 22 Oct 2009
1 answer
158 views
Previously in the Q2 2009 release on a RadPanelBar filled with RadPanelBarGroupElement and RadToggleButtons underneath the GroupElements occasionally the scrollbar would disappear, a simple work around that I told my end users to do was click the top most RadPanelBarGroupElement and it would appear again.

Now in the Q3 2009 Beta, that workaround doesn't work, is there something that changed to cause this not to work?  Even better, how can this be fixed for good so the workaround isn't necessary? Thanks.
Boyko Markov
Telerik team
 answered on 22 Oct 2009
2 answers
314 views
How do I get this to work? I'm dynamically adding a UserControl to the Dock control, and I can't seem to get the docked window to get scrollbars to show up when it is resized.

CSUserControl itemControl; 
 
            if (typeof(CSUserControl).IsAssignableFrom(ucType)) 
            { 
                itemControl = (CSUserControl) Activator.CreateInstance(ucType, parameterList); 
            } 
            else 
            { 
                UserControl item = (UserControl)Activator.CreateInstance(ucType, parameterList); 
                 
                itemControl = new CSUserControl(); 
                itemControl.Controls.Add(item); 
                item.Dock = DockStyle.Fill; 
            } 
 
            Size size = itemControl.Size; 
            //Hook up events 
            itemControl.WindowChangeRequested += documentPane_WindowChangeRequested; 
            itemControl.WindowOpenRequested += documentPane_WindowOpenRequested; 
            itemControl.WindowCloseRequested += documentPane_WindowCloseRequested; 
 
            itemControl.AutoScroll = true
 
            HostWindow host; 
            if (dockPosition == DockPosition.Fill) 
            { 
                host = _dock.DockControl(itemControl, dockPosition, DockType.Document); 
            } 
            else 
            { 
                host = _dock.DockControl(itemControl, dockPosition); 
            } 
 
            
            host.Text = documentName; 
            host.Name = documentName; 
            host.CloseAction = DockWindowCloseAction.CloseAndDispose; 
            host.AutoScroll = true
            host.TabStrip.AutoScroll = true
            //host.TabStrip.MinimumSize = itemControl.MinimumSize; 
            //host.MinimumSize = itemControl.MinimumSize; 
 
            DockTabStrip strip = (DockTabStrip)host.TabStrip; 
            strip.SizeInfo.AbsoluteSize = size; 
            _dock.ActivateWindow(host); 

CSUserControl is simply a wrapper around the standard UserControl that gives me some extra functionality.

I've gotten it SORT OF working by using the commented out lines above - when I set the TabStrip AutoScroll  = true and the minimum size as well, then the scrollbars show up. BUT it's terrible in implementation - the tabstrip randomly disappears or repeats itself, scrollbars show up when they're not supposed to be, scrolling around wrecks the tabstrib.

How am I supposed to be doing this?
MikeB
Top achievements
Rank 1
 answered on 21 Oct 2009
4 answers
1.3K+ views
Hi experts,

I am using the gridview for windows forms version Q1-2009, 
I am developing a vb2008 application which uses the rad grid view in unbound mode, my problem is , is it possible to assign datatype to each column. I mean column 1 as string, 2 as integer like that. If anyone knows the answer kindly replay me.
Thanks in advance
hipero
Top achievements
Rank 1
 answered on 21 Oct 2009
1 answer
64 views

Hi
I have a radgridview which has a column whose value is set by an expression:

Me.StockGrid.Columns("Total").Expression = "(Qty) *" & CInt(Me.radtextbox1.Text)

I want to use the result of the expression to populate another column in the same grid.

Me.StockGrid.Columns("req").Expression = "(Total – Available)”

 

The result is always  nothing although the total column value calculated by the first expression has a value and available has a value. Is this type of calculation valid?

Regards
joe

Julian Benkov
Telerik team
 answered on 21 Oct 2009
4 answers
176 views
Hello world,

I am discovering Telerik and I am pretty impressed so far. However, two problems have arisen:
1. Why does it take 5 seconds to show a simple form with just an empty Gridview inside? With the standard datagridview, it is instantaneous. Am I missing a point? I can't believe everyone who uses the Gridview has to endure waiting for 5 seconds even for empty objects.
You can easily reproduce this problem (just create two forms, one with the rgv and one without, launched from a third one). No need to set up any properties to the rgv to see the low display speed.
I tried to search on the forum for similar issues but Murphy's law is there for me: as the two links I have found are not working!
http://www.telerik.com/community/forums/winforms/gridview/initializing-slow.aspx

WinForms Controls - GridView Forum - Initializing slow

WinForms Controls - GridView Forum - Performance to open

... why just opening the window is very slow? with 4 controls of telerik, it takes 3
or more seconds... Imagine 10 controls!! thanks!! Reply. Telerik Admin. ...

http://www.telerik.com/community/forums/winforms/gridview/performance-to-open.aspx


2. When do you intend to implement support for subproperties in the hierarchical view? This is really a must have. I have found forum posts dated 2 years back and still no support for this feature... Is it on the roadmap somewhere? Is there a workaround better than building a virtual database (with plenty of IDs to link the objects together)? For your reference, the latest forum post I found on the subject was this one:

Thanks a lot for your help!

Erwin



Martin Vasilev
Telerik team
 answered on 21 Oct 2009
1 answer
300 views
Hello,

I cannot find where I have to modify the style of the RadForm to disable the fact that the color (of the title bar especially) changes (it becomes lighter, with Office2007Black theme) when the form loses focus (if we switch from one form to another).

Any direction would be more than welcome!

Thanks,

Erwin
Deyan
Telerik team
 answered on 21 Oct 2009
1 answer
104 views

In the RadControls for Winforms Q3 2009 Beta Demo Application in the gridview TabbedChildViews Demo:

When i change the Tabs Position to left or to right then only two tabs ("Details", "Orders") are displayed and the third tab "Perfromance" is not displayed. When there is not enough space to display all tabs at a position there should be a scrollbar or something like this which should auotmatically be displayed so all tabs could be reached. 

Kind Regards,

Ramius

Jack
Telerik team
 answered on 21 Oct 2009
5 answers
202 views
Dear friends,

In my translation activity i could not find how to translate the 'Previous/Next Appointment' buttons in RadScheduler.
Can you help me?

Here's my code:

class TradutorScheduler:RadSchedulerLocalizationProvider
{
        public override string GetLocalizedString(string id)
        {
            switch (id)
            {
                case RadSchedulerStringId.AppointmentDialogTitle:
                    return "Nova Tarefa";
                case RadSchedulerStringId.AppointmentDialogSubject:
                    return "Assunto:";
                case RadSchedulerStringId.AppointmentDialogDelete:
                    return "Apagar";
                case RadSchedulerStringId.AppointmentDialogCancel:
                    return "Cancelar";
                case RadSchedulerStringId.StatusBusy:
                    return "Ocupado";
                case RadSchedulerStringId.ContextMenuNewAppointment:
                    return "Nova Tarefa";
                case RadSchedulerStringId.ContextMenuNewRecurringAppointment:
                    return "Nova Tarefa Repetida";
                default:
                    return base.GetLocalizedString(id);
            }
        }
    }

Thanks in advance.

Boyko Markov
Telerik team
 answered on 21 Oct 2009
5 answers
196 views
Hi,

I am struggling, after some days of effort, with a trivial implementation of an unbound grid.

Scenario: I have an unbound data object which I am using to populate an editable grid. When the user clicks on the "Add new row" I trap the DefaultValuesNeeded event and populate the grid cells with the default data required for that row. One of the columns is a calculated primary key, which I calculate and provide during the DefaultValuesNeeded event. (Previously I tried using the Row .Tag property but this has a similar problem to that described here).

1) The default values supplied are not visible in the row being edited.
2) When the CellEndEdit event fires, I want to copy the data from the edited cell into my underlying business object. However none of the default values I set for the row are available in the row Cells collection (including, unfortunately the primary key for the newly added row).

How can I use RadGridView to maintain an unbound list of data which has a calculated primary key, and default values ? I am really struggling with this, as it seems to be a really common thing to want to do ?

It would help if I could find a clear list of the events which fire when a row is added, in what order, and what they are intended to do - I may be missing something in the online help, but there doesn't seem to be a clear description. Irrespective of this, it seems that the magic "Add new row" feature is pretty broken if I cannot address the cells on the row during the CellEndEdit event ...

Frustrated.
Phillip
Martin Vasilev
Telerik team
 answered on 21 Oct 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?