Telerik Forums
UI for WinForms Forum
2 answers
465 views
Hi,

may be this question has been solved here but I cannot find it in the different threads. I have a class deriving from RadGridView. For example, say the class Grid in the test namespace. In design mode, the ThemeClassName property is set to the actual class name by the designer, so test.Grid in the example. But the problem is that I cannot find the theme names I want in  the drop down list. If I force the ThemeClassName property to "Telerik.WinControls.UI.RadGridView", the drop down list is filled with the right theme names but as soon as I save the file the designer reset the ThemeClassName to test.Grid, as I can see it in the file.
So I found the way to force ThemeClassName = "Telerik.WinControls.UI.RadGridView" in the test.Grid constructor but it works in run time only; I cannot see the theme names in design mode.
What is the good way to proceed to apply themes to a derived class ?

thanks.
jpl
Top achievements
Rank 1
 answered on 25 Jul 2009
2 answers
115 views
Hello,

If I have a RadgridView and group by a column, colapse all the rows, then right click on one of the rows (on the blue group name in the RadGridView) I get the following error:

Object reference not set to an instance of an object.

at Telerik.WinControls.UI.RadGridView.ValidateColumnChange(GridViewColumn column)

at Telerik.WinControls.UI.GridViewTemplate.SetCurrentColumn(GridViewColumn column, Boolean update, Boolean shift, Boolean control)

at Telerik.WinControls.UI.BaseGridBehavior.SetCurrentPosition(GridRowElement row, GridCellElement cell)

at Telerik.WinControls.UI.BaseGridBehavior.OnMouseDownRight(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)

Richard Slade
Top achievements
Rank 2
 answered on 24 Jul 2009
2 answers
358 views
Hi,

I was wondering why the ButtonElement of the RadButton is not available through the designer. I see that rootElement is, but if I add a screen tip to that, then the screen tip doesn't show, which is quite confusing.

I've had to add a shared method to our controls project to allow us to add screen tips to buttons like so..
 
 
    Public Shared Sub AddScreenTip(ByVal button As RadButton, ByVal headerText As String, ByVal bodyText As String)  
        If Not button.ButtonElement.ScreenTip Is Nothing Then 
            button.ButtonElement.ScreenTip.Items.Clear()  
        End If 
        Dim Tip As New RadOffice2007ScreenTipElement()  
        Tip.CaptionLabel.Text = headerText  
        Tip.MainTextLabel.Text = bodyText  
        button.ButtonElement.ScreenTip = Tip  
    End Sub 
 
 

It seems strange to have to add screen tips this way. Could a Screen Tip interface be added to the RadButton at it's root level please?
Thanks

Richard
Richard Slade
Top achievements
Rank 2
 answered on 24 Jul 2009
2 answers
173 views
I hope this is simple, how can I edit a cell to not allow spaces.  The cell is required, and if I hit the spacebar and then enter it accepts it. This is what I have to edit it right now:

 

private void StateRadGridView1_CellValidating(object sender, CellValidatingEventArgs e)

 

{

 

GridViewDataColumn column = e.Column as GridViewDataColumn;

 

 

if (e.Row is GridViewDataRowInfo && column != null && column.FieldName == "MntStaName")

 

{

 

if (string.IsNullOrEmpty((string)e.Value))

 

{

 

MessageBox.Show("Description cannot be blank.", "JMS Error Message", MessageBoxButtons.OK, MessageBoxIcon.Stop);

 

}

}

Victor
Telerik team
 answered on 24 Jul 2009
1 answer
266 views
Hi,

is it possible to dynamically load a default theme assembly at runtime an set the theme as application theme. The user should be able to choose between all available themes. Now I have an object for all themes on main form and a reference to each theme. But in order to save loading time I want to load the assembly of the configured theme at application start. I did not found any documentation or sample how to do this.


Regards,

Markus
Nikolay
Telerik team
 answered on 24 Jul 2009
1 answer
96 views
I am working with the version 2009.1.9.414 of telerik radcontrols so
is there any way to download this version (to see samples) ?
When i check older versions i don't find this version.
What do you think?
Nick
Telerik team
 answered on 24 Jul 2009
1 answer
120 views

I have split my forms and my controls in several subprojects of my solution project.

It would be great if you could extend the project upgrade utility so that it can handle solution files and upgrade all projects in the solution project at once.

Regards,

Ramius

Nick
Telerik team
 answered on 24 Jul 2009
1 answer
127 views
Hello,

I've got a GridView in my application, when the users clicks a cell, the backcolor of the first cell of the row changes. That's working fine. But when I scroll in my View, the backcolor of the cell is not moving. The second row gets the backcolor of the firstrow and so on.

 What can the resolve this?

Thx in advance.

Regards,
Stefaan
Jack
Telerik team
 answered on 24 Jul 2009
1 answer
235 views
First off, I am using the Q2 2009 RadControls for Winforms in VS 2008 SP1.  I have a panel bar filled with RadButtonElements under each RadPanelBarGroupElement.  Upon clicking on one of the RadButtonElements, the panel on the right of the panelbar gets filled with the appropriate data.  My problem however is that the client I am working for would like to keep the RadButtonElement that they clicked on highlighted, just like it is when you hover your mouse over it until another RadButtonElement is selected.  Can this be done?
Boryana
Telerik team
 answered on 24 Jul 2009
2 answers
116 views
Hi,

I have developed a smart client desktop application using SCSF.

It has an MDI and MDI child forms opens over it(It is similar to windows menu based application using MDI) .

The problem is that the MDI child forms (i.e. the views) take a few seconds to open and load.

Is there any way of minimising the time it takes.

The forms are having simple telerik text boxes and telerik labels and telerik  grids(which has two columns and is not populated during load)

I call a webservice at form load and have tried to comment the service call; Even then it takes the same time so I have ruled out the possibility of service delay.

Nothing else is done at the form load except the form is rendered

Is it because I am using telerik that the form is taking time to render the telerik controls.


I dont have knowledge of SCSF internals, and how SCSF does all the handling of smart parts etc. 
May be it might be tuned up to load the views faster or there is some way to make the CAB work faster which I am unaware of.


Thanks in advance.


Sakshi
Sakshi
Top achievements
Rank 1
 answered on 24 Jul 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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
SyntaxEditor
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
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
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?