I've tried to put this question in the forum but the page keeps disappearing after I click "submit", so here I am...
I have a 3 column GridView and the GridViewComboBoxColumn is not binding correctly. I've set the following for the grid.
When I run the application I see "System.ComponentModel.BindingList`1[TelerikGridViewTests.Models.ColorViewModel]" instead of the object within my model. For my other 2 columns in the grid (a decimal and a string) those are displayed just fine.
Here is my model code...
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; }
}
}
and code which binds the model..
using System.ComponentModel;
using System.Windows.Forms;
using TelerikGridViewTests.Models;
namespace TelerikGridViewTests
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
BindingList<CarViewModel> _cars = new CarsViewModel().Cars;
radGridView1.DataSource = _cars;
}
}
}
Hello,
Is there a way to load a pdf file; located in Project's Resources, into pdfviewer?
Thanks a lot,
William

Hi,
since some days, I got the title's related null reference exception when I click on item on RadListView control in DetailView mode.
Have you any idea? If i use the same control with the same data inside it but set mode to ListView al works without any problem (but I can't do this, due to a complex series of routine formatting details view elements according to the type and the structure of the data inside of it). The exception was thrown inside Telerik.WinControl.UI, on the event indicated. I cannot intercept any event before the crash, so the application quit unexpectedly.
Routing causing the exception is:
private void lvRecords_CurrentItemChanged(object sender, ListViewItemEventArgs e)
{
if (e.Item != null)
CaricaDettaglio(e.Item.DataBoundItem as BaseEntity<int>);
else
{
spDetails.Collapsed = true;
spGestioneCustom.Collapsed = true;
}
}
where, by the call CaricaDettaglio, I made some changes on the form, loading some data into other controls based on the e.Item.DataboundItem, an entity of my application. I've also noticed that if I double click on form bar to resize it, if the mouse passes through the control during the form resize, the same event was fired, with the same result, without any further click on it, and this is really unattended.
DLL version is 2016.2.608.40 but I don't want updgrade project to latest Telerik Library if not necessary.
Have you any idea or suggestion?
Thanks in advance.

I can change split panel collapse direction to left or right like this. But can I have both splitter buttons (left and right direction) on RadSplitContainer with only 2 SplitPanels?
I noticed that if the RadSplitContainer had more than 3 panels, the splitter button showed 2 buttons (left and right direction)





Hello guys! I have a small deal with DropDownList...
I need to create a path selector, and this is how I see it:
- when I'm writing "C:\" DropDown starts showing AutoComplete options
- Paths that were in usage (it will be decided after some program runs) it will save it to its DataSource.
Standard Combox can do all of theese requirements, It will be like:
AutoCompleteSource = AutoCompleteSource.FileSystemDirectories
and after save the "good" paths to DataSource.
I find somthing same in the Telerik lib - a DropDownList but it hasn't property AutoCompleteSource where I can set AutoCompleteSource.FileSystemDirectories...
I continued to search for solutions and found RadMaskedEditBox that has AutoCompleteSource like I want, but has no DropDownMenu for saving used pathes.
If there other solutions that I didn't see? I don't want to write algorithm for DropDownList which will AutoComplete directories, I think there is a more beautiful solution.
Thanks!