Telerik Forums
UI for WinForms Forum
2 answers
126 views
WinForms RadControls Q3 2007
Visual Studio 2005
.NET 2.0

I want two columns pinned and I set IsPinned property to true.
When I scrolling grid content of other columns slide under pinned colums.
I tried to create a new Theme and set backcolor of GridRowElement (root/element) with Telerik Visual Style Builder but I nothing changed.

I created a conditional formatting to force backcolor to white, but in this way I lose borders of row selection.

Any better idea?
Thanks in advance,
Emanuele Savarese

This is code to reproduce error. Uncomment rows to view my solution with conditional formatting.
        private void Form1_Load(object sender, EventArgs e) 
        { 
            DataTable dt = new DataTable(); 
            dt.Columns.Add("From", typeof(bool)); 
            dt.Columns.Add("To", typeof(bool)); 
            dt.Columns.Add("Description", typeof(string)); 
 
            dt.Rows.Add(false, false, "hi1"); 
            dt.Rows.Add(false, false, "hi2"); 
            dt.Rows.Add(false, false, "hi3"); 
            dt.Rows.Add(false, false, "hi4"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi6"); 
 
            radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false
            radGridView1.Columns.Add(new GridViewBooleanColumn("From")); 
            radGridView1.Columns[0].IsPinned = true
            radGridView1.Columns.Add(new GridViewBooleanColumn("To")); 
            radGridView1.Columns[1].IsPinned = true
            radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); 
            radGridView1.Columns[2].ReadOnly = true
            radGridView1.Columns[2].Width = 1000
 
            //ConditionalFormattingObject item = new ConditionalFormattingObject("ruleName", 
            //    ConditionTypes.LessOrEqual, "aa", string.Empty, true); 
            //item.CellBackColor = Color.White; 
            //item.RowBackColor = Color.White; 
            //radGridView1.Columns[0].ConditionalFormattingObjectList.Add(item); 
 
            //item = new ConditionalFormattingObject("ruleName", 
            //    ConditionTypes.LessOrEqual, "aa", string.Empty, true); 
            //item.CellBackColor = Color.White; 
            //item.RowBackColor = Color.White; 
            //radGridView1.Columns[1].ConditionalFormattingObjectList.Add(item); 
 
            radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect; 
            radGridView1.DataSource = dt
        } 



Emanuele Savarese
Top achievements
Rank 1
 answered on 14 Jan 2008
1 answer
120 views

how can i mimic the office2007 ColorMenu?

the image
http://picasaweb.google.com/chaco.zhao/Question/photo#5155168280711845058

thank you 

ps: I implement ColorMenu in the way of RadGralleryElement, but fail.

 

Kiril
Telerik team
 answered on 14 Jan 2008
2 answers
64 views

hey,
I'm looking for a way to mimic the excel 2007 "fixed menuitem" in dropdownmenu functionality.  (the image below)
 http://picasaweb.google.com/chaco.zhao/Question/photo#5153743197678130354

Thank you

Georgi
Telerik team
 answered on 11 Jan 2008
5 answers
348 views
I am having a problem with the RadGridView when setting the datasource to null.

I have to dynamically generate a table I use for datasource. As I add or subtract columns everything seems to be working. The problem comes when I remove the last displayed column, the view still shows the column with all the rows. Although if I click a row I get a RowNotInTableException. Am I doing something wrong?

The pertinent code is : 

dataGridView1.GridElement.BeginUpdate();
dataGridView1.DataSource = CalculateTable(...);
dataGridView1.GridElement.EndUpdate();

The CalculateTable method returns null if there is nothing to do. Should I return an empty table instead, or is it some update thing I am not doing?

Kiril
Telerik team
 answered on 11 Jan 2008
1 answer
237 views
AutoSize is set to true on my RadPanel.  The AutoScrollMinSize does not shrink even if I set the MinSize to 0 because the underlying controls are wider than the  I would like to know if it is possible to hide the Horizontal Scrollbar even if the underlying controls are too wide.  I still want to have the Vertical Scrollbar enabled/visible.  Does the RadPanel have a function that would allow me to disable the Horizontal ScrollBar?

Thanks.

Dennis
Boyko Markov
Telerik team
 answered on 11 Jan 2008
3 answers
92 views
Open the WinControls examples application and then choose to view the TAB Drag & Drop example for TabStrip WinControl.

Perform a drag and drop.

Expected behaviour is that control that is dragged is placed at location indicated by the drop hint location.

Instead the dragged control is placed at new location but additionaly the control at the drop location is swapped with original location of dragged tab?!

This behaviour was working properly in older version of WinControls. We are seeing this error for the first time with Q3 release.
Boyko Markov
Telerik team
 answered on 11 Jan 2008
1 answer
148 views
I need to create WinForm where I will rotate data separated by columns, and which will allow user to do sorting. Ideally I would rotate content of RADGridView. Is it possible?
Georgi
Telerik team
 answered on 10 Jan 2008
1 answer
129 views
Hey all,
         I am using RadRibbonBar inside my windows application. I want to know if I can swap two tabs locations in runtime. i.e I have tab1 as the first tab in my RibbonBar and tab2 as the second tab in my RibbonBar, what I want to do is to change the tabs locations and to make tab1 as the second tab and tab2 as the first tab in the RibbonBar using a Button click event in runtime. Is this functionality available?
Thanks in advance
Boyko Markov
Telerik team
 answered on 10 Jan 2008
2 answers
137 views
Hi,

I am finding more basic issues with the RadRibbonBar.

Please consider the following code:

foreach (WebSite webSite in LookupManager.WebSites)  
            {                 
                RadMenuItem radMenuItem = new RadMenuItem(webSite.WSit_Name.Trim(), webSite);  
                radMenuItem.Click += new EventHandler(radMenuItem_Click);  
 
                if (webSite.WSit_IsEnabled)  
                {  
                    RadMenuItem radSubMenuItem = new RadMenuItem("Web Site Content");  
                    radSubMenuItem.FitToSizeMode = RadFitToSizeMode.FitToParentContent;  
                    radSubMenuItem.Image = LookupManager.GetImage(LookupManager.ImageKey.WorldStockItem);  
                    radSubMenuItem.TextImageRelation = TextImageRelation.ImageBeforeText;  
                    radMenuItem.Items.Add(radSubMenuItem);  
 
                    if (webSite.WSit_AllowAutoPush)  
                    {  
                        RadMenuItem radSubMenuItem = new RadMenuItem("Publish Stock Item to Web Site");  
                        radSubMenuItem.FitToSizeMode = RadFitToSizeMode.FitToParentContent;  
                        radSubMenuItem.Image = LookupManager.GetImage(LookupManager.ImageKey.WebSiteStockItemPublisher);  
                        radSubMenuItem.TextImageRelation = TextImageRelation.ImageBeforeText;  
                        radMenuItem.Items.Add(radSubMenuItem);  
                    }  
                    if (webSite.WSit_HasAdminTools)  
                    {  
                        RadMenuItem radSubMenuItem = new RadMenuItem("Extranet Tools");  
                        radSubMenuItem.FitToSizeMode = RadFitToSizeMode.FitToParentContent;  
                        radSubMenuItem.Image = LookupManager.GetImage(LookupManager.ImageKey.Configure);  
                        radSubMenuItem.TextImageRelation = TextImageRelation.ImageBeforeText;  
                        radMenuItem.Items.Add(radSubMenuItem);  
                    }  
                    if (webSite.WSit_IsSitecore)  
                    {  
                        RadMenuItem radSubMenuItem = new RadMenuItem("Sitecore");  
                        radSubMenuItem.FitToSizeMode = RadFitToSizeMode.FitToParentContent;  
                        radSubMenuItem.Image = LookupManager.GetImage(LookupManager.ImageKey.Sitecore);  
                        radSubMenuItem.TextImageRelation = TextImageRelation.ImageBeforeText;  
                        radMenuItem.Items.Add(radSubMenuItem);  
                    }  
 
                    RadMenuItem radWebSiteDetailsMenuItem = new RadMenuItem("Web Site Details");  
                    radWebSiteDetailsMenuItem.FitToSizeMode = RadFitToSizeMode.FitToParentContent;  
                    radWebSiteDetailsMenuItem.Image = LookupManager.GetImage(LookupManager.ImageKey.WorldMagnify);  
                    radWebSiteDetailsMenuItem.TextImageRelation = TextImageRelation.ImageBeforeText;  
                    radMenuItem.Items.Add(radWebSiteDetailsMenuItem);  
 
                    RadMenuItem radWebSiteBrowseMenuItem = new RadMenuItem("Browse Web Site");  
                    radWebSiteBrowseMenuItem.FitToSizeMode = RadFitToSizeMode.FitToParentContent;  
                    radWebSiteBrowseMenuItem.Image = LookupManager.GetImage(LookupManager.ImageKey.InternetExplorer);  
                    radWebSiteBrowseMenuItem.TextImageRelation = TextImageRelation.ImageBeforeText;  
                    radMenuItem.Items.Add(radWebSiteBrowseMenuItem);  
 
                }  
 
                try 
                {  
                    radMenuItem.ShowArrow = true;  
                }  
                catch (Exception ex)  
                {  
 
                }  
 
                try 
                {  
                    radMenuItem.Image = LookupManager.GetImage(LookupManager.ImageKey.World);  
                }  
                catch (Exception ex)  
                {  
 
                }  
 
                radRibbonBarWebSiteDropDownButton.Items.Add(radMenuItem);  
            }  
 

Notice the try {} blocks? Well I have to do that, otherwise a NullReferenceException is thrown on both methods. Bizarrely, the image setting works, even though the exception was thrown. I've previously seen this when setting the colour of a contextual tab group.

Any progress on automatically setting (or even programmatically being able to do it) the first contextual tab when a contextual tab appears?
Jack
Telerik team
 answered on 10 Jan 2008
3 answers
146 views
Will future releases of the Telerik controls allow binary serialization of their collections and items making those collections.

Currently neither items nor item collections of any of the controls i've used
seem to be marked for serialization. Binary serialization allows a more
complete form of data persistence as well as allowing developers to add
customisation that we may need to our own serialization in addition to that.

The current xml serialization does not allow for any customisation and also
lacks a considerable number of object parameters that it currently serializes.

Could future releases pls allow nodes/node collections , listbox items and collections , combobox items and collections and all other control items and their collections to be marked for serialization.

Jordan
Telerik team
 answered on 09 Jan 2008
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?