Telerik Forums
UI for WinForms Forum
9 answers
240 views

Hello,

 since the second last update (2015-3-930 and including the latest update 2015-3-1104) the font in the excel export is huge (font size 400something). In "PivotExportToExcelML" there are some changes regarding font/font size (in "CreateStyleElement"). The code hasn't changed and is very simple:

PivotExportToExcelML excelExporter = new PivotExportToExcelML(rPVPanels);
excelExporter.ExportVisualSettings = true;
excelExporter.RunExport(TempFile);

(ExportVisualSetting true/false doesn't change anything)

 Can you confirm that and any plans on fixing this?

 

 

 

Tapakah
Top achievements
Rank 2
 answered on 25 Nov 2015
16 answers
262 views

using CellFormatting event.How can  i setup borders for cells .
            BorderStyles border = new BorderStyles();
            border.Color = Color.Black;
            border.Weight = 1;
            border.LineStyle = LineStyle.Continuous;
            border.PositionType = PositionType.Bottom;
How can i use this, cause somethng like that :
            e.CellStyleInfo.Borders = border;

doesn't work.

In exportML were e.ExcelStyleElement.Borders.Add function, cant find how this must work.

Stefan
Telerik team
 answered on 24 Nov 2015
1 answer
206 views

Hi,

I am new in here. I hope someone will help me.I'm writing this peace of code to check if the inputted text are correct and change the color my text if it is wrong

My error is on SelectionStart and SelectionColor

Please see below my code

Private Sub RadRichTextEditor1_TextChanged(sender As Object, e As EventArgs) Handles RadRichTextEditor1.TextChanged
       Dim ValuetoCheck= RadRichTextEditor2.Text
       Dim ArrayValue() As String = W.Split(" ")
         For Each searchword As String In ValuetoCheck
           Dim index As Integer = 0
           While index <> -1
               index = RadRichTextEditor1.Text.IndexOf(searchword, index)
               If index <> -1 Then
                   If index = RadRichTextEditor1.Text.Length - searchword.Length - 1 Then
                       RadRichTextEditor1.SelectionStart = index
                       RichTRadRichTextEditor1extBox1.SelectionLength = searchword.Length
                       RadRichTextEditor1.SelectionColor = Color.Black
                       RadRichTextEditor1.SelectionStart = RadRichTextEditor1.Text.Length
                       Exit Sub
                   Else
                       index += 1
                   End If
               Else
                   RadRichTextEditor1.SelectionStart = n
                   RadRichTextEditor1.SelectionColor = Color.Red
               End If
           End While
       Next ' added
   End Sub

Dimitar
Telerik team
 answered on 24 Nov 2015
2 answers
112 views

Hi There,

 

I am using expression to define some special function for the format.

I have 2 questions:

1) my function is like

Public Class CustomExpressionContext
    Inherits Telerik.Data.Expressions.ExpressionContext
    Public Function formatAddress(ClientName As String, rawAdd As String) As String
        rawAdd = rawAdd.Replace("{}", vbCrLf)
        rawAdd = rawAdd.Replace("{lf}", ClientName & vbCrLf)
        rawAdd = rawAdd.Replace(vbCrLf & vbCrLf, vbCrLf)
        Return rawAdd
    End Function
End Class

when I use ColumnRawAdd.expression = "formatAddress(AliasName, RawAddresses)"   where ColumnRawAdd is the column for "RawAddresses"

I got exception like "RawAddresses is not defined in the context"

if I use a new column, and set newcolumn.expression = "formatAddress(AliasName, RawAddresses)"  

then there is no problem. Is there something I need to set or check for ColumnRawAdd so I can use ColumnRawAdd for it?

 

2)newcolumn is working fine, but if I LoadLayout for alll the columns first, then define newcolumn.expression = "formatAddress(AliasName, RawAddresses)"  

then the newcolumn is empty, without any exception. What should I do here to have newcolumn have value?

 

Thanks.

 

Ada

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 24 Nov 2015
1 answer
228 views

I constructed a RadGridView and would like to use its content for my RadChartView to create a pie chart, but so far nothing shows up.

For RadGridView I would have five columns.

Name     Count     C     D     E

 Germany  20

France      50

I would only use the "Name" and Count" column to construct my pie chart but not "C", "D", and "E" columns, so it would be a percentage chart with Germany 20/70 and France 50/70. How do I use these two columns of the RadGridView for my RadChartView?

Dimitar
Telerik team
 answered on 23 Nov 2015
1 answer
315 views
I need something like BesFitColumns() for rows. I know that I can use AutoSizeRows, but it has problem with cells that have long multiline content. I attached screenshot. Please check it.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 23 Nov 2015
2 answers
1.0K+ views

Dear Telerik,

 I'm currently using the version 2013.2.612.40. My requirement are to get the ListViewDataItem when the user right click. I'm using the DetailsView.

Basically the user right click in one item, the last get selected and later i can do some other processing.

Unfortunately i cannot get it done. I have seen the following post that does not work http://www.telerik.com/forums/select-an-item-in-listbox-control-on-mousedown-event

Any help please

 

Evald
Top achievements
Rank 1
 answered on 23 Nov 2015
7 answers
219 views

Hi there,

I'm encountering a problem when using the RadTreeView control to display sibling nodes with different text lengths.

The text for the nodes is not being uniformly left aligned - even when I explicitly set this for each node using 

     fooNode.TextAlignment = ContentAlignment.MiddleLeft

Please see the attached image for an example of the issue - I've highlighted the affected nodes in orange.​

To set the control's font I'm using

    radTreeView.Font = new Font("Microsoft Sans Serif", 8.25F, GraphicsUnit.Point);

 

I'd be really grateful if anyone could please advise on how I could get my node text lining up perfectly ! 

thanks a lot 

James

 

Dimitar
Telerik team
 answered on 23 Nov 2015
1 answer
7.0K+ views
for(int i =0; i<radGridView.rows.count;i++)
{
               if(RadGridview.Rows[i].Cells[0].value.ToString().Equlas("100")
                       {
                                 //change row color in radgridview
}
}
Ralitsa
Telerik team
 answered on 23 Nov 2015
1 answer
159 views

I am currently using a HtmlViewDefinition() in a template to get a custom view in a hierarchy(Picture down below). My question is if there is a way to make the text box (notes)  a RichTextEditor-Like box.

I am using a TextBox Column in the picture below with WrapText set to true and AutoSizeRows set to true as well

Thank you

Stefan
Telerik team
 answered on 23 Nov 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?