Telerik Forums
UI for WPF Forum
1 answer
116 views
Hello Telerik Team,

Is it possible to keep the floating panes open (i.e. as is) on the screen when the main window that hosts these panes is minimized?
Currently it minimizes all floating panes. Please let me know.

Regards,
Kumar
Miroslav Nedyalkov
Telerik team
 answered on 12 Sep 2011
6 answers
153 views
Hello,

I am experiencing some annoying effects with the Radchart (however, I don't know if these effects are normal or not).

My user control contains a total of 5 Radcharts, each of them having between 1 and 3 linear series (the total number is 10 series). I am  using a SampleThreshold = 400. For those charts with more than one series I am using a "nested collections" binding schema (as explained in the online documentation).

Each serie has exactly 2880 points that correspond to one point every 30 seconds for an entire day. I make an async call to an WCF service that returns the data for the series. 

The problem is that the charts render in a pretty annoying way. First only some X axis labels are shown, then the series appear but only a piece of them and with an offset respect to their X axis correct position... and so on until the chart is correctly displayed. I am not showing any label or pointmark aside from the X axis and Y axis labels, and animations are disabled. 

I'd like to know if there is any way to prevent the chart to be "pre-painted" in the screen, so that it would only be shown as it is correctly composed. Is there something like a "loading data screen" or similar? 

I am using April 2011 release. 

Thank you in advance, 

Pablo.
Peshito
Telerik team
 answered on 12 Sep 2011
3 answers
140 views
Hello,

Due to the particular needs of our project, we want the user to be able to zoom over the chart's X Axis but without showing any scrollbar. We would do it using the MouseLeftButtonDown and Up belonging to the plot area, calculating the data points and setting a new RangeEnd and RangeStart for the ZoomSettings object. 

However, right now it is only possible to set ZoomSettings to None, Scroll or ScrollAndZoom. Is there any workaround so that zoom can be made (as described above) but hidding the ScrollBar? If so, could you please provide any code sample?

Thank you very much, 

Pablo.

Pablo
Top achievements
Rank 1
 answered on 12 Sep 2011
1 answer
124 views
Hi,

I have a problem since I upgrated from version 2010.3.1314.35 to 2011.2.712.40.
In my scenario I have a "special" TimeRulerItemTemplateSelector which displays a progressbar (status for each day).
With version 2010.3.1314.35 the value-binding (Value="{Binding DateTime, Converter={StaticResource GetDateValue}}") works fine, version 2011.2.712.40 fired the following error:

TwoWay- oder OneWayToSource-Bindungen funktionieren nicht mit der schreibgeschützten Eigenschaft "DateTime" vom Typ "Telerik.Windows.Controls.ScheduleView.TimerRulerItemProxy".

my sources:

            <telerik:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>
                <DataTemplate>
                    <Grid Height="60">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="20"/>
                            <RowDefinition Height="20"/>
                            <RowDefinition Height="20"/>
                        </Grid.RowDefinitions>
                        <TextBlock Grid.Row="0" Text="{Binding DateTime, Converter={StaticResource GetWeekDay}}"/>
                        <TextBlock Grid.Row="1" Text="{Binding DateTime, Converter={StaticResource GetDateShort}}"/>
                        <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="2,0,0,0">
                            <ProgressBar Width="40" Minimum="0" Maximum="100" Value="{Binding DateTime, Converter={StaticResource GetDateValue}}"/>
                            <TextBlock Text="{Binding DateTime, Converter={StaticResource GetDateValue}}"/>
                            <TextBlock Text="%"/>
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </telerik:TimeRulerItemTemplateSelector.HorizontalTimelineGroupTemplate>

and the GetDateValue Function:

Public Class GetDateValue
    Implements IValueConverter

    Public Function Convert(ByVal value As Object, ByVal targetType As System.Type, ByVal parameter As Object, ByVal culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.Convert
        If TypeOf value Is DateTime Then
            Dim dt As DateTime = DirectCast(value, DateTime)
            value = 50   'only for demo...
        End If
        Return value

    End Function

    Public Function ConvertBack(ByVal value As Object, ByVal targetType As System.Type, ByVal parameter As Object, ByVal culture As System.Globalization.CultureInfo) As Object Implements System.Windows.Data.IValueConverter.ConvertBack
        Throw New NotImplementedException()
    End Function

End Class

with best regards,
Stefan
Dani
Telerik team
 answered on 12 Sep 2011
1 answer
159 views
Hi Telerik,

I'm using  a RadCombobox in my application and i like to know how i can select item in code behind?
My RadCombobox is bounded thats so:
foreach (ClienteBE _cliente in this.lstCliente)
            {
                tam = _cliente.Nome.Length > tam ?
                    _cliente.Nome.Length :
                    tam;
 
                this.cmbCliente.DisplayMemberPath = "Nome";
                this.cmbCliente.Items.Add(_cliente);
            }

this.lstCliente is a list of objects.

Thanks.
Yana
Telerik team
 answered on 12 Sep 2011
0 answers
290 views

Hi,

I am working with RadGridView, in MVVM WPF application and I need to validate cell compared to other values in binding collection.

I have a object :


public class MyObject
{
    public DateTime DateBegin { get; set;}
    public int Value { get; set;}
}

And if I add a new row in my GridView with existing Date I want to show error message in cell.

I thought to use an ValidationRules in my cell, but i am not sure if i can compared to with others values in binding list. I found some solution, but isn't MVVM compliant :

public void RadGridView1_CellValidating(object sender, GridViewCellValidatingEventArgs e)       {
            bool isValid = true;
            string validationText = "Validation failed. ";
            if(cell.column.uniquename == "mydatecolumn")
           {
            GridViewCell cell = e.Cell;
                    isValid = ValidateDate((datetime) e.NewValue);
                    if (!isValid)
                    {
                        validationText += "You already used that date, mate.";
                    }
           }
}
  
private static bool ValidateDate(datetime newDate)
        {
            // Some linq to see if it's in your collection or not
        }

Thanks

rad
Top achievements
Rank 1
 asked on 12 Sep 2011
2 answers
156 views
Hi,

I need to control the "edit mode" state of the insert row. Let say i have 2 Classes A and B with a "1xN link type" between A and B.
I have in the same screen 2 grids. 1 for type A et 1 for type B. When I add a A in grid 1 I want to be abble of adding Bs in grid2 whitout loosing the "edit mode" of grid 1 insert row.

How coul I do that with the code behind ?


Infologic
Top achievements
Rank 1
 answered on 12 Sep 2011
5 answers
139 views
Hi,

I am binding the IsChecked property to a property in my ViewModel with the help of ItemContainerStyle.
When I click on the checkbox of a child "Item 2", I get the following result:

- Group A
   Item 1
x Item 2

So Group A is marked as indeterminate correctly.

When I set Item2.IsChecked  = true in my ViewModel, Item2 is marked as checked, but GroupA is marked as unchecked.

Am I doing something wrong? If not, is there a workaround for this?

Best Regards, Matthias
Petar Mladenov
Telerik team
 answered on 12 Sep 2011
0 answers
66 views
Hello,
Their if any event in raddatafilter which get fired on each time user filter the records.

I trying to implement a filter in which work like this:
If user select containg string "abc" then i want to show all record those contains "abc" as well as "cde". But i don't want to show user both option "abc" and "cde" because in my case meaning of "abc" and "cde" is same.

There is any other way to do this?

Thanks in advance.
Zaheer
Top achievements
Rank 1
 asked on 12 Sep 2011
1 answer
294 views

Hi All,

I have a datagrid with one of datacolumn contains a combobox.

DataGrid contains a RowDetails template attached to it.

When i add a row into datagrid on click of button or delete a row from datagrid, selection change event of combobox gets called.

RowDetails template also contains a combobox with a selection change event.

When i am trying to click somewhere inside the rowdetailstemplate or trying to use a template scroll bar, combobox selection change event is getting fired.

Please provide the solution how we can avoid selection change event of combobox in above cases.

Please find below piece of code:

 

 

<telerik:RadGridView ItemsSource="{Binding Path=Customers}"

 

 

IsReadOnly="{Binding IsChecked, Mode=TwoWay, ElementName=IsReadOnlyCheckBox}" RowDetailsVisibilityMode="{Binding RowDetailsTemplateVisibilityMode, Mode=TwoWay}"

 

 

SelectionMode="Multiple" AutoGenerateColumns="False" VerticalAlignment="Stretch"

 

 

ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Visible" MinHeight="100" MaxHeight="350">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewToggleRowDetailsColumn Width="30"/>

 

 

 

<telerik:GridViewSelectColumn Width="30"/>

 

 

 

<telerik:GridViewDataColumn DataMemberBinding="{Binding SlNo}" Header="S.no" IsReadOnly="True" IsEnabled="False" Width="20" />

 

 

 

<telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Product}" Header="Product" IsReadOnly="True" IsEnabled="False" Width="250"/>

 

 

 

<telerik:GridViewDataColumn Header="Customer" Width="Auto">

 

 

 

<telerik:GridViewDataColumn.CellTemplate>

 

 

 

<DataTemplate>

 

 

 

<ComboBox ItemsSource="{Binding Path=Customer}" HorizontalAlignment="Left" DisplayMemberPath="RunDesc" SelectedItem="{Binding RunsSelected}" IsEnabled="{Binding IsEnabledRun}" Style="{StaticResource SmallComboBox}">

 

 

 

<i:Interaction.Triggers>

 

 

 

<i:EventTrigger EventName="SelectionChanged">

 

 

 

<cmd:EventToCommand Command="{Binding Path=LoadCustomersCommand}" PassEventArgsToCommand="False" CommandParameter="{Binding Path=DataContext,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ComboBox}}"/>

 

 

 

</i:EventTrigger>

 

 

 

</i:Interaction.Triggers>

 

 

 

</ComboBox>

 

 

 

</DataTemplate>

 

 

 

</telerik:GridViewDataColumn.CellTemplate>

 

 

 

</telerik:GridViewDataColumn>

 

 

 

</telerik:RadGridView.Columns>

 

 

 

<telerik:RadGridView.RowDetailsTemplate >

 

 

 

<DataTemplate>

 

 

 

<Grid Background="{StaticResource MainBackgroundColor}" >

 

 

 

<ComboBox ItemsSource="{Binding Path=Customer}" HorizontalAlignment="Left" DisplayMemberPath="RunDesc" SelectedItem="{Binding RunsSelected}" IsEnabled="{Binding IsEnabledRun}" Style="{StaticResource SmallComboBox}">

 

 

 

<i:Interaction.Triggers>

 

 

 

<i:EventTrigger EventName="SelectionChanged">

 

 

 

<cmd:EventToCommand Command="{Binding Path=LoadCustomersCommand}" PassEventArgsToCommand="False" CommandParameter="{Binding Path=DataContext,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ComboBox}}"/>

 

 

 

</i:EventTrigger>

 

 

 

</i:Interaction.Triggers>

 

 

 

</ComboBox>

 

 

 

</Grid>

 

 

 

</DataTemplate>

 

 

 

</telerik:RadGridView.RowDetailsTemplate>

 

 

 

</telerik:RadGridView>

Maya
Telerik team
 answered on 12 Sep 2011
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
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?