Telerik Forums
UI for WinForms Forum
1 answer
113 views
Hi, 

We are using a RadDocument using the paged layout to show tabular content.
We create a table and inside each row we place some paragraphs. These paragraphs may have "SpaceAfter" property to zero, one or two lines. 

One requisite of our application is to know how many rows are in each of the pages, so we can insert an extra row at the bottom of each page summarising the page rows and save it as a word document.

We were using the method "GetAssociatedLayoutBoxes" to get the layout box associated with each row and its heigth. However it seems that the size of the box is different than the actual size when exported to word using the DocxExporter.

It seems that the layout engine works different in RadRichTextBox than MS Word. For example, if I open the same document using word it appears that 12 rows are shown on the first page, but if I open the same document using RadRichTextEditor there will be 16 rows shown on the first page. The page margins are the same in both cases.

After deeply looking at the differences I would think that difference is due mainly to two things:
- The "SpaceAfter" property is rendered diffently by MS Word than the richtextbox
- The table borders take some space in MS Word and push the content down, but they do not behave in the same way on Radrichtexteditor. Even more, if I increase the table border width, the table seems to "grow" towards inside the cell instead of increasing the table height and width.

Is there any suggested workaround for this?
 Will this be handled differently on Q3 2014 ?

Dimitar
Telerik team
 answered on 13 Oct 2014
1 answer
371 views
Hi:

Does anybody knows How to get in a RadListView all the column headers name?

I need to populate a listbox with them?

Any suggestions?

Thanks.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
3 answers
190 views
I would like to modify one of the build in themes ("BreezeExtended") and save it with a different name.
The theme would be Breeze extended for the RadForm. I'm using version Q3 2010 SP1.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
1 answer
233 views
Hi

I want to modify Visual Studio 2012 Dark theme for Winforms. The color
of the form text (header text on the top) is gray which is hard to read
sometimes. I want that one to be white colored. How can I achieve that?

Thanks
Dimitar
Telerik team
 answered on 13 Oct 2014
4 answers
141 views
Hi All,
I'm trying to change default icon for ErrorText .
I found sample code here
and here is my code :

private void GrideInfoList_ViewCellFormatting(object sender, CellFormattingEventArgs e)
{
    if (e.CellElement is GridRowHeaderCellElement)
    {
        string er = e.Row.ErrorText;
        if (!String.IsNullOrEmpty(er))
        {
            var cell = (GridRowHeaderCellElement)e.CellElement;
            var ip = (Telerik.WinControls.Primitives.ImagePrimitive)cell.Children[0] as Telerik.WinControls.Primitives.ImagePrimitive;
            if (ip.Image != null)
            {
                ip.Image = GetData.Properties.Resources.red;
                ip.Alignment = ContentAlignment.MiddleRight;
            }
 
        }
    }
}

All is good however when I change page this code not work and I see default icon again....
I'm use from this code for update again but not work...
private void GrideInfoList_PageChanged(object sender, EventArgs e)
{
    GrideInfoList.TableElement.Update(GridUINotifyAction.StateChanged);
}

What am I missing here?



Telerik UI for WinForms     Q2 2014 SP1
Visual Studio version         2012
programming language     C#
George
Telerik team
 answered on 13 Oct 2014
1 answer
70 views
Hi, how to change Word Icon to solid? I dont want the transperency effect. Scroll out the properties but I didnt found what I want.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
1 answer
127 views
I use a listview to display an image in a row and a description in another row. I'm trying to change the height of a smaller description but not work.

  
Private Sub RadListView1_VisualItemFormatting(sender As Object, e As ListViewVisualItemEventArgs) Handles RadListView1.VisualItemFormatting
    e.VisualItem.ImageLayout = ImageLayout.Stretch
 
    If Convert.ToInt32(e.VisualItem.Tag) / 2 = 0 Then 'images
        e.VisualItem.BackColor = Color.Azure
        e.VisualItem.Size = New Size(950, 259)
    Else 'descripcion of image
        e.VisualItem.BackColor = Color.Black
        e.VisualItem.Font = New Font("Consolas", 20, FontStyle.Bold)
        e.VisualItem.Size = New Size(950, 50)
    End If
 
End Sub
George
Telerik team
 answered on 13 Oct 2014
1 answer
161 views
Hi,

I have trouble with node dragging. It can be reproduced in your demo "Demo Application - Telerik UI for WinForms Q2 2014 SP1". Select "Tree View" -> "Drag & Drop". I am using left tree.
1. Click on the node "Drafts";
2. Press shift button and click on the "Outbox" node;
3. Release shift button;
4. Press left mouse button on the "Outbox" node and start dragging;
5. Drop selected nodes after node "Large Mail".

You can see that order of nodes was changed.
Before: "Drafts", "Inbox" and "Outbox"
After: "Outbox", "Drafts" and "Inbox"

How I can change this behavior?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
5 answers
795 views
I am using RadControls for WinForms Q2 2010 SP2

I tried to use gridview to export data to Excel.

I have following namespaces:

Imports

 

Telerik.WinControls

 

Imports

 

Telerik.WinControls.UI

 

Imports

 

Telerik.WinControls.UI.Export

 

Imports

 

Telerik.WinControls.Data

But I can't get ExportToExcelML method to come up when I code

 

 

Dim

 

exporter As ExportToExcelML = New ExportToExcelML(Me.gridview)

Did I miss anything?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 13 Oct 2014
1 answer
54 views
Hi,

I am using the hierarchy feature of the data grid. My data consist of two custom objects one composed of the other.

class MyClassA : INotifyPropertyChanged
{
    String Porperty1 {get; set;}
    BindiingList<MyClassB> Items {get; set;}
    //...
}
 
class MyClassB : INotifyPropertyChanged{
    String Property1 {get; set;}
    int Property2{ get; set;}
    //...
}
(My actual classes invoke the PropertyChanged event. I did not show the full setters here for simplicity.)

I am setting a BindingList<MyClassA> as the data source for the grid view. I understand from this post here that you must handle the change event on the data grid when using the hierarchy view. I did this below:

private void dataGrid_CellValueChanged(object sender, GridViewCellEventArgs e)
        {
            //if the column is from the child view we must handle the change to the data model directly
            if(e.Column.OwnerTemplate == gridViewTemplate1)
            {
                var b = e.Row.DataBoundItem as MyClassB;
                var property = typeof(MyClassB).GetProperty(e.Column.FieldName);
                property.SetValue(b, e.Value, null);
            }
        }

This works for updating the data model when changes are made to the UI. How do I see changes reflected in the UI when changes are made to the model?
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 10 Oct 2014
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?