Telerik Forums
UI for WinForms Forum
4 answers
316 views
What is the proper way to proportionally resize a form?

Currently I just have:
private void Form1_Resize(object sender, EventArgs e)  
{  
    this.Height = this.Width;  

This correctly resizes the height when it's horizontally resized, but it flickers between the initial size and the "dragging" size.

Any idea on how to fix this?

I need this to work vertically as well.  Ideally I'd like to have the ratio calculated from the initial size.

Hope someone can help.

Thank you
MattLynch
Top achievements
Rank 1
 answered on 02 May 2007
1 answer
130 views
Hi

I am using the same grid to show multiple column formats from several different tables.

VB .NET
        Me.rgvMain.DataSource = Nothing 
        Call Me.rgvMain.Rows.Clear()  
        Call Me.rgvMain.MasterGridViewTemplate.Columns.Clear()  
        Call Me.rgvMain.Refresh() 

I use the above code at the top of my column creating code to "clean" the grid before rebuilding with new columns.

HOWEVER, if my grid comes back correctly with no data then the number of rows previously shown remain on screen as blank rows.

Kind Regards

David
Kiril
Telerik team
 answered on 02 May 2007
1 answer
129 views
Hi guys

In a seperate thread, I asked about a missing Readonly property for the RadGrid. You suggested using AllowAddNewRow=False, AllowEditNewRow = False, AllowDeleteRow = False which I did and it works fine.

However, when I right click on a row to view the RadGrid context menu it still offers Edit and Delete Row as options. Although they don't actually do anything when selected, they really shouldn't be present on the context menu.

Regards

Mitch

Kiril
Telerik team
 answered on 02 May 2007
1 answer
172 views
Hello,

Is there any usage manual for RadScrollViewer?
 How can we use this control ?

Best Regards
Boyko Markov
Telerik team
 answered on 02 May 2007
1 answer
114 views
When I go to property builder and finish, the designer.vb deletes the grid's declaration, and the only way to get it back is to delete the grid and move it back on the form. What's going on?
Mike
Telerik team
 answered on 02 May 2007
1 answer
166 views
The control would allow you to define commands.
Like "Quit", "Save file", "Save all" and so forth.
The definition would contain everything you need for a command. It's event callback, toolstrip icon, tooltip text, short cut key and so forth.

The main goal of this would then be that you could then use these commands from anywhere. Like to add a "Save all" entry in the main menu you would just point to the command managers "Save all" entry and be done with it.
If you want the same functionality in a context menu or on a tool strip you would just point to the same command manager and the same command.
Change anything in that command and all places will be updated with the new icon, text or whatever.
The idea would be to get rid of the double definition of commands. If worst comes to worst you define the same icon, text and event callback in 3 diffrent places. (Menu, Context menu, Tool strip)

Using such a system the user would also be allowed to define his own toolstrips and menu choices, if he so wished because we would have a global pool of commands the user could use.

All this is featured in the excellent prof-uis package that I sadly had to leave behind because it's MFC & C++ only

Prof-Uis customizations
Command Manager

Dimitar Kapitanov
Telerik team
 answered on 02 May 2007
4 answers
369 views
I have a data table with a GUID column I am binding to the grid view.  After setting the data source, I am programmatically setting a group by expression, setting the column type for the GUID column to System.Guid and hiding the GUID column.  I have also enabled autosizing on all columns as well as on the master table.

Problems:

(1) As I scroll through the grid, seemingly randomly some rows display a portion of the hidden column.  There is no rhyme or reason to it - scroll to the bottom, and then back to the top and the first row shows part of the hidden column.  Scroll just enough until the column is off display and then back, and sometimes the hidden column is gone, other times not.

(2) Nothing I do, no property I set, nothing will cause the columns to autosize.  They all reset back to 50 wide.  I can resize the columns manually and they stay.  But nothing will make them columns start out properly sized, including setting column widths when defining the master table layout.

(3) When issue 1 happens on any row, the columns for that row are no longer aligned with the column headers.  When the hidden column disappears again, the columns are properly aligned with the headers.

(4) I can't find any way to add a "command" type column to the grid.  I want to be able to add a column like the normal data grid view control where the user can click the text which appears like a hyperlink and have some action occur.  Is this not a feature or am I just missing something?

I am using Q1 2007.  HELP!  What am I doing wrong?  I REALLY want to use this control because of the display properties, but these seem like pretty big issues to me. 

-Dave Ferreira
Kiril
Telerik team
 answered on 02 May 2007
2 answers
205 views
If I copy an exe to another PC which dll's need to go with it? I'm used to asp.net apps and just copying the controls I need but in WinForms the controls are in the GAC I guess.
Dimitar Kapitanov
Telerik team
 answered on 02 May 2007
1 answer
179 views
Dear Telerik,

I'm using Q4 2006 version for WinForms. I created some themes suitable for my project and accordingly XML files were created. When I created setup for my project, the xml files doesn't get included in it. It gives me an error while installing the project.

Why such an error is occured.

Please reply, its urgent.

Thanks and Regards,
Venktesh S


Jordan
Telerik team
 answered on 02 May 2007
1 answer
618 views
The grid view can be very slow if you run it under the debugger in visual studio. After some digging I have found a fix for this problem. This problem is probably not just releated to the gridview but to the whole telerik framework.

The reason is that by default visual studio enabled extra checks in among other things the pinvoke. It's used when the CLR goes from managed to native code. This apparently happens in simple things like "Bitmap.Width". The penelty for these check is a slowdown of up to 100x. So we of course want to turn them off.

One way to do taht is to add a file called "<programname>.exe.mda.config" next to your exe.
In that file copy the following
<?xml version="1.0" encoding="UTF-8" ?>
<mdaConfig>
  <assistants>
    <pInvokeStackImbalance enable="false"/>
  </assistants>
</mdaConfig>

Lastly disable 'visual studio hosting" under the debug properties. Now your  app should run as quickly as using Ctrl+F5.

For more reading about this issue:
http://blogs.msdn.com/jmstall/archive/2006/10/23/debugger_5F00_slowdown.aspx
http://blogs.msdn.com/tlai/archive/2006/06/15/How-to-Disable-a-Specific-MDA.aspx
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=114648
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=106327
http://msdn2.microsoft.com/en-us/library/d21c150d(en-US,VS.80).aspx

Cheers
 Joakim E.
Xetick
Top achievements
Rank 1
 answered on 27 Apr 2007
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
CheckedDropDownList
ProgressBar
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?