Telerik Forums
UI for WinForms Forum
3 answers
102 views

I've been Saving and Loading the GridView layout for quite some time now.  This week I updated the UI controls to version 2015.2.623.40.  Since then, when I call LoadLayout(<MemoryStream>) I get the following message box message:

"The string you have entered cannot be converted to a valid Type object.  Please, verify the spelling and include any namespaces that migh be needed."

 Yes, "might" was misspelled as "migh" in the message box.

 Did something change with the Save/Load layout methods?

Dimitar
Telerik team
 answered on 14 Jul 2015
1 answer
97 views

Hello,

 We need to highlight the typed (suggested) text in the popup window. For example,

we have the following list:

-One

-Two

-Three

-Four

-Five

And if user is typing "T" then letter 'T' should be bolded in words '<b>T</b>wo' and '<b>T</b>hree'

 

Thanks in advance!

Dimitar
Telerik team
 answered on 14 Jul 2015
5 answers
114 views

Hi,

In the new version of UI for WinForms (2015.2.623) I have found a bug. When I try order a DateTime Column that contains null values I get an exception. This did not happen with the previous version.

I include a link to the example of the error: https://dl.dropboxusercontent.com/u/21787064/DateTimeOrder.zip

Regards

Ralitsa
Telerik team
 answered on 13 Jul 2015
6 answers
159 views
Hello,

I recently noticed that the ExportToExcelML peformance is much faster if the application that calls the RunExport method is minimized.

I am calling RunExport on a background thread, so I thought perhaps it was just my code. So, I performed some tests on the Telerik Demo application, and found the same results. For 1000 records, the export takes about 40 seconds if I don't minimize the application. If minimized, it only takes about 3 seconds. This is in agreement with the performance of my own application.

Can you please verify that this is indeed the case? If so, is this a bug that will be fixed in a future release?

Thank you.

Ed M.

edit: The demo I am comparing to is ExcelML with Events. I used the same pattern to perform the export in a background thread. If I call the RunExport method in the UI thread for my application, the export takes less than 3 seconds for 1000 records. I am using the Winforms Q1-2011-SP1 release.
Todor
Telerik team
 answered on 13 Jul 2015
11 answers
520 views
Hello, please I've been searching for two days for this & couldn't find it ...
I'm trying to do something like this example :
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editmodes/defaultvb.aspx

but i want it in windows form application ... please help

I am not sure if the properties for the ASP rad grid are the same for windows forms rad grid ... like this line
RadGrid1.MasterTableView.EditMode = GridEditMode.EditForms
and
RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace

Please help as soon as you can :S
Chandrak
Top achievements
Rank 1
 answered on 10 Jul 2015
3 answers
151 views

Hello ... I've scoured the forums for an answer to this seemingly simple request. I have a template setup and it's working great. What I want to do is to 'paint' the color of the bounding box, for the child rows, the same color as their 'parent' row. I know I need to use ViewCellFormatting to achieve the painting of the box but I can't figure out how to get the row color (I'm using Conditional Formatting to color the parent rows) from the parent during the ViewCellFormatting event. The CellFormattingEventArgs only seems to expose the HierarchicalRowInfo object which, if I'm correct in my understanding, represents the Logical tree and the color of the row is from the Visual tree so I need the actual RowElement object representing the parent row. Below is the code for painting my bounding box:

As you can see, I'm using VB.NET but I can always translate C#. I want to replace the Color.GreenYellow with something like e.CellElement.Parent.BackColor. The problem is that the parent is the ScrollableRowsContainer element, not the GridDetailViewRowElement that I'm trying to get. How the heck can I achieve this?

Thanks, Jim

If TypeOf e.CellElement Is GridDetailViewCellElement Then
    Dim row As GridRowElement = e.CellElement.Parent 'This line doesn't actually retrieve the BackColor of the Parent!!!!!!
    e.CellElement.DrawFill = True
    e.CellElement.BackColor = Color.GreenYellow
    e.CellElement.Padding = New Padding(9, 4, 3, 4)
    e.CellElement.Margin = New Padding(10, 0, 0, 0)
    e.CellElement.Parent.
End If

Stefan
Telerik team
 answered on 10 Jul 2015
3 answers
399 views

Hi there

 I'm trying to add rows to a GridViewDecimalColumn with leading zeros. I know there's a property "FormatString" but this is not exactly what I want. I want the numbers always have the same amount of zeros leading. Here you can see my code:

GridViewDecimalColumn col = new GridViewDecimalColumn();
col.FormatString = "{0:0000}";
radGridView1.Columns.Add(col);

This will output the following:

Number 1 will be 0001
Number 2 will be 0002
Number 10 will be 0010
Number 100 will be 0100

But what I'm trying to achieve is:

Number 1 should be 0001
Number 10 should be 00010
Number 100 should be 000100
etc.

Is this possible? Hope you can help me.

Regards,

Danilo

Ralitsa
Telerik team
 answered on 10 Jul 2015
1 answer
109 views

I was looking for information on adding combo boxes and check boxes along with other controls that I can add to a row. I wanted to use a formatted row where I can use the HTML view to format the number of rows per row, but I have not located any help files on this.

 http://www.telerik.com/help/winforms/gridview-viewdefinitions-html-view.html

In the link provided, i wanted to be able to provide a combobox for the city or country, in addition to viewing several rows for 1 entry.

 Any help or a link to a previous forum entry that addresses this would be appreciated.

 

Hristo
Telerik team
 answered on 10 Jul 2015
1 answer
160 views

 

Hi,

 I've gone through this page and have a few questions:

 http://www.telerik.com/help/winforms/gridview-populating-with-data-unbound-mode.html

---------
Reason for using Unbound Mode: I'm building a Multi-threaded application, this application has several slow processes in the background and each of them returns a value. I use these values to fill cells in a gridview one by one without blocking the rest of the user interface. I've got this working quite well and happy with the result. I couldn't have done this with binding (this would have resulted in constantly fully reloading the gridview, now I just modify each cell when needed). This is the reason, why I'm using unbound mode.

---------

Now, for my next modification - I need a hierarchy in the gridview and I'm having trouble getting this to work:

I need something like the following:

 

ROW1: AverageValue1 | AverageValue2 | AverageValue3
    ROW1a: Value1a | Value2a | Value3a
    ROW1b: Value1b | Value2b | Value3b
    ROW1c: Value1c | Value2c | Value3c
ROW2: AverageValue1 | AverageValue2 | AverageValue3
    ROW2a: Value1a | Value2a | Value3a
    ROW2b: Value1b | Value2b | Value3b
ROW3: AverageValue1 | AverageValue2 | AverageValue3
    ROW3a: Value1a | Value2a | Value3a
    ROW3b: Value1b | Value2b | Value3b
    ROW3c: Value1c | Value2c | Value3c
    ROW3d: Value1d | Value2d |  Value3d

 

Now, when following the steps for "hierarchical grid in unbound mode" I'm getting way too many child rows. I believe the reason for this is because I'm using a template like so:

GridViewTemplate template = radGridView1.MasterTemplate.Templates[0];

Then I loop through the amount of childrows that need to be created like so:

 

for (int j = 0; j < rowCount; j++)
{
    template.Rows.AddNew();
}

This results in having way too many childrows. I've just taken two random columnnames as the relationship => I'm assuming this is probably the reason why things aren't working.
The thing is, in my case there is no real relationship between child and parent. The parent is just the average values of all children. Does this mean I need to create an extra column just for the sake of the relationship ?

Also, when using unbound mode (in a non-hierarchical situation) I first create the rows, and then fill them. If in hierarchical mode, I'm getting the impression that I can't create the childrows without filling them (not sure)?

All I really want to do, is create child rows an fill the cells one by one, whenever I can....

Thanks in advance for the help and example !

 

 

 

 

 

Stefan
Telerik team
 answered on 10 Jul 2015
1 answer
581 views

Hello,

We habe to implement a graphical tour planning.

One line for each employee and all tasks on the timeline.

                           10:00-----------11:00--------------12:00---------------13:00

Employee 1.                /------Task1-----/. /-------Task 2-----/

Employee 2.                        /---Task1--/ /---------Task2--------/ /--Task3---/

Employee 3

Is there a way to do this with RadGanttView ?

 Thanks in advance

 

Stefan
Telerik team
 answered on 10 Jul 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)
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?