Telerik Forums
UI for WinForms Forum
1 answer
396 views

I use an AutoCompleteBox in conjunction with a List<T> returned from a WCF service that uses Linq to retrieve suggested items based on a number of criteria. I only allow the selection of one complete token item whose value ultimately gets entered into a database table. This works as expected. My question is on the flip side, when I load an entity, I want to take the value that was written into the database and create the token setting the value and text properties and set it.

 I tried the Items property, but that is read-only. Cant find anything obvious in the documentation either.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 17 Sep 2015
1 answer
364 views

Hey,

is there any documentation about the "StringFormat" property used by the PropertyAggregateDescription?

Only useful resource i found was for Kendo UI (http://docs.telerik.com/kendo-ui/framework/globalization/numberformatting​).

I have no clue how to set the Format to n0 and add a postfix string (the result should look like 10,045 FOO$). I've tried "n0 'FOO$'", but it keeps ignoring the n (so i dont get any separators). "0 'FOO$'" works, but does not give me the desired number format.

Cheers,

Jens

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 16 Sep 2015
2 answers
360 views

Since GridView.ClearSelection Method is totaly crap(See attached file: NoSelectionFormatting.png)

i need to handle the rowformatting and cellformattiong when no Selection on gridview is done.

Removing the Backcolor was not the problem. But now i need to get the Default Border Color for GridViewCells and GridViewRows when its not selected.(See attached file: NoSelectionFormattingV1.png)

I am using Windows8 Theme in my application but this could be different for other customers, so i tried to get the Theme for the Current Theme like that:

 

Dim theme As Theme = ThemeResolutionService.GetTheme(ThemeResolutionService.ApplicationThemeName)

 

Just for testing if the Propertys exists that i need i implemented the following code:

Dim styleGroup As StyleGroup = theme.FindStyleGroup("Telerik.WinControls.UI.RadGridView")
 
For Each propertyGroup In styleGroup.PropertySettingGroups
    For Each setting In propertyGroup.PropertySettings
        Select Case setting.Name
            Case "BorderColor"
                e.RowElement.BorderColor = setting.Value
            Case "BorderColor2"
                e.RowElement.BorderColor2 = setting.Value
            Case "BorderColor3"
                e.RowElement.BorderColor3 = setting.Value
            Case "BorderColor4"
                e.RowElement.BorderColor4 = setting.Value
        End Select
    Next
Next
 

But the BorderColor was never set to the default.

Thanks for any help.

Florian
Top achievements
Rank 1
 answered on 15 Sep 2015
3 answers
97 views

The problem is described here:

http://www.telerik.com/support/kb/winforms/details/radgridview-crud-in-object-relational-hierarchy-mode

Due to performance considerations, the RadGridView bound to an object-relational hierarchy supports CRUD operations only for its first level. 

 

I don't want performance but I need to write at less as possible code to achieve this. Performance isn't an issue if I can ignore manually handling of operations for next levels.

  

 

Also another related question is that does ASP.NET RadGridView act like WinForms or it can support unlimited level of CRUD operations ?

Hristo
Telerik team
 answered on 15 Sep 2015
21 answers
1.0K+ views
I have a few virtual grids that have a somewhere between a few hundred and several thousand rows in them.

No matter what I try I am getting a stackoverflow error on the CellValueNeeded event anytime I try to sort any of my grids.

Not sure what to do here.

David
Dimitar
Telerik team
 answered on 15 Sep 2015
2 answers
177 views

I have a problem with RadGridView on Winform C# that is couldn't change any properties of RadGridView such as IsCurrent, IsSelected, CurrentRow, ... It's not effect yet.

For example:

My grid isn't readonly, and I changed some values below:

this.myGridView.CurrentRow = this.myGridView.Rows[0];

... then the value of CurrentRow when I watch is still null.

this.myGridView.Rows[0].IsCurrent = true;

... then it's still show as false for that.

Dimitar
Telerik team
 answered on 15 Sep 2015
0 answers
175 views

I wanted to show a clear button to either clear the value or text of the control.

 

The idea is the same as the clear button in 

dateTimePicker.DateTimePickerElement.Calendar.ClearButton

 

But I don't see any ClearButton from its child elements.

 

I came up with the idea to rename the Close Button in

radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.ButtonElement

and to add a clear action on its Click Event.

 

I came up with this code:

radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.ButtonElement.Text = "Clear";
(radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.Children[0] as RadButtonElement).TextElement.Text = "Clear";
(radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.Children[0] as RadButtonElement).ToolTipText = "Clear";
radTimePicker.TimePickerElement.PopupContentElement.FooterPanel.ButtonElement.Click +=
 delegate(object sender, EventArgs e) {  radTimePicker.Value = null;  };​

 

The tooltiptext works as well as the clearing of value. with this, I know that I am using the right button element.

But the Text always revert/return to "Close". 

 

Am I forgetting something?

 

 

Joem
Top achievements
Rank 2
 asked on 15 Sep 2015
2 answers
502 views

Hey!

How to align the values in the pivot grid cells?
The text seems to be centered by default but i found no obvious property to change this behaviour. I need right alignment.

In the Silverlight version of this control they seem to be aligned to the right by default.

Cheers,

Jens

Jens
Top achievements
Rank 1
 answered on 14 Sep 2015
1 answer
1.5K+ views
Dear good day,
Generally to obtain the value of a selected cell I did the following:
GridView.Item var = (0, GridView.CurrentCell.Row.Index) .Value value obtained with this column 0 and selected cell.
How I can do the same but using a RadGridView?

Best regards.

Javier
Electrónica GOIA
Top achievements
Rank 2
 answered on 11 Sep 2015
7 answers
329 views
I am new to the WinForms components and here is what I would like to be able to do. Not sure if this functionality is built in or if I will need to use a combination of Telerik controls so I figured it would be faster to ask. :)

I want to be able to fill a listview... then have a way to type in criteria and have it filter the listview accordingly. I want to be able to use checkboxes so once I have the listview filtered I can select certain items using the checkboxes.

Then I want to be able to remove the criteria and the listview restores all the items while retaining the items with checks in the checkboxes. Then i'll enter new criteria, which filters the list, i select more items via the checkboxes, remove the criteria, selected items are retained and so on...

Please let me know how to do this. :)
Hristo
Telerik team
 answered on 11 Sep 2015
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
Documentation
SplitContainer
Map
DesktopAlert
CheckedDropDownList
ProgressBar
TrackBar
MessageBox
Rotator
SpinEditor
CheckedListBox
StatusStrip
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
Styling
Barcode
PopupEditor
RibbonForm
TaskBoard
Callout
NavigationView
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Security
LocalizationProvider
Dictionary
SplashScreen
Overlay
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?