Telerik Forums
UI for WinForms Forum
1 answer
563 views

Assume MultiSelect = true; And also assume they are all checkboxes.

Scenario--

I multi-select several nodes and when they are selected, I want to check any node within my selection and select all nodes that are selected..

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Feb 2018
6 answers
762 views

I have my gridview working with data tables for the data sources for both the master template and the child template.  Can you tell me how to do two things?

1.  I would like to set the width for that column that expands and collapses the child rows.  (It has that [+] and [-] symbol in it.)

2. Is there a way to collapse the child rows for a parent row when I click to expand a different parent row?

 

Thank you,

Gary

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 06 Feb 2018
2 answers
106 views

I have a radgrid which has a context menu attached to it (this is not a header context menu).

I need to customize the context menu based upon which column has been clicked.

How to I retrieve the unique name of the column that has been clicked when the OnRowContextMenu  event fires in javascript?

Can you please point me to documentation that provides this information or failing that provide a code snippet.

 

e.g.

 

var TelerikRowContextMenu =  function (sender, eventArgs) {
            var objEventTarget = eventArgs.get_domEvent();
 
            var lngRowNumber = eventArgs.get_itemIndexHierarchical();

            var strColumnUniqueName = ??????????????????????????;

 

}

 

Alan
Top achievements
Rank 1
 answered on 06 Feb 2018
0 answers
85 views

Hello...

i have headache for this scenario ... i don't know what best scenario i need to use 

i have grid 

User can insert new data but if i doesn't valid it will show to another from that show master table... 

but if valid the next column on grid will fill with data...( i use LINQ) 

i have tried many solution but nothing work for me... 

help me plz... 

 

 

Hengky
Top achievements
Rank 1
Veteran
 asked on 06 Feb 2018
1 answer
471 views

Hello,

How to get row index / position on validating ... ? 

i have use this code 

       Dim baris As Integer = GridDetail.CurrentRow.Index 

and the return always -1 

how to fix this...  ?

*i use vb.net

Thanks

Hengky
Top achievements
Rank 1
Veteran
 answered on 06 Feb 2018
4 answers
202 views

After getting my listview to display custom items correctly (see http://http//https//www.telerik.com/forums/custom-listview-items) I noticed that my data is not being displayed correctly. I'm getting differing results, but often the first item in the list will mirror the last, but not all of the data. See the attached screenshot. The red values show what they should be. They are all ok except the first two values of the first item. I'm quite sure my DataSource is set up correctly as I can view it in debug. Maybe you could explain how SynchronizeProperties works, as I can't find an explanation of it in the docs. Perhaps I'm using it incorrectly. The code for creating the datasource is below.

_dataSource = new BindingList<RuleItemVisualItemDef>();
_myRule.RuleItemDefs.ForEach(def => _dataSource.Add(
    new RuleItemVisualItemDef
    {
        RuleItemId = def.RuleItemId,
        Sequence = def.Sequence,
        Name = def.Name,
        RuleItemText = GetRuleItemTextFor(def)
    }));
lstvwRuleItems.DataSource = _dataSource;
Tino
Top achievements
Rank 1
 answered on 06 Feb 2018
1 answer
60 views

I'm adding RadWebBrowserElement items to my rotator at run time.

To make it easier, I added a sample at design time and set up the properties for the embedded web browser in the property designer, eg suppressing errors, disabling links etc. I planned to copy/paste these from the designer.cs file into my factory, but I can only see the properties associated to the RadWebBrowserElement itself in the designer.cs file.

Where are they stored please?

 

 

 

Dimitar
Telerik team
 answered on 05 Feb 2018
5 answers
573 views

Hi

How can the pivot grid auto resize the width of it's columns according to the width of it's column's data.

PivotGridElement.BestFitHelper.BestFitColumns() doesn't work for me.

Basically I want to execute the best fit function (provided in context menu for any column) for all members of ColumnGroupDescriptions and RowGroupDescriptions.

Additionally, I want to hide the PivotRowDescriptorContainer, PivotFilterDescriptorContainer and PivotColumnDescriptorContainer when the pivotgrid has no data,

or remove the "Drag data items here", "Drag row items here" and "Drag column items here" message that is displayed in this case so that the user doesn't try to do so (I am not using the RadPivotFieldList).

Hristo
Telerik team
 answered on 05 Feb 2018
3 answers
377 views

My gridview datasource is only updated when all row changes are complete; however, when a cell in a sorted column is changed, the grid is sorted immediately so the changing row may move positions.  This can be confusing to the user.  How can I prevent the grid from resorting until after the row changes are complete?

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Feb 2018
7 answers
926 views

I see the datatype instead of the values I should see..

using System.ComponentModel;
 
namespace TelerikGridViewTests.Models
{
    public class CarsViewModel : ViewModelBase
    {
        public CarsViewModel()
        {
            _cars = new BindingList<CarViewModel>();
 
            _cars.Add(new CarViewModel()
            {
                Id = 0m,
                Description = "Ford",
                Colors = new ColorsViewModel().Colors,
            });
 
            _cars.Add(new CarViewModel()
            {
                Id = 1m,
                Description = "Chevy",
                Colors = new ColorsViewModel().Colors,
            });
 
            _cars.Add(new CarViewModel()
            {
                Id = 2m,
                Description = "Dodge",
                Colors = new ColorsViewModel().Colors,
            });
        }
 
        BindingList<CarViewModel> _cars;
        public BindingList<CarViewModel> Cars { get { return _cars; } set { _cars = value; } }
    }
 
    public class CarViewModel : ViewModelBase
    {
        public decimal Id { get; set; }
        public string Description { get; set; }
 
        BindingList<ColorViewModel> _colors;
        public BindingList<ColorViewModel> Colors
        {
            get { return _colors; }
            set { _colors = value; }
        }
    }
 
    public class ColorsViewModel : ViewModelBase
    {
        public ColorsViewModel()
        {
            Colors = new BindingList<ColorViewModel>();
 
            Colors.Add(new ColorViewModel()
            {
                Id = 1,
                Color = "Blue",
            });
            Colors.Add(new ColorViewModel()
            {
                Id = 2,
                Color = "Red",
            });
            Colors.Add(new ColorViewModel()
            {
                Id = 3,
                Color = "Green",
            });
            Colors.Add(new ColorViewModel()
            {
                Id = 4,
                Color = "Yellow",
            });
        }
 
        public BindingList<ColorViewModel> Colors { get; set; }
    }
 
    public class ColorViewModel : ViewModelBase
    {
        public int Id { get; set; }
        public string Color { get; set; }
    }
}

 

Here is where I bind...

public Form1()
{
    InitializeComponent();
 
    BindingList<CarViewModel> _cars = new CarsViewModel().Cars;
    radGridView1.DataSource = _cars;
}

 

I've set the DisplayMember of the column to "Color", the ValueMember to "Id" and the DataType to "System.ComponentModel.BindingList`1[TelerikGridViewTests.Models.ColorViewModel]"  Instead of seeing the colors in the combobox I see "System.ComponentModel.BindingList`1[TelerikGridViewTests.Models.ColorViewModel]" instead.  See attached screens.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 02 Feb 2018
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
Styling
Barcode
BindingNavigator
PopupEditor
RibbonForm
TaskBoard
Callout
ColorBox
PictureBox
FilterView
NavigationView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
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
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?