I have a GridView with many rows (let's call it Grid A). Within each row there is another GridView (Grid B). This is created when the RowSourceNeeded event is raised.
When the user changes a value in one of the columns in my GridView (Grid A), I need this to result in removing the GridView (Grid B) that was added during RowSourceNeeded and have the event be raised again.
For a float value, the PropertyGridSpinEditor is always used.
It is not comfortable. For example, the value is always rounded to two decimal places.
How to do that this editor is not used and the SingleConverter (overridden) was used
Why is the radrotator seem to be poor at updating at it's defined intervals? The same thing also happens in First Look.
I thought that maybe the webbrowser element was slowing things down if it sensed it needed to update and repaint, but Im finding that using a rotator with 2 png files can take many seconds to recover after resizing a window, if it ever recovers (I get bored waiting after a minute or two) as it appears to stall.
Are there any hints to improve performance and prevent stalling please? I can't use the control if I can't rely on it working reliably.
Hi.
Using VS2017 with Telerik control set version 2018.1.116.40
I'm following the help document Telerik simple example for using the radrotator control and am having design time problems with script errors generated in visual studio every time I attempt to use the radwebbrowser item in the rotator.. I'm setting it to http://www.telerik.com. I've not tried any other URL. I've not had a chance to test suppressing script errors at runtime as I've no clue how to get beyond the design time problem :D
The errors are thrown by VS2017 itself and I can't break out of the constant stream of exception messages. I have to close it using task manager each time. Once VS reloads all sorts of corruptions seem to occur in VS's settings.
My only option is to go into the x.designer.cs file and delete references and code for the webbrowser item.
If its easily solveable then it might be useful to document this in the example so that users can fix it before it happens.
Can you help please?
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)