Telerik Forums
UI for WinForms Forum
1 answer
87 views
Hi

Please look on this URL (http://65.57.255.33/GridViewWithHeader.JPG)
I need to group only column header like this. I am Rad Control Win Form (Q2 2009).
Please help me.

Regards
Atul Kumar Srivastav
Nick
Telerik team
 answered on 21 Aug 2009
1 answer
96 views

I can set the parent TableHeaderHeight for a RadGridView no problem...

((GridTableElement)this.radGridView1.GridElement).TableHeaderHeight = 20;

However I need to set the Header height on the related GridViewTemplate.
How can this be done programmatically?





Victor
Telerik team
 answered on 21 Aug 2009
1 answer
113 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
50 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
313 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
131 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
202 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
321 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
248 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
136 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
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
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?