Hi,
I have a datetime column in a RadGridView as a GridViewDateTimeColumn. When the excel-like filter is used it is setting the expression includes "12:00:00 AM", so when selecting todays days date it does not work. See the attached gif (performed on 08/28/2018). How can I have the filter only filter by date (and not time)
Thanks
Hi i'm trying to understand how to use TypeConverters with databound columns.
The databound type is Int and I want to display a picture in a GridViewImageColumn based on that, but I can't make it work, the TypeConverter is never used by the RadGridView to convert the data?
Code:
TypeDescriptor.AddAttributes(typeof(int), new TypeConverterAttribute(
typeof(SeverityImageConverter)));
GridViewImageColumn Severity = new GridViewImageColumn("Severity", "Severity");
Severity.DataTypeConverter = TypeDescriptor.GetConverter(typeof(int));
IssueOverviewGrid.MasterTemplate.Columns.Add(Severity);
IssueOverviewGrid.DataSource = MasterBindingSource;
Type converter implementation:
public class SeverityImageConverter : TypeConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext context,
Type sourceType)
{
if (sourceType == typeof(int))
return true;
else
return base.CanConvertFrom(context, sourceType);
}
public override object ConvertFrom(ITypeDescriptorContext context,
System.Globalization.CultureInfo culture, object value)
{
// if no value passed along
if (value == null)
throw new ArgumentNullException("value");
// if the source is a string then convert to our type
if (value is int)
{
// get strongly typed value
int? SeverityValue = value as int?;
Image SeverityImage = Library.GetIssueSeverityIcon(SeverityValue.Value);
return SeverityImage;
}
// otherwise call the base converter
else
return base.ConvertFrom(context, culture, value);
}
}
Hi everybody :)
I am turning a little bit crazy, I am trying building a classic form, with some radlabel and some radtextbox control.
All controls are placed in LayoutControlItems, and for elementary aesthetic reason I would like that my label control would be align middle right in the LayoutControlItem. to be close to the radTextBox.
For some reason beyond my understanding, whatever the way I have been using, moving anchor, TextAlignment, my radlabels remain aligned left.
I probably miss something very stupid but some help would be welcome :)
Jeff


Hey there! I'm just doing a bit of scouting at the moment for a new desktop app we're looking to write -- probably a WinForms C# app. This app will need as one of its features to be able to edit XML and CSharp code snippets.
Since RichTextEditor is already in our toolbox of toys -- but I haven't worked with it previously -- I was wondering, is there any way to make it behave as close as possible to a Visual Studio style code edit window?
I like the look of the code blocks ("InsertCodeBlock()" function) in RTE but those appear to be read-only. Ideally I'd want the entire edit window to look like the code block (syntax highlighting for the desired language) but not do any of the RTF type things (bolding, italics, etc.)
Just thought I'd pick the communities thoughts to see if this was even feasible before sinking too much time going down a dead end. Thanks!
- Tony

Hello guys,
There is a way to creating a radspin editor like in the picture attached?



Hey guys, Is there a way to show some clue on a page that have invalidated controls?
I'm currently using error provider to show errors on controls, I've tried using it on the page but it don't have good location, and I need a generic solution because I use a generic validator to see if the controls has value.
I'm currently using 2015.1.225.40 version and sorry for bad english. Thanks in advance.

I'm not sure if someone will help me with this, considering the version. We are using radcontrols for winforms Q1 2009 SP1 (2009.1.9.414).
I have a MDI Parent, and several mdi children. One MDI Child form with a RadGridView on it. The form works fine, and performs as expected. I use events like CellBeginEdit and CellEndEdit to make changes to the database. The gridview is bound to a BindingList<myCustomClass>. When I edit directly in the grid I update to database on CellEndEdit the entire object. something like this:
myCustomClass objToUpdate = (myCustomClass)RadGridView1.Rows[e.RowIndex].DataBoundItem;
Debug.WriteLine("id: " + objToUpdate.Id);
Debug.WriteLine("Priority: " + objToUpdate.Priority);
db.UpdateCustomClass(objToUpdate);
However here is the problem:
If I do one update, change to another MDI Child form, and change back to the form in question, the objects are not updated correct. I can see in the debug that the Id property is correct, but the priority (Int32) have the old value. Since Priority is Int32, I can change with both keyboard and numeric up/down. But if I change priority using numeric up/down editor it works. If I change priority from 1 to 2 with keyboard and press Enter, the value does not change, but if I try to edit again, the numeric up/down have value 2...
If I just open the form and select a row, change back and forth, and do an update, everything works. It is just if I make a change to the datasource before changin forms the problem occurs.
I have tried to deselect currentRow when form1 is deactivated, so that when I come back I have to select the row again, but does not work.
clearing bindinglist og populating grid again does not work either. I have to restart the form.
Any help greatly appreciated.. :-|