Telerik Forums
UI for WinForms Forum
1 answer
64 views
Prior to Q3 2009 Beta, entire trees of ChildGridViewTemplates get skipped entirely when you scroll their Parent GridViewTemplates.  Now that you're using one Vertical Scroll Bar for the entire forest of GridViewTemplates, they're no longer being skipped and you're actually scrolling through them.  This brings up the issue where you're looking at Data Rows of ChildGridViewTemplates with only the Column Headers for the MasterGridViewTemplate showing.  Could you please change the standard behavior or add an optional behavior such that, when a ChildGridViewTemplate Row is currently the 1st Visible Row in the RadGridView, it will either:

a)  pin the Tabs (if any) and Column Headers Rows for that ChildGridViewTemplate just under the Tabs (if any) and Column Headers Rows for the Parent GridViewTemplate of that ChildGridViewTemplate, or

b) replace the MasterGridViewTemplate's Column Headers Row.  This may be preferred because option a could leave you with a cascading tree of Tabs (if any) and Column Headers Rows that will eventually fill up your whole Visible RadGridView depending on how many hierarchy levels you have and the height of your RadGridView.

Telerik 2009Q3 Beta (2009.2.9.1016), VS 2005 (v8.0.50727.762 SP.050727-7600), .Net2 (2.0.50727), XP SP3, Core2Duo 2.99GHZ with 3GB.

Jack
Telerik team
 answered on 23 Oct 2009
3 answers
155 views

Can RadGridView support Export to Excel in Traditional-Chinese chars (in Office2007 Traditional-Chinese)?

I try these scripts, but the Chinese Chars cannot show(I only see the "?" char),

   ExportToExcelML exporter = new ExportToExcelML(this.radGridView1);
   exporter.SheetMaxRows = ExcelMaxRows._65535;
   exporter.ExportVisualSettings = true;
   string fileName = "ExportedData.xls";
   exporter.RunExport(fileName);

thanks for your kindly help.

Edwin


below is some sample data from the generated excel file:


StorerKey Type Company VAT Address1 Address2 Zip Contact1 Contact2 Phone1 Phone2 Fax1 Fax2 Email1 Email2 MemberID MemberAddDate ShortCode ShortName Phone Contact3 Phone3 Http TransactionCount TransactionAmount AvailableAmount LastTransactionDate DeliveryType PayType TaxType isVendor SaleMan SaleMan1 SaleMan2 SaleMan3 SaleManPhone1 SaleManPhone2 SaleManPhone3 SaleManMobile1 SaleManMobile2 SaleManMobile3 ContactMobile1 ContactMobile2 ContactMobile3 CounterNO SearchPath ChannelStorer GroupNo InvTitleCode BelongtoChannelStorer ISCusLabel PrePayAmount DeadAmount UseCase Zone SalesPermotePercent InvoiceTitle ZoneCombineType IsInvoice ZeroAmountNewTicketAllowed SendShippingTKByPDFFtpFolder SendShippingTKByPDFFtpFolderOn SendShippingTKByPDFEMail SendShippingTKByPDFFax SendShippingTKByPrintOut ShippingTKByPDFFtpFolder CurrentMonth_NotPayedMoney LastMonth_NotPayedMoney Last2Month_NotPayedMoney Over2Month_NotPayedMoney SubZone isPaperVendor SafetyPriceState SafetyPriceStateSystemInfoDate SafetyPriceStateInfoMan SafetyPriceStateInfoType SafetyPriceStateInfoDate isShipTKNotes ManufactureCompanyKey CompanyDetailKey Contact1Email Contact2Email FTPDataEmail AllowedAmount isOPVendor isSelfVendor UniqueTicket isCompanyInvoiceTitle ClientSystem Stop SalesNotes IssueMark Notes1 Notes2
0000000850 162 ???(??:????)   ????????????1?3?14?3-1? ????????????1?3?14?3-1? 427 ??? ??? 04-25336789 04-25336789 04-25316699       B0624 37622   ??? 04-25336789       112 237222 3430 39989.29 14 3 0 N SA SALE010 SARA SA 0970-066321#6026           0932-533263 0932-533263     \\dl360\f7\???\0000000850_????   F7-??? 00001   Y 0 0   0051 1.1   B Y Y N N N N Y   0 0 0 0     0         Y 00001 G0001       -5000 N N N N            

Martin Vasilev
Telerik team
 answered on 23 Oct 2009
5 answers
585 views
I have a radtabstrip in a VB.NET project. examples to add and remove tabs have been noted and used.
using values from a database, tabs with unique names are created. how do i check whether the tab already exists prior to creating it?

Cheers


  
Erwin
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
429 views
I have a dock component with a Toolwindow on the left (classical case) and a maximum of 4 documentWindows which are created on demand (A "new" button in the ribbon bar).

So, I can clic on DocumentWidows to select one of them and do some action in the toolwindow (select a date for example) to refresh the content of the selected DocumentWindow.

My problem is : How can I get the active documentWindow?

I've tried MyDock.ActiveWindow but it constantly return the ToolWindow because when in clic on the controls inside my toolWindow, it activate it.

What is the "best practice" to do what I want?

Thank you
Nikolay
Telerik team
 answered on 22 Oct 2009
0 answers
136 views
Hello,

I`m using Q3 2008 WinForms, And i use RadGridView and wanna Remove some rows when user click on a bottum on form. I used this code to remove rows one by one.

DialogResult mr = new DialogResult();  
mr = MessageBox.Show("Are U Sure?");  
if (mr == DialogResult.OK)  
            {  
                Telerik.WinControls.UI.GridViewDataRowInfo Row;  
                int RCount = GridHdr.SelectedRows.Count();  
                for (int I = RCount - 1; I > -1; I--)  
                {  
                    Row = (Telerik.WinControls.UI.GridViewDataRowInfo)GridHdr.SelectedRows[I];  
                    Row.Delete();  
                    BindingSourceHdr.EndEdit();  
                    AdapterHdr.Update(dBDataSet);  
                }  
            } 

before this code i`m using foreach statement but in two statement i have problem whit Removing
foreach(GridViewDataRowInfo Row in GridHdr.SelectedRows)  
{  
  Row.Delete();
  BindingSourceHdr.EndEdit();  
  AdapterHdr.Update(dBDataSet);  
when one row was deleted SelectedRows Collection was change and exception occord in runtime.

Regards
Hamid
HamiD Mayeli
Top achievements
Rank 1
 asked on 22 Oct 2009
2 answers
108 views
It is our pleasure to announce the availability of Q3 BETA for RadControls for WinForms. Among the many improvements in the controls, the Beta preview of Telerik’s Q3 release focuses on optimizations in Telerik Presentation Framework allowing for breaking improvements in performance. Full information on the beta you will find in our Beta Lab and in the Release Notes.
 
The downloads are now available in your account (or free trials):



Please, use the Beta Forum to post your feedback.
 
Enjoy!
Nick
Telerik team
 answered on 22 Oct 2009
4 answers
195 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
132 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
274 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.2K+ 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
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?