Telerik Forums
UI for WinForms Forum
1 answer
168 views
Hello,
this issue was produced on machines with Windows XP. When we move some window across application with Telerik RadForm, then there is some kind of a repaint glitch (as seen in picture). Is there any way how to fix this? (this same issue is also presented in sample application shiped with telerik).

Deyan
Telerik team
 answered on 21 Aug 2009
2 answers
75 views
Hello Experts. Here's what I try to do. I have a column in which the user can select some text to which is assigned a value.:

 


Dim
ds_typ_czujnika As New DataTable

 

ds_typ_czujnika.Columns.Add(

"id")

 

ds_typ_czujnika.Columns.Add(

"naz")

 

Dim myCommand As SqlCommand

 

 

Dim dr As SqlDataReader

 

conn_dodatkowe.Open()

myCommand =

New SqlCommand("select id_typ as id, nazwa as naz from tab_urzadzenia_typy where akt = 'True' order by nazwa", conn_dodatkowe)

 

myCommand.CommandType = CommandType.Text

dr = myCommand.ExecuteReader()

 

While dr.Read()

 

ds_typ_czujnika.Rows.Add(dr(0), dr(1))

 

End While

 

dr.Close()

conn_dodatkowe.Close()

 


Dim
k0 As New
GridViewLookUpColumn()

 

k0.FieldName =

"typ_czujnika"

 

k0.FieldAlias =

"typ_czujnika"

 

k0.UniqueName =

"typ_czujnika"

 

k0.HeaderText = lng.zwroc_napis_z_nazwy_elementu(

"typ_czujnika")

 

k0.DataSource = ds_typ_czujnika

k0.DisplayMember =

"naz"

 

k0.ValueMember =

"id"

 

 

Me.gv_ustawienia.Columns.Add(k0)

Now, I have  drag&drop event and I can read the values of columns, including a pre-selected text from k0. Is there any way to read the value id (k0.value member) assigned to that text directly from this row ? 

Thank's a lot for help.

 

Dim

 

p As System.Drawing.Point = gv_ustawienia.PointToClient(New System.Drawing.Point(e.X, e.Y))

 

 

Dim element As RadElement = gv_ustawienia.ElementTree.GetElementAtPoint(p)

 

 

Dim cell As GridCellElement = TryCast(element, GridCellElement)

 

 

Dim row As GridRowElement = Nothing

 

 

 

 

If cell IsNot Nothing And Not (TypeOf (element) Is GridHeaderCellElement) Then

 

 

 

row = cell.RowElement
....

Krzysztof
Top achievements
Rank 1
 answered on 21 Aug 2009
8 answers
383 views
Hi,

I have an unbound simple grid with editable cells in it. I carry out a number of edits, which all work fine. But when the user wants to repopulate the grid, I call my refresh code, which includes completely rebuilding the grid. As part of that code I call

Telerik.WinControls.UI.

ColumnGroupsViewDefinition columnGroupsDefinition = this.radGridView.ViewDefinition as Telerik.WinControls.UI.ColumnGroupsViewDefinition;

 

columnGroupsDefinition.ColumnGroups.Clear();

 

if (this.radGridView.Columns.Count > 0) this.radGridView.Columns.Clear();

 

 

if(this.radGridView.Rows.Count > 0) this.radGridView.Rows.Clear();

 


To clear out the entire grid. I then follow a standard routing for repopulation adding columns and rows as required. Subsequently all attempts to set .CurrentRow, or to click between cells returns a NullReferenceException as shown in the stack below.

I suspect my problem is that I'm not "telling" the grid to clear itself properly but cannot find a wholesale "ClearAll" method. I also suspect the problem relates to tracking of the current Cell as there is a lot of dependence on there being a current cell inside EndEditCore, and its not explicitly checked for Null.

Can you assist ?

(My stack trace below).

An unhandled exception has occured with the following details
Message Object reference not set to an instance of an object.
Stack Trace
   at Telerik.WinControls.UI.RadGridView.EndEditCore(Boolean cancel, Boolean finishEditingOperation)
   at Telerik.WinControls.UI.RadGridView.EndEdit()
   at Telerik.WinControls.UI.RadGridView.ValidatePositionChange(GridViewRowInfo rowInfo, GridViewColumn column)
   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)
Additional Data
TicketNumber 21c900c6-0ab5-4f64-bc53-839a3a783e45

Victor
Telerik team
 answered on 21 Aug 2009
1 answer
162 views
Hi!

I have a new problem with your controls. In our company application, we will use many hierarchical RadGridView controls to present data. It's a simple way to make a lot of function without creating many separete forms. But we have some questions and some problems... We used WinForms controls, our database is created in MS SQL Server 2008, and we use LINQ to communicate with it.

1. What is the best way to connect RadGridView to the LINQ (in designer there's no such option like LINQ datasource...)?

2. Second problem is with Inserting (we don't implement deleting yet) the data to hierachical Grid. I have read this post on your forum. And I have question is it still unavalible option? Is there any way to avoid this limitations?
Julian Benkov
Telerik team
 answered on 21 Aug 2009
5 answers
250 views

When an empty RadGridView is shown the RadGridView shows the message "no data to display".

When i set a RadGridLocalizationProvider then it should show the translated message from the NoDataText RadGridStringId, but it  shows the message "no data to display". This happens in the initialisation of the RadGridView. 

When i clear the columns of the RadGridView then the correct translated message is shown.

Regards,

Ramius 

Nick
Telerik team
 answered on 21 Aug 2009
4 answers
383 views
Hi, possible I can get help here in following feature in telerik windows forms.
I need to know if this possible to do in telerik. When MDI child form is opened toolbar(RadToolStrip) from this form automatically merged to toolbar in MDI parent from. Also when you switching between few different MDI-child forms with different toolbars - in MDI parent form toolbars are changing in accordance.
Nick
Telerik team
 answered on 21 Aug 2009
3 answers
290 views
Hello Again


Using

.MasterGridViewTemplate.GroupByExpressions.Add("Application,sum(Score) As [Sub Total Score = ] Group By Application")

which works fine but on multiple applicaion rows is really messy, is there a way to format the heading to create an easy to read column, so instead of something that looks like this;

app1firstappname;Sub Total Score = 2
app2secondappname;Sub Total Score = 3
app2thirdappname;Sub Total Score = 3

it would more look like this

app1firstappname;                                        Sub Total Score = 2
app2secondappname;                                   Sub Total Score = 3
app2thirdappname;                                       Sub Total Score = 3







Cheers
Nick
Telerik team
 answered on 21 Aug 2009
5 answers
172 views
I am having real grief with the Telerik theme/style builder  app for winforms. It's pretty much constantly crashing.

For example, I have my apps RADMenuStrip selected, clicked the Tasks arrow and selected 'Open Theme Builder',
splash screen comes up and I get a pretty long error popping up that starts with:
'System.ArgumentException: No such property registered: HotTracking, Telerik.WinControls.UI.GridRowElement at....' (and it carries on for around 30 more lines - see this link for a screenshot ).
When I click okay, the splash screen stays there, but the app has totally hung. I then have to kill the 'splashform' app using Task Manager, which in turn also closes Visual Studio.

VERY annoying and it's happening atleast 50% of the time I try and changes styles. Currently the form doesn't even use any styles beyond the default look and feel - this is the first style I'm trying to create in this app.

The 'No such property registered: HotTracking' varies by the way - I've had 'isClicked' and others instead of HotTracking.
I'm running Q3 2008, but prior to this had Q1 2007 installed.

Thanks,
Richard.
Deyan
Telerik team
 answered on 21 Aug 2009
5 answers
202 views
Hi everyone!

I need to add a multiline TextBox to the RibbonBar. I used that code in the desingercode (short version ;) )

private InitializeComponent() 
//(...) 
this.radTextBoxElement = new RadTextBoxElement(); 
 
//(...) 
// radRibbonBarGroupMessageText 
//  
this.radRibbonBarGroupMessageText.Items.AddRange(new Telerik.WinControls.RadItem[] {this.radTextBoxElement}); 
this.radRibbonBarGroupMessageText.Name = "radRibbonBarGroupMessageText"
this.radRibbonBarGroupMessageText.Orientation = System.Windows.Forms.Orientation.Horizontal; 
this.radRibbonBarGroupMessageText.Text = "Treść"
// 
//(...) 
// 
 
RadTextBoxElement radTextBoxElement; 

then, using the designer I heve set the properties of this TextBoxElement.TextBoxItem : multiline to true, and the null text to proper info and AcceptReturn = true;

When I run my application, I see the null text, but I can start a new line with enter key and even when I put a lot of text (reach right edge) text doesn,t break to new line... Can someone help me fix that? I will be greatfull.


Peter
Telerik team
 answered on 21 Aug 2009
12 answers
865 views
Hi,

while some of your controls have a "UseDefaultDisabledPaint" property I can't find this on RadTextBox.

My need:
I hav a data entry application.
Left I have a list of items - and on the right the details of it.
The user can edit the details by pressing a button which enables the controls (textboxes and so on).

For better visibility it would be great to have a special style on disalbed Textboxes.

By the way -  the only reason to use RadTextBox instead of Forms.Textbox is the idea to use styles for better visiblity.
Because I see no other reason -- it's more oposite! With Forms.Textbox SHIFT-TAB works!!

So is there a way to change the disabled style?
Even having BLACK as ForeColor would be enough!

Regards

Manfred
Peter
Telerik team
 answered on 21 Aug 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?