Telerik Forums
UI for WinForms Forum
1 answer
116 views
I must be missing something.  In the designer and when the application runs, the column header row looks to be about 35px high.  If I add "MessageBox.Show(myGridView.TableElement.TableHeaderHeight.ToString());" after InitializeComponent() runs, the message shows a value of 20.  If I add "myGridView.TableElement.TableHeaderHeight = 20;" after InitializeComponent() runs, then the column header height looks like 20px.  Am I missing something here?

Thank you,
Gary
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2013
2 answers
69 views
Is there any way to manipulate the required speed needed for the RadDropDownListEditor to auto select an item while the user is typing in the text?  We are using the DropDownList style and the auto select works when typing over a certain speed (maybe 50 WPM?).  Otherwise the auto select stops searching after the first or second character typed.
Adam
Top achievements
Rank 2
 answered on 29 Jul 2013
3 answers
104 views
Is there a way to group by date then resources.
So if I have four resources each day will have four resources.

Thank you,
Troy
Dimitar
Telerik team
 answered on 29 Jul 2013
3 answers
107 views
1)in the property  PivotGroupNode Implement a name of field associate.

2)when you double click a cell in RadPivotGrid, to get all the data used to calculate this value, and populate a new RadGridView with this data.

 

Paul
Telerik team
 answered on 29 Jul 2013
2 answers
106 views
I've trawled the web and have exhausted troubleshooting. Despite others asking very similar questions nothing seems to allow me edit a Checkbox in a Template Column.

I've attached a screenshot and what I'm doing is possible as its shown here: http://www.telerik.com/help/winforms/gridview-hierarchical-grid-tutorial-binding-to-hierarchical-data.html

  protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            this.radGridView1.BeginUpdate();
            LoadData();
            this.radGridView1.UseScrollbarsInHierarchy = true;
            this.radGridView1.AutoExpandGroups = true;
            this.radGridView1.ShowGroupPanel = false;
            this.radGridView1.AllowAddNewRow = false;
            this.radGridView1.EndUpdate();
        }

 private void LoadData()
        {
            latestRevisions = DAL.GetTemplatesLatestRevisionsBySearchCrtieria(...);
            pastRevisions = DAL.GetTemplatesPastRevisionsBySearchCrtieria(...);

            latestRevisionsBindingSource.DataSource = latestRevisions;
            pastRevisionsBindingSource.DataSource = pastRevisions;

            radGridView1.DataSource = latestRevisionsBindingSource;

            radGridView1.MasterGridViewTemplate.Columns["Name"].Width = 150; 
            radGridView1.MasterGridViewTemplate.Columns["TemplateID"].IsVisible = false;
            radGridView1.MasterGridViewTemplate.Columns["ParentTemplateID"].IsVisible = false;
            radGridView1.MasterGridViewTemplate.Columns["Description"].Width = radGridView1.Width - twoHundred;
            radGridView1.MasterGridViewTemplate.Columns["ImagePreview"].IsVisible = false;

            foreach (GridViewDataColumn column in this.radGridView1.Columns)
            {
                column.ReadOnly = (column.Name != "Compare");
            }

            LoadDetailsTable();
        }

        void LoadDetailsTable()
        {
            GridViewTemplate template = new GridViewTemplate();
            template.Caption = "Latest Revisions";
            template.DataSource = pastRevisions;
            template.AllowRowResize = false;
            template.ShowColumnHeaders = false;
            template.Columns["ImagePreview"].Width = 100;
            template.ReadOnly = true;

            template.Columns["Description"].Width = 245;
            template.Columns["Description"].DisableHTMLRendering = false;

            template.Columns["Compare"].Width = 60;
            template.Columns["Compare"].ReadOnly = false;   //<-- Read-Only is false!!!

            this.radGridView1.Templates.Insert(0, template);
            
            GridViewRelation relation = new GridViewRelation(this.radGridView1.MasterTemplate);
            relation.ChildTemplate = template;
            relation.ParentColumnNames.Add("TemplateID");
            relation.ChildColumnNames.Add("ParentTemplateID");
            this.radGridView1.Relations.Add(relation);

            HtmlViewDefinition viewDef = new HtmlViewDefinition();
            viewDef.RowTemplate.Rows.Add(new RowDefinition());
            viewDef.RowTemplate.Rows.Add(new RowDefinition());

            viewDef.RowTemplate.Rows[0].Cells.Add(new CellDefinition("ImagePreview", 0, 1, 2));
            viewDef.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Description", 0, 1, 2));
            viewDef.RowTemplate.Rows[0].Cells.Add(new CellDefinition("Compare", 0, 1, 2));
            template.ViewDefinition = viewDef;
        }

private void radGridView1_SelectionChanged(object sender, EventArgs e)
        {
            if (prevRow != null)
                prevRow.Cells["Compare"].Value = false;
            prevRow = this.radGridView1.SelectedRows[0];
            this.radGridView1.Columns["Compare"].ReadOnly = false;
            this.radGridView1.SelectedRows[0].Cells["Compare"].ReadOnly = false;
            this.radGridView1.SelectedRows[0].Cells["Compare"].Value = true;         /<- Throws an Error "Column 'Compare' is read only.!!!
        }

If anyone could tell me how to fix this it would be much appreciated. I've spent two days on this now.
George
Telerik team
 answered on 26 Jul 2013
7 answers
343 views
Hello,

I'd like to share with community a sample code that Telerik Support has send me to show the labels of each pie value.

I can't find nothing like it the RadChartView documentation. So, if someone will search for it ,  may use it.

Imports Telerik.WinControls.UI
Imports Telerik.Charting

Public Class Form1
Public Sub New()
InitializeComponent()
Dim table As New DataTable()
table.Columns.Add(
"Name")
table.Columns.Add(
"Value", GetType(Integer))
table.Rows.Add(
"Car", 100)
table.Rows.Add(
"Bicycle", 30)
table.Rows.Add(
"Truck", 53)
Dim series As New PieSeries()
series.Range =
New AngleRange(270, 360)
series.ValueMember =
"Value"
series.DataSource = table
series.ShowLabels =
True
Me.RadChartView1.AreaType = ChartAreaType.Pie
Me.RadChartView1.Series.Add(series)
Me.RadChartView1.ShowLegend = True
End
Sub

Protected
Overrides Sub OnLoad(e As EventArgs)
MyBase.OnLoad(e)
For
Each item As LegendItem In Me.RadChartView1.ChartElement.LegendElement.Provider.LegendInfos
Dim pointElement As PiePointElement = DirectCast(item.Element, PiePointElement)
Dim row As DataRowView = DirectCast(pointElement.DataPoint.DataItem, DataRowView)
item.Title = row(
"Name").ToString()
Next
End
Sub
End Class

Best regards
Ivan Petrov
Telerik team
 answered on 26 Jul 2013
1 answer
203 views
Hi, i need a control that looks like a button.  when clicked it drops down a list of items that have checkboxes next to them so the user can pick one or more.  I'm currently using the radsplitbutton.  it does most of that with the exception of the check box part.  can i add checkboxes to it?

thanks!
Dimitar
Telerik team
 answered on 26 Jul 2013
3 answers
180 views
I need to localize the text of the RadColorBox. Whats the right way to do this? Is there a LocalizationProvider?

Thanks,
Michael 
Stefan
Telerik team
 answered on 26 Jul 2013
3 answers
107 views
Hi, how can I automatically like the rows of the grid view have
Stefan
Telerik team
 answered on 26 Jul 2013
4 answers
328 views
Hi,
I have 2 questions

1-
   How do i make the grid view resize to fit the form size when click on the maximize   i.e something like width = 100%

2- How do I create a custom Context menu from a gridview?
 
Thanks
Stefan
Telerik team
 answered on 26 Jul 2013
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
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
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
Conversational UI, Chat
DateTimePicker
CollapsiblePanel
TabbedForm
CAB Enabling Kit
GroupBox
WaitingBar
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
Barcode
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Licensing
Localization
TimePicker
ButtonTextBox
FontDropDownList
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
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?