How do I bind a DataColumn to a field that has a Space (" ") in the name? In the code snippit, I need to bind a field called "English Identifier" to a DataColumn. Thanks for your help.
<telerik:RadGridView
x:Name=
"gridView"
Grid.Row=
"1"
AutoGenerateColumns=
"False"
ItemsSource=
"{Binding CoordinateMap}"
>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn
Header=
"Name"
DataMemberBinding=
"{Binding English Identifier}"
IsReadOnly=
"True"
/>
<telerik:GridViewDataColumn
Header=
"IsCloseout"
DataMemberBinding=
"{Binding IsCloseOut}"
IsReadOnly=
"True"
/>
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Hi,
We have a radtreeview with check boxes. Now we want to support radcontextmenu on checked items and dragdrop on selected items. But when we implement context menu , we are getting even on selected item.
How can we disable contextmenu on selected item and enable only if it checked. Please provide your inputs.
Thanks,
Subhashini
Hi
I am trying to use Datatable in my radgridview for items source. It works fine with premitive datatypes for columns. But when you try to add a custom object as a column, and provide a celltemplate in autogenerate columns event in code behind then the datatemplate is not picking the object context. In output window its showing a binding error from datatemplate for the properties I have provided from my object in the cell. The error for each cell I am getting in my output window is: Error: 40 : BindingExpression path error: 'PropertyValue' property not found on 'object' ''DataRow' (HashCode=45554962)'. Any idea if I am missing any thing..
Below is my code in code behind file. Assum my all columns are of same type and they need a cell template and an celledittemplate.
private void ResourcesListGridView_OnAutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
{
var editModel = Application.Current.TryFindResource(CommonKeys.CostValueModelEditor);
var cellmodel = Application.Current.FindResource(CommonKeys.CostValueModel);
if(editModel!=null)
e.Column.CellEditTemplate = editModel as DataTemplate;
if(cellmodel!=null)
e.Column.CellTemplate = cellmodel as DataTemplate;
}
I export data from my grid to Excel (v2013.1.422.45). Data grouped by some field.
var options = new GridViewExportOptions
{
Format = ExportFormat.ExcelML,
ShowColumnHeaders = true,
ShowColumnFooters = true,
ShowGroupFooters = true,
Encoding = Encoding.UTF8
};
gridControl.Export(stream, options);
Groups are missing. I tried to use ElementExporting handler but there is no event with ExportElement.GroupHeaderRow (GroupHeaderCell, GroupIndentCell) data (just Footer).
Hi,
I was wondering if there was a way to get the trackball to snap to the closest point by taking only the horizontal distance into consideration?
We have a chart with a number of series which all have the same set of x values. We have the trackball behavior enabled and what we would like to be able to do is to show details about each series but for one x value at a time. The default behavior seems to get the closest points for each series by taking the closest point to the mouse. This means, depending on mouse location, that the trackball can be showing values from 2 points which have different x values. Is there a way to stop this and to get the trackball to snap only to x values?
Thanks,
Steven
Hi Team,
I am using Telerik RAD drag and drop for WPF 2015 Q1 SP1 (2015.1.0401.40), but unfortunately facing an issue regarding the compass, that compass doesn't fade out automatically when an element is dropped, earlier I was using previous version of dlls (2012.3.1129.40) with same project it was working absolutely fine for me, could you please assist for the same.
PS: Had attached a screenshot for the same for your kind reference.
Regards,
Amit
What is the best way to initialize RadDocking with a saved layout?
I want my application to save layout whenever a RadDocking control is loaded I want to load the saved layout, but I cant find any good event to hook into to run LoadLayout.
I am using Prism with a RegionAdapter as in your ShellPrism sample project.
/Ola
this
.ListBox.Items.CurrentChanged += (sender, args) =>
{
for
(
int
i = 0; i <
this
.ListBox.Items.Count; ++i)
{
var item =
this
.ListBox.Items[i];
if
(item.ToString().StartsWith(
"Fault"
))
{
ListBox.Items[i]............????????? Looking for background property.
}
}
};