Telerik Forums
UI for WinForms Forum
1 answer
1.5K+ views

So I have a DataTable object that has data with rows & columns. My question is do I convert that into a RadGridView and then try to export it to Excel? Is that the easiest way to do it? Or is there another way I can export the DataTable object without having to convert it to a RadGridView? If so, how can I go about doing that? Is it using RadSpreadStreamProcessing library?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 26 Mar 2018
3 answers
645 views
This is for moving a pin to a precise location on the map.  I saw the example of moving a pin and dropping it to a list box, but not to another location on the map, then save that new locations coordinates.  Thanks!
Hristo
Telerik team
 answered on 26 Mar 2018
4 answers
206 views
I have a scenario where I need to allow users to edit the header text of the columns in my GridView. I'm not sure if this can be done but it would be nice to have the header text change to a text box when the user double clicks on the header.
Dimitar
Telerik team
 answered on 26 Mar 2018
4 answers
296 views

hey, 

I'm using Windows 8 Theme in Telerik for Winforms 2018.1.116.40.

With this theme, in a GridViewCommandColumn, buttons are not really cutes, the cells likes grey and user doesn't see it's a button.

So, i want to reduce the size of buttons and center them in the cells.

I use command lines below in CellFormatting event

Dim button As RadButtonElement = CType(e.CellElement.Children(0), RadButtonElement)
button.Margin = New Padding(2)

In this case, some borders are no more visible (cf attached file).

Have you got an idea please ?

 

Subsidiary question : If on a condition, i only want my html text but without button i use the code in cellFormating event

element.CommandButton.ButtonFillElement.NumberOfColors = 1
element.CommandButton.ButtonFillElement.BackColor = Color.FromArgb(255, 255, 255, 255)
button.BorderElement.Visibility = ElementVisibility.Hidden

it works, but it's surely a poor code, i have tried too with 

button.BorderElement.Visibility = ElementVisibility.Hidden

and i don't see button and text.

If you have a better code ;)

Thanks for your help

--

Romain

 

 

OD
Top achievements
Rank 1
 answered on 26 Mar 2018
11 answers
1.1K+ views
Hello..in the calendar and in the properties , there is a setting = "Culture" and it has "fa-IR"...but it doesnot change calendar to shamsi and only translate english texts to farsi (persian)...is there any way to add shamsi calendar to telerik?(it has arabic calendar why shamsi not?)
Thanks....
Mahdi
Top achievements
Rank 1
 answered on 26 Mar 2018
4 answers
612 views

Hello,

Is it possible to change the color of the selected text in MaskedTextBox? If you check the attached photo it shows a blue color that doesn't fit with our app's look and feel.

Kind Regards.

 

Fernando.

Fernando
Top achievements
Rank 1
 answered on 23 Mar 2018
1 answer
1.3K+ views

Hi,

I need to open existing word document and  show that document in RadRichTextEditor with extra information (like Name of the person at the top of the document), and also have to add signature and names at the end of the document and save the document. I did using Microsoft.Office.Interop.Word.Document before with DSOFramer control but DSOFramer is having some issues and trying to achieve same using RadRichTextEditor. 

Appreciate your help as soon as possible.

 

thank you!

 

Dimitar
Telerik team
 answered on 23 Mar 2018
2 answers
518 views

Hello,

I'm trying to make a list with alternating row colors  like the one in the attached image but I'm having troubles making the rows with different colors, it only get the

last one.

I'm attaching the code:

Any help will be appreciated.

Kind regards.

Private Sub lstProductos_VisualItemCreating(sender As Object, e As ListViewVisualItemCreatingEventArgs) Handles listViewMSProductos.VisualItemCreating
       If Me.listViewMSProductos.ViewType = ListViewType.IconsView Then
          e.VisualItem = New CustomListViewItemIconType(IdApp)
 
          e.VisualItem.ImageLayout = ImageLayout.Center
          e.VisualItem.ImageAlignment = ContentAlignment.TopCenter
          e.VisualItem.TextAlignment = ContentAlignment.BottomCenter
       Else
          Dim aux As Integer = 1
          For Each item In listViewMSProductos.ListViewElement.ViewElement.Items
             If aux Mod (2) = 0 Then
                e.VisualItem = New CustomListViewItemListType(Color.Red)
             Else
                e.VisualItem = New CustomListViewItemListType(Color.Blue)
             End If
             aux = aux + 1
          Next
       End If
    End Sub

 

Public Class CustomListViewItemListType    
Inherits SimpleListViewVisualItem
 
Public Sub New( pColor As Color)  
      Me.BackColor = _color
   End Sub

 

End Class



Fernando
Top achievements
Rank 1
 answered on 22 Mar 2018
1 answer
128 views
Most of my grids resize without issue.  I have another issue that is extremely difficult to see the column width stretch icon and subsequently widen or shrink the grid.  You have to move the mouse extremely slowly and place it just over the line between columns to see the stretch icon.  This is almost non-functional.  Any ideas?
Dimitar
Telerik team
 answered on 22 Mar 2018
5 answers
143 views

how can I detect if the cellclick comes from the template or the master grid?

 

thanks

andre

Andre
Top achievements
Rank 1
 answered on 21 Mar 2018
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?