Telerik Forums
UI for WinForms Forum
3 answers
186 views
Hello everybody!

Using the Outlook ViewMode the PageView is able to hide and show buttons ("Show More/Fewer Buttons"). But if I restart the application the layout of the PageView is back to default. How can I save this state, or how can I get/set the PageViewPages, that have changed?

Kind Regards
Hristo
Telerik team
 answered on 01 Feb 2017
11 answers
474 views

Hi,

the new RadPropertyStore feature looks very promising. I want to build a PropertyGrid without binding to an .NET-Object but to a dynamic collection of Data. The RadPropertyStore is exactly what I need. But I have one Problem: According to Your WinForms PropertyGrid/Property Store-Demo the PropertyGridDropDownListEditor seems only work with enumerations. That is too static. I have e.g. a list of strings ("FrontWheelDrive", "RearWheelDrive", "AllWheelDrive"). The values ara stored in a Database and can differ.

Is it possible to use the PropertyGridDropDownListEditor with a list (or array) of strings or the like?

Michael

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 Feb 2017
2 answers
132 views

I develop an WinForms applicatio with the RadRibonForm.

In the backstave view the Items are not left aligned (as per the attached image) it seems that they are centered aligned and I have looked at all proerties and spent hours but I havenot found how to make them left aligned

Thanks for your advice

pierre-jean
Top achievements
Rank 1
Veteran
Iron
 answered on 01 Feb 2017
1 answer
136 views
How do I get the drag values (x,y coordinates) of a shape object as it is being dragged within the diagram?  I see there is a Drag event, but I am uncertain how to get the objects' position after a drag.
Dimitar
Telerik team
 answered on 01 Feb 2017
2 answers
277 views

 Hi,

Picture exported in wrong size to picture.image when creating RadChartView in AchiverReports10. Picture is cropped when adding Legend Title. Could you help me please in this question?

 Private Sub GroupFooter1_Format(sender As Object, e As EventArgs) Handles GroupFooter1.Format
      Dim rchv As New RadChartView
      rchv.Name = "rchv"
      rchv.ShowTitle = True
      rchv.Title = "Test"
      rchv.ChartElement.TitleElement.Font = New Font("Arial", 16)
      rchv.ShowToolTip = True
      rchv.ShowLegend = False
      rchv.Area.View.Palette = KnownPalette.Metro

      AddHandler rchv.LabelFormatting, AddressOf rcvQualityPie_LabelFormatting
      
      rchv.Series.Clear()
      rchv.AreaType = ChartAreaType.Pie
      rchv.ChartElement.AutoSize = True
      rchv.ShowSmartLabels = True
      rchv.ShowLegend = False

      Dim series As New PieSeries()

      For Each row As DataRow In _dtRejctResons.Rows
         series.DataPoints.Add(New Telerik.Charting.PieDataPoint(row("OsuusPerc"), row("RaakkiSelite")))
      Next

      series.DrawLinesToLabels = True
      series.SyncLinesToLabelsColor = True
      series.ShowLabels = True

      rchv.Series.Add(series)

      Dim sFileName As String = "exprtedChart1.png"
      Dim sFilePath As String

      sFilePath = System.IO.Path.GetTempPath & sFileName

      If File.Exists(sFilePath) = True Then
         File.Delete(sFilePath)
      End If
      rchv.ExportToImage(sFilePath, rchv.Size, System.Drawing.Imaging.ImageFormat.Png)
      Picture.Image = Image.FromFile(sFilePath)

End Sub

Private Sub rcvQualityPie_LabelFormatting(sender As Object, e As ChartViewLabelFormattingEventArgs)
      Dim pieElement As PiePointElement = DirectCast(e.LabelElement.Parent, PiePointElement)
      Dim dataPoint As PieDataPoint = DirectCast(pieElement.DataPoint, PieDataPoint)
      e.LabelElement.BackColor = Color.White
      e.LabelElement.BorderColor = Color.White
      e.LabelElement.Text = String.Format("{0}, " & "{1} %", dataPoint.LegendTitle, Math.Round(dataPoint.Percent, 0))
      e.LabelElement.Padding = New System.Windows.Forms.Padding(6, 0, -100, 0)

   End Sub

Kseniia
Top achievements
Rank 1
 answered on 01 Feb 2017
4 answers
248 views

I want to be able to show a link, but have the display text be something different.

This is what I want to see <a href="http://www.googe.com">Google</html>

What's the correct way to do that? Preferably without having to override some on row creating event.

Pavel
Top achievements
Rank 1
 answered on 31 Jan 2017
2 answers
337 views

Hello everybody,

I am learning C# in the software specialist course. I want to get datas from RadGridView and export to Excel file. I managed that get datas from RadGridView like this:

private bool Save_As_Excel_Format()
{
    if (Personal.Id <= 0) return true;
 
    foreach (var gridViewRowInfo in GetAllRows(rgv.MasterTemplate))
    {
        var dataRow = (GridViewDataRowInfo) gridViewRowInfo;
 
        foreach (GridViewCellInfo cell in dataRow.Cells)
        {
            MessageBox.Show(cell.Value.ToString());
        }
}
    return true;
}
 
public List<GridViewRowInfo> GetAllRows(GridViewTemplate template)
{
    var allRows = new List<GridViewRowInfo>();
    allRows.AddRange(template.Rows);
    foreach (var childTemplate in template.Templates)
    {
        var childRows = this.GetAllRows(childTemplate);
        allRows.AddRange(childRows);
    }
    return allRows;
}

 

But I do not know how I export to Excel with using NPOI library.

 

SarperSozen
Top achievements
Rank 1
 answered on 31 Jan 2017
0 answers
155 views

Hello,

I have one question.

When I make custom filter example name is Standard, and saved it and change some column,on user control grid.

After update something in my form custom filter reload not stay on Standard custom filter.

How to make when I update something on my form stay allways on selected filter in my case Standard?

Denius
Top achievements
Rank 1
 asked on 31 Jan 2017
1 answer
293 views

Hi,

I am using telerik library version 'UI for WinForms Q2 2014' and need to implement a selection change event for one of the GridViewComboBoxColumn type column. As per http://docs.telerik.com/devtools/wpf/controls/radgridview/columns/how-to/howto-selectionchanged-comboboxcolumn I have to use the AddHandler method for which Telerik.Windows namespace has to be used, However for the version I am currently having doesn't contain any of these Telerik.Windows libraries. What is the best thing to do for me now to implement my feature.

 

Thanks in advance.

Chandra.

Ralitsa
Telerik team
 answered on 31 Jan 2017
3 answers
247 views
So, here goes.

I have a user requirement. The basically need 1 textbox, it doesnt matter if it is a masked textbox or a datetimepicker or whatever.
This textbox needs to allow only hh:mm and when it gains focus it needs to select the whole of the contents.

When the user navigates to this textbox initially, it should be blank (it can be __:__ if masked) and should allow a user to type:

0125

without needing to press any other keys (01 is the hours and 25 is the minutes). The control should be smart enough to display 01:25 but not require the user to press the arrow keys to move from hours to minutes.

I have tried this using the maskededitbox and found that it doesnt work as intended and I cant clear the text if I set the mask to ##:## which is annoying. I then used the datetimepicker and selected time, but it has hh:mm:ss and to get from hours to minutes you have to use the arrow key.

Any help you can give would be greatly appreciated.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 31 Jan 2017
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
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
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
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
SplashScreen
Flyout
Separator
SparkLine
TreeMap
StepProgressBar
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?