Telerik Forums
UI for WPF Forum
3 answers
159 views

Hello,

I've edited the RadTreeListView row template to add additional visuals that I need, but after the modifications an horizontal scrollbar appears and what seems to be an empty column header is added (image attached)

I've seen that the problem lies in the extra visuals I added to the row template, because when I remove the 2 colored borders the empty column header disappears.

Here you can find a sample project that reproduces the issue: 

How can I prevent this issue and make the empty column header disapper ?

Thank you for your support.

 

Maya
Telerik team
 answered on 26 Oct 2015
1 answer
180 views

Hi,

We have a RadGridView binded on DataTable.DefaultView object as ItemsSource.

Our DataTable is define as follow:

A DataRow object is overrided by our own Record object that contains Collection of Property object as ItemArray 

public class Record : DataRow, IEquatable<Record>, ICloneable
    {
        public Record(DataRowBuilder builder)
            : base(builder)
        {
        }
 
        public new Property this[string columnName]
        {
            get
            {
                return (Property)base[columnName];
            }
            set
            {
                SetRowVisibility(value);
                base[columnName] = value;
            }
        }
}

 All Property objects are updated in realtime by a ​thread that changes Property Value

We don't have any problem to see all data updated. 

 

But when we apply a filter on a column, the filter is not reapply automatically  when data value changed.

 

One solution was to remove completely the Row and add it with new values..It 's running for filter, but we have identify several problems with sorting, because Rows are delet​ed/added during sorting thread, that generate an IndexOutOfBoundsException

 

What's the solution ? 

 

regards, 

 

 

 

 

 

 

Martin
Telerik team
 answered on 23 Oct 2015
4 answers
537 views

I have created an Excel spreadsheet using Microsoft Excel 2013. The spreadsheet I created is empty but it has some formatting, e.g. I selected all cells and set text alignment to right. I also selected some of columns and set their type to Number, short date, or general. Is it possible to get these formattings and types from an empty spreadsheet? I already tried this, but it seems that RadHorizontalAlignment is always General, not Right as I would like it to be.

Anna
Telerik team
 answered on 23 Oct 2015
1 answer
143 views

Hi,

I use global custom template for Window control in application. So all dialogs have Ok, Cansel buttons and Close button. The problem is that the same style is applied to drag&drop window that appears when I'm reordering columns in RadGridView. So it looks like it also uses that Window template.

Is there a way how could I change style for drag and drop header in RadGridView without modifying my global template?

Nasko
Telerik team
 answered on 23 Oct 2015
1 answer
268 views

I have a RadTreeView that I am binding to some data.

I would like to have all the items in the tree expanded by default.

The issue I have when I do this is that the tree is autoscrolling to the right to bring into focus the most right hand expanded item.

To try and get round this I have disabled the horizontal scroll bar, call ExpandAll(), then after that reenable the horizontal scroll bar.

This is not working.

private void FrameworkElement_OnLoaded(object sender, RoutedEventArgs e)
        {
            RadTreeView rtv = sender as RadTreeView;
 
            if (rtv.ScrollViewer != null)
            {
 
                rtv.ScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Disabled;
 
                rtv.ExpandAll();
 
                rtv.ScrollViewer.HorizontalScrollBarVisibility = ScrollBarVisibility.Auto;
            }
        }

Please can you advise on the correct way to achieve this?

 Thanks.

Petar Mladenov
Telerik team
 answered on 23 Oct 2015
1 answer
804 views

Hello,

 I am using RadCartesianChart  LineSeries and I can not set line color.

my XAML

        <chart:RadCartesianChart x:Name="radChart"
                                 Grid.Row="3" 
                                 Grid.Column="0" 
                                 Palette="Windows8" 
                                 Margin="6,-5,0,0"                                  
                                 Height="240">
            <chart:RadCartesianChart.Resources>
                <DataTemplate x:Key="PointTemplate1">
                    <Ellipse Height="10" Width="10" Fill="#FF1B9DDE" />
                </DataTemplate>
            </chart:RadCartesianChart.Resources>
            <chart:RadCartesianChart.HorizontalAxis>
                <chartView:CategoricalAxis FontSize="14"/>
            </chart:RadCartesianChart.HorizontalAxis>
            <chart:RadCartesianChart.VerticalAxis>
                <chartView:LinearAxis FontFamily="Segoe UI" FontSize="14" Title="Calories"   TickThickness="1" Minimum="0"    Maximum="{Binding LinearAxisMaxValue}"           />               
            </chart:RadCartesianChart.VerticalAxis>
            <chart:RadCartesianChart.Grid>
                <chartView:CartesianChartGrid MajorLinesVisibility="XY" StripLinesVisibility="none"  />
            </chart:RadCartesianChart.Grid>
            <ctChart:ChartSeriesTypeSwitch.SeriesType >
                <Binding Path="SelectedChartType" />
            </ctChart:ChartSeriesTypeSwitch.SeriesType>

        </chart:RadCartesianChart>​

 

please help me

Martin Ivanov
Telerik team
 answered on 23 Oct 2015
1 answer
198 views

When copying multiple cells from an excel sheet to the GridView, empty cells are skipped and following non-empty cells are moved forward. See attached screenshots for an illustration.

This behavior is undesirable for obvious reasons. Is this a bug or a feature. If it's a feature, is there a workaround?

Maya
Telerik team
 answered on 22 Oct 2015
2 answers
198 views

We are implementing a drag&drop scenario, where the drop target can be another control from our application or the drop target can be the desktop or another folder from the file system. How can I set the dragged data inside the DragInitializeHandler to handle both scenarios simultaneously?

If the dragged data is a DataObject where the data is set via SetFileDropList I can drag the data to the desktop but not to another control. If I create a IPayload and sets the data via SetData("DragData", ...) and SetData("FileDrop", ...) I can drag the data to the other control but not to the desktop?

How can I create a payload, which is working for both scenarios? 

Felix

Felix
Top achievements
Rank 1
 answered on 22 Oct 2015
4 answers
286 views

We are currently using a GridViewComboBoxColumn control in a GridView, and like a few others, we would like the combobox editor (arrow) to always be visible. Most answers have involved using the said 'GridViewComboBoxColumn' or a 'GridViewDataColumn' in conjunction with a DataTemplate to target the ComboBox. 

 I have both approaches, both with the same result. I get a column of combo boxes, but no data.

This is our current markup:

 

<telerik:GridViewComboBoxColumn x:Name="ColP4" Width="150" IsReadOnly="False" IsComboBoxEditable="False" EditTriggers="CellClick" ItemsSource="{Binding PermissionCollection}" DataMemberBinding="{Binding Col4}" UniqueName="Permission" Header="{Binding Source={StaticResource TranslationAreas}, Path=[exportproject][TXT_COLUMN_5]}" DisplayMemberPath="Name" SelectedValueMemberPath="ID"/>

ItemsSource is an ObservableCollection of type 'Permission'. Permission has two properties, int: ID and str: Name.  

 This looks like what we want, only with no data:

 

<telerik:GridViewDataColumn x:Name="ColP4"
      DataMemberBinding="{Binding Col4}"
      Header="{Binding Source={StaticResource TranslationAreas}, Path=[exportproject]
          [TXT_COLUMN_5]}" >
      <telerik:GridViewColumn.CellTemplate>
          <DataTemplate>
              <ComboBox DisplayMemberPath="Name"
                        ItemsSource="{Binding PermissionCollection}"
                        SelectedValue="ID"
                        SelectedValuePath="ID"/>
           </DataTemplate>
       </telerik:GridViewColumn.CellTemplate>
</telerik:GridViewDataColumn>

 

 I'm sure the problem lies with the databinding. Any help is very much appreciated.

Stefan
Telerik team
 answered on 22 Oct 2015
2 answers
176 views

I have a grid like this:

<telerik:RadGridView x:Name="DataG"ItemsSource="{Binding CamposUsu}"SelectedItem="{Binding Selected}"CanUserReorderColumns="True"CanUserResizeColumns="True"CanUserSortColumns="False"SelectionUnity="FullRow"IsReadyOnly="True"AutoGenerateColumns="False"Loaded="DataG_Loaded" />

 

In the .cs file the method DataG_Loaded:

private void DataG_Loaded(object sender, RoutedEventesArgs e)

{

DataTemplate labelTemplate = new DataTemplate();

FrameworkElementFactory label = new FrameworkElementFactory(typeof(Label));

label.SetValue(Label.ContentProperty, "Unlimited");

labelTemplate.VisualTree = label;

labelTemplate.Seal();this.DataG.Columns[7].CellTemplate = labelTemplate;

//this column 7 is a column called "Vl." with double values

}

Well, when I comment the method DataG_Loaded, my grid is fulfilled correctly with the objects I created on my viewmodel. When I uncomment the method, the column "Vl." that had values like "93.5", "108.9"... is all fulfilled with the value "Unlimited".
This was already expected. I want only the cells that the value is > 100.0 to turn to the string "Unlimited".

Is there any way of doing this?

Martin
Telerik team
 answered on 22 Oct 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
InlineAIAssistant
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?