Telerik Forums
UI for WinForms Forum
1 answer
123 views
Hi i'm trying to do an example project using DataAccess + Winforms RadScheduler + sqlite
I red the tutorial at the page below

http://www.telerik.com/help/winforms/scheduler-data-binding-binding-to-entity-framework-and-telerik-data-access.html

But it didn't work for me.... may i find somewhere a c# tutorial or a c# example project explain how to create tables on sqlite to execute CRUD operation on appointment and recurrences by Telerik Data Access.

Thanks in advance
George
Telerik team
 answered on 08 Jul 2014
2 answers
158 views
Hi everyone!
We are doing a project, and use it in GridView and its capabilities. We had a problem with GridViewColumnGroup. Grid is used to display services for a week, and have the button to show / not show weekend. By default, the “show weekend” is disabled. When we click the button “show weekend”, the weekend columns for some reason added small, and not as the same width as the weekdays. But if you do show weekend the default, they appear normal. But if you then show \ not show the weekend, they are becoming less and less. 

public partial class Form1 : Form
{
    private static readonly List<string> DaysOfWorkingWeekList = new List<string>(new[] { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday"});
    private static readonly List<string> DaysOfWeekList = new List<string>(new[] { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" });
 
    public Form1()
    {
        InitializeComponent();
 
        foreach (var column in GetColumns())
        {
            rgvMain.MasterTemplate.Columns.Add(column);
        }
        rgvMain.MasterTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
 
        UpdateGroupHeader();
 
        var serviceWeeks = new List<ServiceWeek>();
        var serviceWeek = new ServiceWeek();
        serviceWeeks.Add(serviceWeek);
 
        rgvMain.DataSource = serviceWeeks;
    }
 
    private void UpdateGroupHeader()
    {
        AddGroupHeader(rgvMain.MasterTemplate, radCheckBox1.IsChecked ? DaysOfWeekList : DaysOfWorkingWeekList);
        rgvMain.MasterTemplate.Refresh();
    }
 
    private void radCheckBox1_CheckStateChanged(object sender, EventArgs e)
    {
        UpdateGroupHeader();
    }
     
    public void AddGroupHeader(GridViewTemplate template, List<string> groupHeaderText)
    {
        var columnGroupsView = new ColumnGroupsViewDefinition();
 
        for (int i = 0, index = 0; index < groupHeaderText.Count; index++)
        {
            columnGroupsView.ColumnGroups.Add(new GridViewColumnGroup(groupHeaderText[index]));
            columnGroupsView.ColumnGroups[index].Rows.Add(new GridViewColumnGroupRow());
 
            columnGroupsView.ColumnGroups[index].Rows[0].Columns.Add(template.Columns[i++]);
            columnGroupsView.ColumnGroups[index].Rows[0].Columns.Add(template.Columns[i++]);
        }
 
        template.ViewDefinition = columnGroupsView;
    }
 
    private IEnumerable<GridViewTextBoxColumn> GetColumns()
    {
        return new List<GridViewTextBoxColumn>
        {
            new GridViewTextBoxColumn(),
            new GridViewTextBoxColumn {Width = 50, MinWidth = 50, MaxWidth = 50},
            new GridViewTextBoxColumn(),
            new GridViewTextBoxColumn {Width = 50, MinWidth = 50, MaxWidth = 50},
            new GridViewTextBoxColumn(),
            new GridViewTextBoxColumn {Width = 50, MinWidth = 50, MaxWidth = 50},
            new GridViewTextBoxColumn(),
            new GridViewTextBoxColumn {Width = 50, MinWidth = 50, MaxWidth = 50},
            new GridViewTextBoxColumn(),
            new GridViewTextBoxColumn {Width = 50, MinWidth = 50, MaxWidth = 50},
            new GridViewTextBoxColumn(),
            new GridViewTextBoxColumn {Width = 50, MinWidth = 50, MaxWidth = 50},
            new GridViewTextBoxColumn(),
            new GridViewTextBoxColumn {Width = 50, MinWidth = 50, MaxWidth = 50}
        };
    }
}
 
public class Service
{
}
 
public class ServiceWeek
{
    public Service MondayService { get; set; }
    public Service SundayService { get; set; }
    public Service SaturdayService { get; set; }
    public Service FridayService { get; set; }
    public Service ThursdayService { get; set; }
    public Service WednesdayService { get; set; }
    public Service TuesdayService { get; set; }
}


Please help me! On the form located only a standard RadGridView and CheckBox.
Sorry for my English.
Nikita
Top achievements
Rank 1
 answered on 08 Jul 2014
13 answers
420 views
I have a grid with two levels of hierarchical grids and I use the SaveLayout / LoadLayout methods to save and restore the columns proporties of the grid, apparently the layout of the sub-grids is not stored in the XML file and there is no such properties on the sub-grids.
Is it possible to save and restore sub-grids layout ?

thanks in dvance
George
Telerik team
 answered on 07 Jul 2014
7 answers
294 views
DesktopAlert looks nice. Is there a way to automatically size the control to display the entire text? At the moment we have to manually set the FixedSize to get the text displayed fully.

Not every HTML tag is displayable. Not even everything i set in the markup editor is displayed (Hyperlinks or empty lines). Any plans to extend it to full HTML support?

Thank you for this control and please extend it.
George
Telerik team
 answered on 07 Jul 2014
1 answer
292 views
Hello, I am using a combination of RtfFormatProvider and HtmlFormatProvider to allow users to convert Rich Text to HTML. I noticed that even when font size is expressed in RTF in points (or really half-points), when exported to HTML it exports it as pixel sizes - it appears to assume 96 pixels per inch.

Based on this, it changes a 14.5 point font in RTF to a 19.33333 pixel font in HTML.

This works well when the resulting HTML is viewed in an environment that renders at 96 pixels per inch, but in some environments (such as when viewing on a retina display iPad) it makes the font appear much smaller.

Is there a way to control the HtmlFormatProvider to save fonts in points instead of pixels?
Ivan Todorov
Telerik team
 answered on 07 Jul 2014
2 answers
96 views
Hello, can I catch the exception raised by a databounditem (that implements ieditableobject and idataerrorinfo) ?

At the moment after the user edit a row and insert invalid values IEditableObject.EndEdit throw an exception and the program terminate.

I also tried to add a Validating event handler but looks like the IEditableObject.EndEdit is called before the Validating event.

Also tried to handle the DataError event but with no success.

Best regards.
Andrea
Peter
Telerik team
 answered on 07 Jul 2014
5 answers
701 views
Hi, I am using the radgridview with paging using the example below

http://www.telerik.com/community/code-library/winforms/gridview/gridview-paging-using-commandbar.aspx 

I am trying to export the radgridview to excel, however it only exports the current page. How do I export all pages to excel?

Thanks.

Ivan Petrov
Telerik team
 answered on 04 Jul 2014
1 answer
209 views
Hello,



I have displayed in datagridview with data in self-reference hierarchy. For example, I have data in the gridview ad the below:

Node1

    Node 1.1

    Node 1.2

        Node 1.2.1

        Node 1.2.2

            Node 1.2.2.1

.....



When I click filtering icon in the header column. The filtering dialog
doesn't display the same structure in the datagridview. It just displays
as the below in filtering dialog.

All

    Node1

    Node 1.1

    Node 1.2



I expect the filtering dialog should display as same as the
datagridview. Please show me how to do. I also attach the screenshot for
more detail

Thannks
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Jul 2014
1 answer
60 views
 public partial class FrmMain : Telerik.WinControls.UI.RadForm
    {
        DocumentContainer documentContainer = new DocumentContainer();
        public FrmMain()
        {
            InitializeComponent();
            this.IsMdiContainer = true;
            this.radDock1.AutoDetectMdiChildren = true;
            
            this.radDock1.MainDocumentContainer = documentContainer;
        }

        private void radButton1_Click(object sender, EventArgs e)
        {
            FrmLogin frm1 = new FrmLogin();
            frm1.MdiParent = this;
            frm1.Show();
            this.ActiveControl = frm1;
        }

        private void radButton2_Click(object sender, EventArgs e)
        {
            RadForm2 frm2 = new RadForm2();
            frm2.MdiParent = this;
            frm2.WindowState = FormWindowState.Maximized;
            frm2.Show();
            this.ActiveControl = frm2;
        }
Ivan Todorov
Telerik team
 answered on 04 Jul 2014
1 answer
78 views
I am having a problem with the location of the dropdown list associated with the RadDropDownList control. All of the development has been done on a monitor with a 4 x 3 aspect ratio and the list is always in the correct position. When the application is moved to a monitor with a 9 x 16 aspect ratio, the dropdown list appears far below the control if the control is located near the top of the screen.
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 04 Jul 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)
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
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?