Telerik Forums
UI for WinForms Forum
3 answers
144 views
Hi there,

this is my first post here, mainly because until now i have not had any real issues with the controls. 

Controls in Use: Rad Controls For Win Forms, Q1 2008

For my current project i need several Split Button elements on the Ribbon bar.

Normally, not an issue. But Now i am trying to edit the visual Look of them via the 'Edit UI Elements'. Once i make the changes , the visual design is applied at design time. However, once i run my application the control reverts to a OuterInnerBorder state which is not what i am wanting. I want a SingleBorder persisted on the control.

This problem is with all instances of the Split button, and Drop Down Button elements for the Ribbon bar.

I am also editing the size of the Fill Primitives, these too are not persisting the changes i am making once i run my application.

Any one have any ideas as to why this may be???????

Thanks in advance for your replies.

Oh as a side not, the ribbon bar chunk is showing the same behaviors. I turn off Auto Size, and manually define them for some of the chunks (Trying to keep the height the same across all chunks and tabs. Width and height settings are not being maintained on the bar chunks)
Hobbes
Top achievements
Rank 1
 answered on 03 Nov 2009
3 answers
406 views
Hello,
I am using GridViewSummaryRowItem and i found it very useful so far. However I have problem with adding custom format (color, border) to the total row. In examples there is code snippet that uses  cell formatting event to do so:

  if (e.CellElement is GridSummaryCellElement) 
            { 
 //Set formatting... 
            } 


But my GridView doesn't fire either cellfromatting or rowformatting event for the total row, so I have no way how for example set custom background color. Here's my code to setup the total row:

     
      GridViewSummaryRowItem sum = new GridViewSummaryRowItem(); 
            sum.Add(new GridViewSummaryItem("CeleJmeno""Celkem", GridAggregateFunction.None)); 
            sum.Add(new GridViewSummaryItem("Preplatek""{0:C}", GridAggregateFunction.Sum)); 
            sum.Add(new GridViewSummaryItem("Zustatek""{0:C}", GridAggregateFunction.Sum)); 
 
            this.grdHromadnaVyplatnice.MasterGridViewTemplate.SummaryRowsBottom.Add(sum); 

Doug Hamilton
Top achievements
Rank 1
 answered on 03 Nov 2009
4 answers
119 views
I just installed Telerik Q3 2009 WinForms BETA (2009.2.9.1016) over Q2 2009 (2009.2.9.729) and clicking on the Filter Row of a Date Column started generating an error.

System.NullReferenceException: Object reference not set to an instance of an object. 
   at Telerik.WinControls.UI.GridTableElement.get_CurrentCell() 
   at Telerik.WinControls.UI.RadGridView.get_CurrentCell() 
   at Telerik.WinControls.UI.RadGridView.BeginEdit() 
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownLeft(MouseEventArgs e) 
   at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDown(MouseEventArgs e) 
   at Telerik.WinControls.UI.RadGridView.OnMouseDown(MouseEventArgs e) 
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks) 
   at System.Windows.Forms.Control.WndProc(Message& m) 
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m) 
   at Telerik.WinControls.RadControl.WndProc(Message& m) 
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) 
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) 
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) 
 

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.
Nick
Telerik team
 answered on 03 Nov 2009
2 answers
136 views
What I wantto do is in the CellFormatting event(of elsewhere) I want to dynamically add a chart to a cell.
I can create the chart from code with no problem but I don't see a way to add a chart or any other control to a cell.
What I thought I would be able to do is this(pseudo):

 

GridCellElement cell = e.CellElement;

 

cell.Controls.Add(createChart(series1Val, series2Val));


Is there a way to add a chart to a grid and or a cell specifically?
Of if I need to do it at the column level(and use values from other columns) or any other level, please let me know..

Thanks

--Chuck
Nick
Telerik team
 answered on 03 Nov 2009
0 answers
107 views
done
NewBee
Top achievements
Rank 1
 asked on 03 Nov 2009
2 answers
174 views
Hi,
I am using a RadDock control with AutoDetectMDIChildren set to true. I have been given forms to be hosted as tabbed documents. I do this by setting the forms' MdiParent property to the main form and then calling their Show methods. These forms override the Form.OnActivated method. This method is never called.

Here is a simplified example:

    public partial class MdiChild : Form  
    {  
        public MdiChild()  
        {  
            InitializeComponent();  
        }  
 
        int counter = 0;  
        protected override void OnActivated(EventArgs e)  
        {  
            label1.Text = string.Format("Activated {0}", ++counter);  
        }  
    }  
 
When I first show the form I would expect its Label1 to display Activated 1. If I click on another tab then back on this form's tab I would expect to see Activated 2 etc.

Thanks
Nick
Telerik team
 answered on 03 Nov 2009
1 answer
188 views

Good morning.

            I have problems with radDock layout and serialization. My problems are also visible in the application examples provided with radControls. I use Visual Studio 2008 Express Edition on a Windows XP OS. RadControls version is RadControls for WinForms Q2 2009 SP1.

 

  1. In the test application Examples\Docking\Serialization, when I want to move ToolWindow1 on the left, I see in the preview that it’ll fill half the space of  ToolWindow3. When I dropped ToolWindow1, the result is not the same, and the windows will not appear as in the preview.
  2. When I modify the layout and then save the new layout, when I load the layout a new floating radForm will appear. Trying to move it around by clicking on the title bar causes it to disappear. Then, every time I try to load the layout again, all is ok. I mean: if I modify the layout and save the changes, the first time I reload the new layout I got the problem. If I save the layout again (with no changes), no problems arise.

 

The same behaviour I obtain in my applications.

Thank you.

Georgi
Telerik team
 answered on 03 Nov 2009
8 answers
287 views
Hi,
My ListBox is populated with more items than fit into it, and I can thus scroll up and down.
Now, when I select an item and then scroll until it is not displayed anymore, and then scroll back, the selected item is not shown in "selected" style anymore.
Only when I move the mouse over the item, it is displayed in "selected" style again afterwards.

This problem seems to be related with this one:
http://www.telerik.com/community/forums/winforms/gridview/radgridview-row-formatting.aspx

i.e. "Only the rows that are visible on screen have visual elements. When the grid is scrolled, the visual elements are reused for other logical elements."

But I want my ListBox to show the selected items. The user doesn't want to play hide and seek.
What do I need to do?
/J
Victor
Telerik team
 answered on 03 Nov 2009
0 answers
106 views
How can we apply Custom skins to Rad scheduler.... how many types we can apply....
nagesh Mynedi
Top achievements
Rank 1
 asked on 03 Nov 2009
2 answers
127 views
I have RadControls for WindowsForms 8.1.0.0 installed on my Vista x64 machine.  I recently upgraded RadControls for ASP.Net from Q1 2008 to Q2 2009.  After the upgrade, with a little work, I got my ASP.net projects working wonderfully and was fired up.  However, I went in to do a little work on a win forms project, and I started getting a "No such property registered" error when opening the designer.  Looking through the forums, I found that other users experienced this when upgrading their win forms controls.  It seems that my case is slightly different in that the conflict is occuring on Telerik.VSX.Controls in my GAC, which was put there by the ASP.Net controls.  I can't uninstall it from the GAC becuase the installer has it protected.  If I do a full uninstall of the ASP.net controls, the winforms projects work fine.  Any ideas?

Thanks,
Alex Johnson
Alex
Top achievements
Rank 1
 answered on 02 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
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?