Telerik Forums
UI for WPF Forum
9 answers
146 views

Hi,

 I have recently added filtering of resources on my WeekViewDefinition view.

 When there are 8 resources the layout looks fine, each day of the week for each resource is a good size. See Good.jpg

 If I filter one of the resources, each day of the week gets resized and becomes way too large. See Bad.jpg.

 Any help would be appreciated as the view is unusable when the days become so large.

 Thanks

Anthony

Anthony
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 10 Jun 2015
1 answer
498 views

Hello,

I need to create columns of RadGridView dynamically, so I have to style the cell in code. Here is my code:

1.<telerik:RadGridView x:Name="ResultsGridView" Grid.Row="1" Grid.Column="0" Margin="10" ItemsSource="{Binding ResultsG}" AutoGenerateColumns="False" RowHeight="25" EnableColumnVirtualization="True" IsReadOnly="True"/>

01.foreach (vstupni_zdroj inputSource in inputSources)
02.{
03.    GridViewDataColumn col = new GridViewDataColumn
04.    {
05.        Header = inputSource.name_short,
06.        UniqueName = inputSource.name_short.ToLower()
07.    };
08. 
09.    DataTemplate template = new DataTemplate();
10.    var cell = new FrameworkElementFactory(typeof(Telerik.Windows.Controls.Label));
11. 
12.    Binding cellBindText = new Binding("InputSources[" + inputSource.id_vstupni_zdroj + "]");
13.    cellBindText.Converter = new TextConverter();
14.    cell.SetBinding(Telerik.Windows.Controls.Label.ContentProperty, cellBindText);
15. 
16.    Binding cellBindColor = new Binding("InputSources[" + inputSource.id_vstupni_zdroj + "]");
17.    cellBindColor.Converter = new StringToBrushConverter();
18.    cell.SetBinding(Telerik.Windows.Controls.Label.ForegroundProperty, cellBindColor);
19. 
20.    Binding cellBindColorB = new Binding("InputSources[" + inputSource.id_vstupni_zdroj + "]");
21.    cellBindColor.Converter = new StringToBrushConverter();
22.    cell.SetBinding(Telerik.Windows.Controls.Label.BackgroundProperty, cellBindColorB);
23.                 
24.    template.VisualTree = cell;
25.    template.Seal();
26.                 
27.    col.CellTemplate = template;
28.    ResultsGridView.Columns.Add(col);
29.}

 

The list named InputSources is Dictionary<uint, string> which contains ID and some color in string. StringToBrushConverter converts string to Brush using this code:

01.SolidBrush brush;
02.if (value is string)
03.{
04.    switch (value as string)
05.    {
06.        case "red":
07.            brush = new SolidBrush(System.Drawing.Color.Red);
08.            break;
09.        case "green":
10.            brush = new SolidBrush(System.Drawing.Color.Green);
11.            break;
12.        default:
13.            brush = new SolidBrush(System.Drawing.Color.Black);
14.            break;
15.    }
16.    return brush;
17.}
18.return value;

My problem is that the foreground color of the label does not change, but background does, even if the approach is the same for both. So I'd like to know, what am I doing wrong.

Thank you for any help.
Kate

Dimitrina
Telerik team
 answered on 10 Jun 2015
1 answer
116 views

Hi 

Want to export gridview data to multiple formats. It works fine with GridviewDataColumns but with GridviewComboboxColumns and columns with edit template, object information is exported. Any idea to show display item for column.

Uing WPF and MVVM and telerik version 2014 Q3

Regards

Dimitrina
Telerik team
 answered on 10 Jun 2015
3 answers
306 views
Hello All,

I was just wondering if there is a way to support the following with the RadCartesianChart:

In my example, I am binding the vertical axis to an "Altitude" property on my underlying data.  The data is in meters.  Based on an application setting, I would like the ability to convert the value to feet when needed.

I do have access to the data contract and I can add another property for feet, however I was just wondering if I could avoid the multiple properties.

Thanks,
Chris
Petar Marchev
Telerik team
 answered on 10 Jun 2015
9 answers
284 views
Hi,

in my application I create a new RadWindow. When I drag the window to my second screen and click the maximize button the window is alway maximized on the first screen. Is this a known/new bug or is there any property to modify this behavior?

Regards,

Dany
Kalin
Telerik team
 answered on 10 Jun 2015
1 answer
170 views

Hello, i would like to bind a combobox to a list like bellow, and in the combobox i would like to use Designation which is a property of Regulation property of my DTO as a display memberpath, and RegulationId as a SelectedValuePath, wich is a Regulation property Too

List<RegulationDto> list = MyWebService.GetList();

Here the DTO:

public class RegulationDto{
        public Regulation regulation;
        public List<ExceptionRegulation> regulationExceptions;
        public List<PointPassageDTO> pointsPassages;
}

Nasko
Telerik team
 answered on 10 Jun 2015
1 answer
158 views

Hi,

Does the Radmap control for WPF support ECW files as tile sources?

Kind Regards,

JP van der Merwe

Todor
Telerik team
 answered on 10 Jun 2015
4 answers
290 views

We have a solution that has been in production at multiple sites for about 11 months. It is using v2012.2.607.40 of the controls. A few weeks ago one of our sites started reporting and issue where the map tiles were not loading.

It seems to be intermittent at best. If the application loads tiles on startup it appears to function properly for the lifetime of the session. If the tiles do not load on startup it does not load them for the lifetime of the session.

We see the initial request go out the door to authenticate to Bing and the Tile Service addressed returned. We never see the Tile Request happen if the client is in the "failed" state.

 

Any information on where to look for a possible network issue would be greatly appreciated. We are not seeing any errors return by RadMap, just a gray screen signifying that no tiles have loaded.

 

Thanks,

Rick Adair

Jason D
Top achievements
Rank 1
Veteran
 answered on 09 Jun 2015
9 answers
301 views
Hi,

Is it possible to always show a rectangle around grouped shapes? Currently, you can style using GroupStyle the bounding rectangle that appears upon selecting the group. I want that rectangle (or any rectangle with the same style) to also be shown when the group is not selected. 

Thanks!
Milena
Telerik team
 answered on 09 Jun 2015
5 answers
202 views

Before export to Excel we add aggregate function:

var sumFunction = new CountFunction()
{
ResultFormatString = " ({0} items): "
};
column.AggregateFunctions.Add(sumFunction);

Export functionality:

var options = new GridViewExportOptions
{
Format = ExportFormat.ExcelML,
ShowColumnHeaders = true,
ShowColumnFooters = true,
ShowGroupFooters = true,
Encoding = Encoding.UTF8
};

var fileToExportTo = exportFileInfo.FullName;
using (FileStream fs = new FileStream(fileToExportTo, FileMode.OpenOrCreate))
{
gridControl.Export(fs, options);
}

Exception: Object reference not set to an instance of an object.​

   at Telerik.Windows.Controls.GridViewBoundColumnBase.<>c__DisplayClass18.<Telerik.Windows.Controls.IExportableColumn.GetCellContent>b__12(AggregateFunction f) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Columns\GridViewBoundColumnBase.cs:line 55
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Telerik.Windows.Controls.GridViewBoundColumnBase.Telerik.Windows.Controls.IExportableColumn.GetCellContent(Object parameter) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Columns\GridViewBoundColumnBase.cs:line 56
   at Telerik.Windows.Controls.GridViewExportWriter.RenderHeaderOrFooterCells(ExportElement element, Object context) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Exporting\GridViewExportWriter.cs:line 692
   at Telerik.Windows.Controls.GridViewExportWriter.RenderFooterRow() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Exporting\GridViewExportWriter.cs:line 535
   at Telerik.Windows.Controls.GridViewExportWriter.Render() in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Exporting\GridViewExportWriter.cs:line 101
   at Telerik.Windows.Controls.GridView.GridViewDataControl.Export(Stream stream, GridViewExportOptions options) in c:\TB\221\WPF_Scrum\Current_HotFix\Sources\Controls\GridView\GridView\GridView\Exporting\GridViewDataControl.Exporting.cs:line 31

Maya
Telerik team
 answered on 09 Jun 2015
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?