Telerik Forums
UI for WPF Forum
1 answer
153 views
Hi,
We are creating columns dynamically. There are a few datetime columns where we set the datatype as DateTime and CellEditTemplate as below.

 dataColumn.DataType = (typeof(DateTime?));
            dataColumn.DataFormatString = "{0:dd-MMM-yyyy}";
            dataColumn.TextAlignment = TextAlignment.Right;
            dataColumn.CellEditTemplate = GetDatePickerTemplate(dataColumn);
        }

        private static DataTemplate GetDatePickerTemplate(GridViewDataColumn column)
        {
            var fef = new FrameworkElementFactory(typeof(FormatedRadDatePicker));
          ................

The issue is when you sort the grid with this datetime column and try to edit any value in this column the application crashes with below error:

 Dispatcher UnHandled Exception: System.ArgumentException: Object must be of type DateTime.
   at System.DateTime.CompareTo(Object value)
   at Telerik.Windows.Data.FunctionComparer.Compare(Object x, Object y)
   at Telerik.Windows.Data.ListExtensions.BinarySearch[T](IList`1 items, T value, Func`3 compareFunc)
   at Telerik.Windows.Data.KeyedCollection.IndexOf(Object value)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RefreshAlternation(GridViewDataControl parentGrid, GridViewRow gridViewRow, Object dataItem)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.RealizeRows(Int32 startIndex, Int32 endIndex, Double& verticalOffset, HashSet`1& realizedRows)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.FlatLayoutStrategy.MeasureOverride(Size availableSize)
   at Telerik.Windows.Controls.GridView.GridViewVirtualizingPanel.MeasureOverride(Size availableSize)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)...........


To me it looks like after the cell edit is over grid tries to put the newly edited data to its rightful place based on sortdescriptor. Probably it fetches the data from DateTimeTextProperty as string type and is not able to compare with DateTime values of other cells....
Rossen Hristov
Telerik team
 answered on 17 Oct 2013
2 answers
286 views
Hello,
        I can add secondary y-axis to my chart.Currently the chart has secondary Y-axis equals to the number of series aligned to that axis.
But our requirement is to have only one secondary Y axis should be configured to the all the series which have  aligned to that secondary Y axis.In short, I would like to have only one secondary Y-axis to right for multiple series and it should configure scale automatically on that axis according to series values. Just like we have primary vertical  Y  on Left axis  which scales automatically for any multiple number of series.
Is it possible to assign the same primary Vertical Y  on Right axis for any number of series?
I have gone through the documentation of shared vertical axis here http://www.telerik.com/help/wpf/radchartview-axes-multipleaxes.html
but we have dynamic multiple series and we are adding series to the chart dynamically.So how do i set the secondary vertical axis?.Currently I have set it to for every series and that's why multiple vertical axes are getting added.   
 
Could you please help me to resolve this issue if it is possible to implement.
Thank You in Advance  
Dts
Top achievements
Rank 1
 answered on 17 Oct 2013
2 answers
187 views

Hello.

I have a problem with columns in grid. I would like to have columns with the same width and this width should not depend on the content of the columns.

Here is my code:

    <Grid Margin="5" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="0" 
                                 ItemsSource="{Binding TreeView0}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="1" 
                                 ItemsSource="{Binding TreeView1}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="2" 
                                 ItemsSource="{Binding TreeView2}" />
            <telerik:RadTreeView Margin="5,0,5,0" Grid.Column="3" 
                                 ItemsSource="{Binding TreeView3}" />
    </Grid>

When I am expanding tree in RadTreeView the column changes it's width and other columns changes respectively. But I would like to have four columns with width = 1/4 of grid's width. RadTreeView has its own ScrollBar for horizontal scrolling.

Is there any property on RadTreeView that stops it from growing horizontally? I tried to enable horizontal scrollbar but it didn't helped.
Ilya
Top achievements
Rank 1
 answered on 17 Oct 2013
1 answer
403 views
Hello,

I want RadAutoCompleteBox to display the vertical scroll bar and I'm using ScrollViewer.VerticalScrollBarVisibility="Auto", but it's not displaying. What am I missing? Please advise.

Thanks,
Brew
Brew Hutch
Top achievements
Rank 1
 answered on 16 Oct 2013
2 answers
98 views
Hello! I'm wondering If I can change the size of the point in caret position .

This point appears only when I touch the screen but it's difficult to select that point to change the selection with the fingers.

Thanks for your help.

Here is the image of that point.

Ricardo
Top achievements
Rank 1
 answered on 16 Oct 2013
11 answers
170 views
Hello,,,
I'm new to the Telerik components and we are having some difficulties because do not know them well, but I know I will receive help.
The thing is, I've had reading the help, but I could not see a way to add a filter feature automatic, I know you have the fields above each column, but the filter is only done after hit enter or loses focu but we need a functionality that when typing the RadGridView already go with updating the information entered.

Please if possible add a sample Demo here to see and we can apply in our project.

graciously
André
Andre
Top achievements
Rank 1
 answered on 16 Oct 2013
1 answer
127 views
Hy,

In radbook template i would to add a simply close button with its click event to close the control itself
How i can this? There is any code sample?

Many thanks :)
Tina Stancheva
Telerik team
 answered on 16 Oct 2013
4 answers
351 views
Hi,

I have a  chart which has a linear axis and with a range of -150 to 150. As soon as I zoom the label for 0 is displayed in scientific notation (see attached image). Is there a way I can stop this? I would prefer to not have to set a format string on the axis as I would like the labels to show more decimal places as the user zooms in to view the data in more detail.

Thanks,

Steven
Evgenia
Telerik team
 answered on 16 Oct 2013
1 answer
127 views
Hi,

I have a RadScheduleView and a Listbox in a UserControl that I am dragging appointments between which works great.

My issue is that my application uses a RadDocking control with a RadPane docked on the left with the UserControl inside a RadDocumentPane on the right. When I am dragging an appointment and I move outside of the UserControl and onto the RadPane it is showing that it will accept the Drop of the appointment which it shouldn't. I have tried setting AllowDrop = false on the RadPane but this does not change anything.

Any ideas?

Thanks
Anthony

Vladi
Telerik team
 answered on 16 Oct 2013
1 answer
90 views
Hi, 

I need to implement a custom tool that is very similar to the crop tool in the user experience. I mean the user has to activate the tool, draw a square across the image, resize and move if necessary and then trigger a custom functionality instead of cropping. 

Is it possibile to perform it by overriding the crop tool or it needs to create a new ITool from the scratch? How can I implement that two steps process (Selection/adjustment then action) whithin a custom tool? How can I manage to draw the square like in the crop tool?

Thank you very much for your responses

My warmest regards

Luca 
Petya
Telerik team
 answered on 16 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?