Telerik Forums
UI for WPF Forum
3 answers
239 views
When i set the RadRichTextBox's background property in layoutmode property is normal,the background is effective.
But when the LayoutMode is paged the background property is invalid,and look like something shut out.

I want to set the background property in layoutmode is paged can be effectove,please help me(⊙_⊙)?
Martin Ivanov
Telerik team
 answered on 18 Jan 2012
1 answer
102 views
Greeting.

Can you give any information about Radchart performance at huge datasets.
I want to display ScatterPlot with 150.000 point inside.
I cannot use SamplingThreshold, because i must show all points.
(if i have 500x500point area, in bad scenario i must show 500*500=250.000 points)


I try to create some tests.
With SamplingThreshold=200, when i add to datasource my dataset, it want 4 seconds or so.
And after this control painted without any pause.
With SamplingThreshold=5000 i wait  10-15second before control painted.
With SamplingThreshold=25000 i wait 100-150second before control painted.
With SamplingThreshold=100000 i wait 10 minutes... no way... application struck.
I try disable animation, disable autorange etc etc etc, nothing help.

Can Radchart potentially show 150.000 point, or it just impossible ?
If it possible, may be any example with big set available ?

Best Regards
Serg
Ves
Telerik team
 answered on 18 Jan 2012
2 answers
165 views
Hi Telerik,

I need to 'do stuff' when user switches from one radpane to another.

I've looked at RadPane.GotFocus() and RadPane.GotKeyboardFocus() but they only fire once I activate contents of the RadPane -- i.e. when I click the pane header, I do not get the desired notification.

Do you have a recommendation on what to 'watch'?

Thanks,

Anders, Denmark
Anders
Top achievements
Rank 1
 answered on 18 Jan 2012
3 answers
108 views
private void MyForm_EditEnded(object sender, Telerik.Windows.Controls.Data.DataForm.EditEndedEventArgs e)
        {
            if (e.EditAction == Telerik.Windows.Controls.Data.DataForm.EditAction.Commit)
            {
               //if saving new record
 
             //else if updating existing record
                 
            }
        }

Thanks

Madani

Ivan Ivanov
Telerik team
 answered on 18 Jan 2012
3 answers
175 views
How can I achieve this? I don't want to define a cell template so I rather stick with GridViewCheckBoxColumn but I don't see the Command property.
Maya
Telerik team
 answered on 18 Jan 2012
4 answers
896 views
hi,

can you please let me know that is there any other ResultFormatString except "{}{0:c}"

Regards,
S s
Maya
Telerik team
 answered on 18 Jan 2012
4 answers
160 views
Hi.. I have grid at the bottom of a form. When a user clicks on the header to filter the fitler menu extends below the form and off the screen. And the user can't select the options.
How I can make the menu open 'up' - instead of down. Or make the menu appear totally on the form?
thanks in advance
Twistur
Top achievements
Rank 1
 answered on 18 Jan 2012
0 answers
139 views

Every time I use RadWindow e.g:

RadWindow.Alert(new DialogParameters()
            {
                Content = "Hello"
            });

i get following binding error:

System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='<null>' BindingExpression:Path=(0); DataItem='RadWindow' (Name=''); target element is 'WindowHostWindow' (Name=''); target property is 'Title' (type 'String')

I even tested it on visual studio base wpf app template - still the same error.

Is there any way to fix it ?

Jakub
Top achievements
Rank 1
 asked on 17 Jan 2012
4 answers
271 views
Hi,

I'm using VS2008 and Telerik 2011.3.1220.35 and with one of my RadGridView I have a problem :(

The second column of my grid view is a GridViewToggleRowDetailsColumn and when I click on the plus sign, my application fall in an infinite loop and I receive the following message:

Here is my XAML RadGridView definition:

<telerik:RadGridView Height="Auto" Width="Auto" x:Name="RadGridViewBilling" RowLoaded="RadGridView_RowLoaded" Margin="5 0 5 5" Visibility="Visible"  RowDetailsVisibilityMode="Collapsed"
        RowIndicatorVisibility="Collapsed" IsReadOnly="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" Grid.Row="2"
        CanUserResizeColumns="False" SelectionMode="Extended" ShowColumnFooters="True" SelectionChanged="RadGridViewBilling_SelectionChanged">

            <telerik:RadGridView.RowStyle>
                <Style TargetType="telerik:GridViewRow">
                    <Setter Property="MinHeight" Value="40"/>
                </Style>
            </telerik:RadGridView.RowStyle>
            <telerik:RadGridView.Columns>
                <telerik:GridViewSelectColumn />
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewDataColumn Header="No" DataMemberBinding="{Binding Number}" IsGroupable="False" IsFilterable="False"/>
                <telerik:GridViewDataColumn Header="Role T" DataMemberBinding="{Binding RoleTech}" IsGroupable="False" IsFilterable="False" TextAlignment="Right" DataFormatString = "{}{0:c2}" />
                <telerik:GridViewDataColumn Header="Role P" DataMemberBinding="{Binding RoleProf}" IsGroupable="False" IsFilterable="False" TextAlignment="Right" DataFormatString = "{}{0:c2}" />
                <telerik:GridViewDataColumn Header="Montant soumis ($)" DataMemberBinding="{Binding AmountSubmitted}" >                   
                    <telerik:GridViewDataColumn.AggregateFunctions>
                        <telerik:SumFunction Caption="Somme: " ResultFormatString="{}{0:c2}" SourceField="AmountSubmitted"/>
                    </telerik:GridViewDataColumn.AggregateFunctions>                   
                </telerik:GridViewDataColumn>
                <telerik:GridViewDataColumn Header="Patient" DataMemberBinding="{Binding PatientName}"/>
                <telerik:GridViewDataColumn Header="Erreur courante" DataMemberBinding="{Binding ErrorDescription}" Background="#A0FF0000"/>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <telerik:RadTabControl  x:Name="RadTabControl1"  BackgroundVisibility="Collapsed" Margin="10" VerticalAlignment="Center" Background="Transparent">
                        <telerik:RadTabItem Header="Transactions" DataContext="{Binding}" Height="24" Foreground="Black">
                            <telerik:RadGridView Height="Auto" Width="Auto" x:Name="RadGridViewTransactions" ItemsSource="{Binding Transactions}" AutoGenerateColumns="False"
                       CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
                       ShowGroupPanel="False"
                       Margin="0">

                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn Header="No" DataMemberBinding="{Binding Sequence}" IsGroupable="False" IsFilterable="False" />
                                    <telerik:GridViewDataColumn Header="Date" DataMemberBinding="{Binding CreationTime, Converter={StaticResource DConverter}}" />
                                    <telerik:GridViewDataColumn Header="Heure" DataMemberBinding="{Binding CreationTime, Converter={StaticResource TConverter}}" IsFilterable="False" IsGroupable="False"/>
                                    <telerik:GridViewDataColumn Header="Type" DataMemberBinding="{Binding TransactionType}"  />
                                    <telerik:GridViewDataColumn Header="Montant" DataMemberBinding="{Binding Amount}" TextAlignment="Right" DataFormatString = "{}{0:c2}" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn Header="Balance" DataMemberBinding="{Binding Balance}" TextAlignment="Right" DataFormatString = "{}{0:c2}" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn Header="Commentaire" DataMemberBinding="{Binding Comment}" Width="250" />
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerik:RadTabItem>

                        <telerik:RadTabItem Header="Visite" DataContext="{Binding}" Margin="5 0 0 0" Height="24" Foreground="Black">
                            <Grid Width="Auto" HorizontalAlignment="Stretch">
                                <Grid.RowDefinitions>
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition />
                                    <RowDefinition />
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="*" />
                                    <ColumnDefinition Width="Auto" />
                                    <ColumnDefinition Width="Auto" />
                                </Grid.ColumnDefinitions>

                                <TextBlock Text="Patient PHN:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="0" Grid.Column="0" />
                                <telerik:RadMaskedTextBox x:Name="VisitPatientPHN" Value="{Binding PHN}" EmptyContent="Entrer patient PHN" MaskType="None" ValueChanged="RadMaskedTextBox_ValueChanged"  Margin="5" Grid.Row="0" Grid.Column="1"/>
                                <TextBlock Text="Nom:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="1" Grid.Column="0" />
                                <telerik:RadMaskedTextBox x:Name="VisitPatientName" Value="{Binding PatientName}" EmptyContent="Entrez nom patient" MaskType="None" ValueChanged="RadMaskedTextBox_ValueChanged"  Margin="5" Grid.Row="1" Grid.Column="1"/>
                                <TextBlock Text="Province:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="2" Grid.Column="0" />
                                <TextBox Text="{Binding PatientProvince}" Margin="5" Grid.Row="2" Grid.Column="1" />
                                <TextBlock Text="Date visite:" TextAlignment="Right" Margin="5" FontWeight="Bold"  Grid.Row="0" Grid.Column="3" />
                                <telerik:RadDatePicker x:Name="FromTimePicker" Margin="5" IsTooltipEnabled="False" SelectionChanged="FromTimePicker_SelectionChanged" DateTimeWatermarkContent="VisitDate" SelectedValue="{Binding VisitDate, Mode=TwoWay}" Grid.Row="0" Grid.Column="4" />
                                <TextBlock Text="Code diag:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="1" Grid.Column="3" />
                                <TextBox Text="{Binding DiagCode}" Margin="5" Grid.Row="1" Grid.Column="4" />
                                <TextBlock Text="Code exam:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="2" Grid.Column="3" />
                                <TextBox Text="{Binding ExamCode}" Margin="5" Grid.Row="2" Grid.Column="4" />
                                <TextBlock Text="Mnt soumis:" TextAlignment="Right" Margin="5" FontWeight="Bold" Grid.Row="3" Grid.Column="3" />
                                <telerik:RadMaskedTextBox x:Name="VisitAmountSubmitted" MaskType="Numeric" Mask="c" Value="{Binding AmountSubmitted}" EmptyContent="Entrer montant" Background="White" ValueChanged="RadMaskedTextBox_ValueChanged" Margin="5" Grid.Row="3" Grid.Column="4"/>
                                <TextBlock Text="Commentaire:" TextAlignment="Left" Margin="5" FontWeight="Bold" Grid.Row="4" Grid.Column="0" />
                                <TextBox Text="{Binding Comment}" Margin="5" Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="4" />
                            </Grid>
                        </telerik:RadTabItem>

                        <telerik:RadTabItem Header="Rapport d'erreurs" DataContext="{Binding}" Height="24"
                                HorizontalContentAlignment="Stretch" HorizontalAlignment="Left">

                            <telerik:RadGridView Height="Auto" Width="Auto" x:Name="RadGridViewErrorReportElements" ItemsSource="{Binding ErrorReportElements}" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
               CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
               ShowGroupPanel="False"
               Margin="0">

                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn Header="Nom fichier" DataMemberBinding="{Binding ReceivedFileName}" />
                                    <telerik:GridViewDataColumn Header="Date" DataMemberBinding="{Binding CreationTime, Converter={StaticResource DConverter}}" />
                                    <telerik:GridViewDataColumn Header="Heure" DataMemberBinding="{Binding CreationTime, Converter={StaticResource TConverter}}" IsFilterable="False" IsGroupable="False"/>
                                    <telerik:GridViewDataColumn Header="Message d'erreur" DataMemberBinding="{Binding ErrorMessage}" Width="250" />
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>

                        </telerik:RadTabItem>

                        <telerik:RadTabItem Header="E.C." DataContext="{Binding}" Margin="5 0 0 0" Height="24" HorizontalContentAlignment="Stretch" HorizontalAlignment="Left">

                            <telerik:RadGridView Height="Auto" Width="Auto" x:Name="RadGridViewRemittanceAdvicetElements" ItemsSource="{Binding RemittanceAdvicetElements}" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
               CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
               ShowGroupPanel="False"
               Margin="0">

                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn Header="Nom fichier" DataMemberBinding="{Binding ReceivedFileName}" />
                                    <telerik:GridViewDataColumn Header="Date" DataMemberBinding="{Binding CreationTime, Converter={StaticResource DConverter}}" />
                                    <telerik:GridViewDataColumn Header="Heure" DataMemberBinding="{Binding CreationTime, Converter={StaticResource TConverter}}" IsFilterable="False" IsGroupable="False"/>
                                    <telerik:GridViewDataColumn Header="Montant soumis" DataMemberBinding="{Binding AmountSubmitted}" TextAlignment="Right" DataFormatString = "{}{0:c2}" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn Header="Montant payé" DataMemberBinding="{Binding AmountPaid}" TextAlignment="Right" DataFormatString = "{}{0:c2}" IsReadOnly="True" />
                                    <telerik:GridViewDataColumn Header="Message d'erreur" DataMemberBinding="{Binding ErrorMessage}" Width="250" />
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerik:RadTabItem>

                        <telerik:RadTabItem Header="Factures reliées " DataContext="{Binding}" Margin="5 0 0 0" Height="24" HorizontalContentAlignment="Stretch" HorizontalAlignment="Left">
                            <telerik:RadGridView Height="Auto" Width="Auto" x:Name="RadGridViewR" ItemsSource="{Binding RelatedBills}" RowIndicatorVisibility="Collapsed" AutoGenerateColumns="False"
               CanUserFreezeColumns="False" BorderThickness="0" CanUserResizeColumns="False"
               ShowGroupPanel="False"
               Margin="0">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn Header="No" DataMemberBinding="{Binding Number}" IsGroupable="False" IsFilterable="False" />
                                    <telerik:GridViewDataColumn Header="Montant soumis ($)" TextAlignment="Right" DataMemberBinding="{Binding AmountSubmitted}" />
                                    <telerik:GridViewDataColumn Header="Patient" DataMemberBinding="{Binding PatientName}"/>
                                    <telerik:GridViewDataColumn Header="Erreur courante" DataMemberBinding="{Binding ErrorDescription}" Width="250"/>
                                </telerik:RadGridView.Columns>
                            </telerik:RadGridView>
                        </telerik:RadTabItem>

                    </telerik:RadTabControl>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>

        </telerik:RadGridView>


Here is my error message:
2012-01-06 17:14:37,737;[5876];ERROR;MNGUI016;System.InvalidOperationException: Les vues inter-dépendantes ont provoqué une boucle infinie.
   à System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   à System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   à System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   à System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   à System.Windows.Threading.DispatcherOperation.InvokeImpl()
   à System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   à System.Threading.ExecutionContext.runTryCode(Object userData)
   à System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   à System.Windows.Threading.DispatcherOperation.Invoke()
   à System.Windows.Threading.Dispatcher.ProcessQueue()
   à System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   à MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   à System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   à System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   à System.Windows.Threading.Dispatcher.WrappedInvoke(Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)
   à System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Boolean isSingleParameter)
   à System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
   à MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   à MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   à System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   à System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   à System.Windows.Window.ShowHelper(Object booleanBox)
   à System.Windows.Window.Show()
   à System.Windows.Window.ShowDialog()
   à Telerik.Windows.Controls.InternalWindow.WindowWithNoChromeWindowHost.Open(Boolean isModal)
   à Telerik.Windows.Controls.WindowBase.ShowWindow(Boolean isModal)
   à Telerik.Windows.Controls.RadWindow.ShowDialog()
   à com.christiegrp.Neuron.ClientApplication.BillingModule.StartFunction()
   à com.christiegrp.Neuron.ClientApplication.MainGui.listView_ItemActivate(Object sender, EventArgs e) dans D:\Developpement\GestX.Courant\RisGC\Client\Neuron\MainGui.cs:ligne 1031

Thank's
Oliver
Top achievements
Rank 1
 answered on 17 Jan 2012
0 answers
98 views
hi all
how can use date only in gridview?
i have an field in my db with nvarchar(30) that have date input.
i want show its data in my grid view but when i use radmaskeddatetimeinput then its time also showing and its show format is MM/dd/yyyy.
how can delete time and convert format to dd/MM/yyyy?
when i want edit date cell its format is dd/MM/yyyy but when i want only see its format is MM/dd/yyyy.
can help me?
thankful.
rastin
Top achievements
Rank 1
 asked on 17 Jan 2012
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?