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..
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
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 = ??????????????????????????;
}
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...
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
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;
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?
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).
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?
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.