Telerik Forums
UI for WinForms Forum
1 answer
161 views
Hello,

We are using Rad Controls Professional Q2 2013. We have a radgridview on a radform that is returning the incorrect selectedrows information.

When the user selects a single row and clicks 'OK', the radgridview.selectedrows property returns a value of nothing. When the user selects multiple rows and clicks 'OK', the selectedrows property returns all selected rows except the the last selected row.

The selectionMode is set to FullRowSelect, and multiSelect is set to True.

When we changed the selectionMode to CellSelect and interrogated the radgridview.selectedcells property, the results were correct. This workaround, however, is not suitable for other radgridviews in our project.

Please advise if there is a fix for this problem.

Many thanks,
Jane
Dess | Tech Support Engineer, Principal
Telerik team
 answered on 29 Jul 2013
3 answers
1.4K+ views
Hello,

is there a simple way to show a "Loading Data" animation when asynchroniously fetching data?
In our application we create a RadTabPage with detailed information about a previously double clicked GridViewItem. This RadTabPage contains an empty RadGridView bound to a properly typed DataBindingsource. Until the data was successfully fetched from our database -- which can be time consuming -- the end user only sees this empty grid.

To communicate to the user that some data will appear, it would be great to overlay the grid with a spinner animation or some textual hint.

We would prefer a generic approach which only affects the GridView itself so that it can be wrapped into an extension method or extended class.


Kind regards,
Andreas Haeusler
George
Telerik team
 answered on 29 Jul 2013
1 answer
171 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
96 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
164 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
153 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
144 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
430 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
259 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
250 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
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
PdfViewer and PdfViewerNavigator
CommandBar
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
Label
AutoCompleteBox
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
Wizard
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
NavigationView
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
SmartPasteButton
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?