Telerik Forums
UI for WinForms Forum
5 answers
212 views
I use scheduler to show appointments. The scheduler is not mapped directly to some db table, so I have to handle persistence by myself. For adding and editing appointment I use CollectionChanged event of Appointments and it seems to work, however when the appointment is moved by dragging, the CollectionChanged  event is fired with Action NotifyCollectionChangedAction.Batch and I don't know what appointment was changed. Can anybody give me a hint how to handle this situation?

Thank you
Ivan Todorov
Telerik team
 answered on 30 Jul 2012
4 answers
543 views
I'm using a RadMenu and I have added two Separators.  How can I give them some type of visual appearance?  The separators added a small amount of additional space beween menu items but does not give any type of visual.  Do I need to add an image? What I would like to have is something close to "|" display.

Ivan Todorov
Telerik team
 answered on 30 Jul 2012
3 answers
77 views
Hi,



Can you tell me whether doughnut charts are available right now for metro applications in windows 8. If Yes, Please share me any demo of Doughnut charts.



Thanks in advance
Veli
Telerik team
 answered on 30 Jul 2012
1 answer
140 views
I am using the VisualListItemFormatting event to achieve an alternating item background color effect like so:

Private _rowIndex As Integer = 0
    Private Sub cmb_VisualListItemFormatting(sender As Object, args As VisualItemFormattingEventArgs) Handles cmb.VisualListItemFormatting
        If _rowIndex Mod 2 = 0 Then
            args.VisualItem.SetValue(LightVisualElement.BackColorProperty, Color.FromArgb(224, 226, 255))
            args.VisualItem.SetValue(LightVisualElement.GradientStyleProperty, GradientStyles.Solid)
        End If
 
        _rowIndex = _rowIndex + 1
    End Sub

However, this appears to affect the mouse over background color. Here's the default mouseover on a row not impacted by the formatting above (note the entire background is highlighted):
http://screencast.com/t/AmWsEe7sYvwc

And here's the mouseover on a row impacted by the formatting (note that the background is not highlighted - only a border appears):
http://screencast.com/t/HD2AfEEs

How can I make these consistent? Preferably all of the items would have the entire background color changed. OR, is there a better way to achieve alternating item colors that would not cause this issue?
Stefan
Telerik team
 answered on 30 Jul 2012
1 answer
216 views
In my grid, I want to limit the available filter conditions as they don't apply. I am doing so in the ContextMenuOpening event:

Private Sub WorkLogGridView_ContextMenuOpening(sender As Object, e As ContextMenuOpeningEventArgs) Handles WorkLogGridView.ContextMenuOpening
            If e.ContextMenuProvider IsNot Nothing Then
                e.ContextMenu.Items.Remove(e.ContextMenu.Items.Single(Function(item) item.Text = "Contains"))
                e.ContextMenu.Items.Remove(e.ContextMenu.Items.Single(Function(item) item.Text = "Does not contain"))
                e.ContextMenu.Items.Remove(e.ContextMenu.Items.Single(Function(item) item.Text = "Starts with"))
                e.ContextMenu.Items.Remove(e.ContextMenu.Items.Single(Function(item) item.Text = "Ends with"))
                e.ContextMenu.Items.Remove(e.ContextMenu.Items.Single(Function(item) item.Text = "Is null"))
                e.ContextMenu.Items.Remove(e.ContextMenu.Items.Single(Function(item) item.Text = "Is not null"))
                e.ContextMenu.Items.Remove(e.ContextMenu.Items.Single(Function(item) item.Text = "Custom"))
              End If
        End Sub

This works correctly. However, note that I am removing the first default item "Contains". Even though it is removed, it is the default condition selected:
http://screencast.com/t/vFv78ZoLE

This shows that the items have been removed correctly:
http://screencast.com/t/tcotptFmN4aK

Ideally I would like either No filter or Equals selected by default instead of Contains.

In addition, I'd like this functionality to be different for different columns. I'm trying to find how to determine which column is applicable in the code above, but am not able to find the needed info. I've also tried to subscribe to the CurrentColumnChanged, ColumnIndexChanged, and ColumnIndexChanging event to stored the selected column but it appears those events do not fire when I click on the filter button. 
Stefan
Telerik team
 answered on 30 Jul 2012
8 answers
302 views
Hi Telerik,

I'm trying to use RadDock in Your Demos and i have a problem:
When I add alot of documents ( such as 20 docs), the main screen only show 10 documents and i must click to OverlowDropdownButton on the right to know all document opened.

I wants to ask:
1. How to show Next and Previous Button beside OverflowDropdownButton
2. How to know that having other documents opened but not display in main screen (without click on OverflowDropdownButton)
3. How can i change Tabbed Style of Document Manager (ex: VS 2010, VS 2008, Office 2007, Office 2003,...)

My screen captured in attack file.

Thanks in advance!
Nguyen
Top achievements
Rank 1
 answered on 30 Jul 2012
13 answers
631 views
Hello

I have an query that how can i customize Rad grid view custom filter dialog box.
Like mun text and all.

Thanks & regards
Pulkit Jain
Svett
Telerik team
 answered on 27 Jul 2012
3 answers
184 views
WinForms RadControls Q3 2007
Visual Studio 2005
.NET 2.0

In other grid when I work with check box column I can set value of checkbox pressing space bar. I tried to set value with space bar but RadGridView have a strange behaviour.

1. on first load on first row press once space bar but grid doesn't check
2. after few seconds press another time space bar and grid check cell
3. go to second row with arrow keys
4. press space bar first time on second row and... check on first row disappear ?!? and on check on second row stay off
5. press space bar second time on second row and appears check on second row
6. go to third row and appers check also on the first row ?!?!?

I want a simple way to set checkbox in column similar Microsoft standard control ListView when set with CheckBoxes  = true.

Placed a listview and a radgridview this code can reproduce error and my favourite behaviour.

Thanks in advance,
Emanuele Savarese

        private void Form1_Load(object sender, EventArgs e) 
        { 
            DataTable dt = new DataTable(); 
            dt.Columns.Add("From", typeof(bool)); 
            dt.Columns.Add("To", typeof(bool)); 
            dt.Columns.Add("Description", typeof(string)); 
 
            dt.Rows.Add(false, false, "hi1"); 
            dt.Rows.Add(false, false, "hi2"); 
            dt.Rows.Add(false, false, "hi3"); 
            dt.Rows.Add(false, false, "hi4"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi5"); 
            dt.Rows.Add(false, false, "hi6"); 
            dt.Rows.Add(false, false, "hi7"); 
            dt.Rows.Add(false, false, "hi8"); 
            dt.Rows.Add(false, false, "hi9"); 
            dt.Rows.Add(false, false, "hi10"); 
 
            radGridView1.MasterGridViewTemplate.AutoGenerateColumns = false
            radGridView1.Columns.Add(new GridViewBooleanColumn("From")); 
            radGridView1.Columns[0].IsPinned = true
            radGridView1.Columns.Add(new GridViewBooleanColumn("To")); 
            radGridView1.Columns[1].IsPinned = true
            radGridView1.Columns.Add(new GridViewTextBoxColumn("Description")); 
            radGridView1.Columns[2].ReadOnly = true
            radGridView1.Columns[2].Width = 600
 
            radGridView1.SelectionMode = GridViewSelectionMode.FullRowSelect; 
            radGridView1.DataSource = dt
 
            listView1.View = View.Details; 
            listView1.FullRowSelect = true
            listView1.CheckBoxes = true;             
            listView1.Columns.Add("To"); 
            listView1.Columns.Add("Description"); 
            listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi1" })); 
            listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi2" })); 
            listView1.Items.Add(new ListViewItem(new string[] { "hi", "hi3" })); 
        } 



Stefan
Telerik team
 answered on 27 Jul 2012
1 answer
151 views
I am exporting a GridView of about 1500 rows and 20 columns to Excel and PDF.  I do both in a BackgroundWorker Thread.  The Excel export works fantastic and does not lock my UI.  However, the PDF export takes significantly longer and locks my UI thread even though I am running it from a different thread.  

What gives?

This is in my DoWork() method.  It 'hangs' on the "RunExport()" line.

ExportToPDF pdfExporter = new ExportToPDF(uxResultsView);
    pdfExporter.FileExtension = "pdf";
    pdfExporter.PageTitle = "Provider Search Results";
    pdfExporter.FitToPageWidth = true;
    pdfExporter.ExportVisualSettings = true;
 
    pdfExporter.RunExport(fileName);
Svett
Telerik team
 answered on 27 Jul 2012
1 answer
671 views
Hi,

I'm using Radchart in winform to databind to a generic list. How can I show both the Percentage and actual value as the label?

Attached is the desired output.

Below is the sample data

columnname valuedata
< 20 days 112
<= 50 days 532
<= 90 days 40
> 90 days 168

Codes
protected void CreateChart()
        {
            RadChart chartObj = new RadChart();
            chartObj.SkinsOverrideStyles = false;
            chartObj.ChartTitle.TextBlock.Text = "No of Items";
            chartObj.Size = new Size(800, 600);
            chartObj.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(chartObj_ItemDataBound);
            chartObj.DataManager.DataSource = _objBLL.GetData();
            chartObj.DataManager.LabelsColumn = "ColumnName";
            chartObj.IntelligentLabelsEnabled = true;
            chartObj.DataBind();
            chartObj.Series[0].Type = ChartSeriesType.Pie;
            chartObj.Series[0].Name = "Days";
            chartObj.Series[0].Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels;
            chartObj.Update();
  
            this.Controls.Add(chartObj);
  
        }
  
        protected void chartObj_ItemDataBound(object sender, ChartItemDataBoundEventArgs e)
        {
            if (e.SeriesItem != null)
            {
                DataRowView dtView = e.DataItem as DataRowView;
  
                if (dtView != null)
                {
                    e.SeriesItem.Label.TextBlock.Text = string.Format("{0}%", dtView["ChartValue"]);
                }
            }
        }

Evgenia
Telerik team
 answered on 27 Jul 2012
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
TrackBar
MessageBox
Rotator
SpinEditor
StatusStrip
CheckedListBox
LayoutControl
SyntaxEditor
Wizard
ShapedForm
TextBoxControl
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
DataEntry
ScrollablePanel
ScrollBar
WaitingBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
NavigationView
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
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
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?