Hello,
I have a RadGridView and I would like that the details for one row to be opened on double clicking on them and that several rows could be open on the same time.
Here is a sample of code :
<telerik:RadGridView x:Name="rdGrid"
ShowGroupPanel="False"
SnapsToDevicePixels="True"
BorderThickness="0"
RowDetailsVisibilityMode="VisibleWhenSelected"
RowDetailsStyle="{StaticResource simpleRowDetailsStyle}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ItemsSource="{Binding CompartmentsAnalysis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
AutoGenerateColumns="False"
SelectedItem="{Binding Path=SelectedCompartmentAnalysis, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, NotifyOnSourceUpdated=True, NotifyOnTargetUpdated=True}">
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn Header="Name"
DataMemberBinding="{Binding xxxx.Name, IsAsync=True}"
IsReadOnly="True"
Width="*" />
</telerik:RadGridView.Columns>
</telerik:RadGridView>
Hi, I hava a diagram, and want to export. The code is as follows:
FileStream fs = File.Open("D:\\a.png", FileMode.Create);
pair.Diagram.Zoom = 1;
pair.Diagram.ExportToImage(fs, null, new Rect(minX, minY, ww, hh));
fs.Close();
Now, the problem is that the exported image a.png is clear in my notebook PC(Screen resolution:1366*768). But it is fuzzy in my friend's(Screen resolution:1920*1080) by using the same code.
Why? Hope answer, thanks.
Hello! I am using the Windows8 theme throughout my WPF application, however I would like to exclude a ListView from the styling. Is this possible? I have searched a bit and have looked at this guide:
http://docs.telerik.com/devtools/wpf/styling-and-appearance/stylemanager/common-styling-themes-mscontrols
But I am not sure if I am able to 'null' out a style and let it take on the default styling while still having all other elements use the theme of my choice.
Thank you!
Regards,
Joel
Hi mates, i have a variable from database, it's the comparable flag to set a DataTemplate to my PivotGrid.
public override DataTemplate SelectTemplate(object item, DependencyObject container)
{
var cellAggregate = item as CellAggregateValue;
if (cellAggregate != null)
{
var description = cellAggregate.Description as PropertyAggregateDescription;
var test = item as PlannedRouteByMonthToGridPivot;
if (description.PropertyName == nameof(ViewModels.PlannedRouteByMonthToGridPivot.PercentExecuted))
{
if (System.Convert.ToDouble(cellAggregate.Value) >= 0.965d)
{
return this.GreenTemplate;
}
else
{
return this.RedTemplate;
}
}
}
return base.SelectTemplate(item, container);
}
I need replace the number 0.965d with a variable in my RadPivotGrid DataProvider, someone have any ideia how i can do it.
When creating the drag visual in codebeind, I am not seeing the data being bound to theTileViewItem, although the styles and templates are being applied, how can I get the data to bind?
01.private void OnDragInitialize(object sender, DragInitializeEventArgs args)02. {03. var data = ((RadRadioButton)args.OriginalSource).DataContext as ITile;04. 05. var payload = DragDropPayloadManager.GeneratePayload(null);06. payload.SetData("DragData", data);07. 08. args.Data = payload;09. args.AllowedEffects = DragDropEffects.All;10. args.DragVisual = new RadTileViewItem11. {12. DataContext = data,13. ContentTemplate = Application.Current.FindResource("DashboardTileView_ContentTemplate") as DataTemplate,14. HeaderTemplate = Application.Current.FindResource("DashboardTileView_ItemTemplate") as DataTemplate,15. Style = Application.Current.FindResource("DashboardTileView_ItemStyle") as Style16. };17. }
Thank you,
Maurice
Hi,
I would like to display the label inside the bubble series, I have changed in the label definition VerticalAlignment to center but it is shown now in the bottom of the bubble.
Can any one help me to fix this issue?
Thanks
Hello
I want still opening MenuItem's popup when I open new floating pane by ToolWindow.
for example, VisualStudioDocking_WPF in Docking example source code, it worked I expected.
in that sample,
1. ToolBox pane, make a floating pane.
2. Open View 's menu popup in Menu bar.
3. Repeat click to ToolBox item in popup. (check and uncheck).
then also open and close ToolBox pane(floating) and View's menu item popup still opened. (that's exactly what I want)
It is implemented by RadMenuItem in MenuBars.
And I implemented like VisualStudioDocking_WPF sample, but I didn't use RadMenuItem, using WPF control MenuItem and set StaysOpenOnClick="True".
Then docked panes doesn't matter. (still opened menu item's popup)
But floating panes not worked what I want.(Popup close when open or close floating pane)
- I guess MenuItem lost focus when open or close floating pane, so popup also closed.-
I want still open popup like VisualStudioDocking_WPF sample.
How can I get it without RadMenuItem?
