Telerik Forums
UI for WPF Forum
1 answer
280 views

I want to know, how to faster load RadGridView.

RadGridView code is below.

                        <telerik:RadGridView x:Name="Part_TagListGridView_AI" DataContext="{Binding}" ItemsSource="{Binding TagAICollections}" AutoGenerateColumns="False" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" ShowColumnFooters="True" ShowGroupPanel="False" ShowGroupFooters="False" ScrollMode="RealTime" AllowDrop="True" IsFilteringAllowed="False" GroupRenderMode="Flat" RowStyle="{StaticResource RadGridRowCommonStyle}" MouseDoubleClick="Part_TagListGridView_MouseDoubleClick" RowIndicatorVisibility="Collapsed" CanUserReorderColumns="False">
                            <telerik:RadGridView.Columns>
                                <telerik:GridViewDataColumn  Header="태그ID-AI" DataMemberBinding="{Binding TAG_ID}" IsReadOnly="True" />
                                <telerik:GridViewDataColumn  Header="장치 ID" DataMemberBinding="{Binding DEVICE_ID}" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn  Header="장치 명칭" DataMemberBinding="{Binding DEVICE_NAME}" IsReadOnly="True"/>
                                <telerik:GridViewDataColumn  Header="그룹 ID" DataMemberBinding="{Binding GROUP_ID}" />
                                <telerik:GridViewDataColumn  Header="포인트 인덱스" DataMemberBinding="{Binding POINT_IDX}" />
                                <telerik:GridViewDataColumn  Header="태그 종류(Code)" DataMemberBinding="{Binding TAG_TYPE_CODE, Converter={StaticResource TagTpCodeConvert}}" CellEditTemplate="{StaticResource TagTpComboBox}" IsReadOnly="True"/>

 

                               ............... column count is 36. .......................

                            </telerik:RadGridView.Columns>
                        </telerik:RadGridView>

 

And data error check in code behind.

 

Maximum row count is 1000.

Please, answer to me.

Thank you.

 

Dilyan Traykov
Telerik team
 answered on 23 Jun 2016
5 answers
191 views

I have a column which shows the state of my object in colors. It also shows a short name as text. The grouping and sorting works on the state, which is an enum.

I would want the text search (as in RadGridView.ShowSearchPanel) to search for the short name.

Is there a setting on the column that lets me do this?

 

(I really do not want to change the DataMemberBinding which binds to the state, because the looks and function of the cell is in styles and templates, which are reused all over my applications).

 

Thanks,

Inger Marie

Stefan Nenchev
Telerik team
 answered on 23 Jun 2016
2 answers
88 views

Dear support,

I need a textlabel above the grid that displays the number of filtered columns.

My columnfilters are all implemented the way that is described in der following article http://docs.telerik.com/devtools/wpf/controls/radgridview/filtering/custom-filtering-controls.

Is there a property which contains the number of active filter that I can bind to my textlabel? Or how can I implement it to achieve this aim.

Thanks in advance

Marcus

Marcus
Top achievements
Rank 1
 answered on 23 Jun 2016
7 answers
179 views

Hallo everyone,

in an actual project I have the following problem. I use:

-RadMaskedNumericInput* 

-MaskToken (For Example: #9.2)

The user can't write more than 11 numeric digits in it. Thats ok, but if he copy & paste a value with more digits in it, it appears in the 

DataRow behind (See attached file). Even if AllowInvalidValues equals to false. 

Its a workaround to prove the length by every input,  but thats not really what the developer expects. In a business application with over hundreds of elements a developer will not check everytime if the length of the value is correct, so this can't be the right way.

*Don't know if it appears by other "MaskedInput"-controls

Petar Mladenov
Telerik team
 answered on 23 Jun 2016
4 answers
159 views

Hi, I have two questions regarding recorder in RadDocumentPane.

1. I am using RadDocumentPane to host several panes. I would like to allow users to reorder these panes by drag and drop any of the tabs. In the same time, I have a RadTreeView, which contains the same panes like RadDocumentPane. I would like to be able to get notified when user finished reordering the tabs in RadDocumentPane so that I can sync it to my RadTreeView. What event should I subscribe to in the RadDocumentPane? So far I have tried Drop, DragDrop.Drop, none of these triggers when I finished reorder and drop onto RadDocumentPane.

2. Also, I would like to change the order in RadTreeView, and sync it to RadDocumentPane. By DragDrop in RadTreeView, I could reorder these view models, and I am doing this:

        public void UpdatePanes(IEnumerable<BasePaneViewModel> pages)
        {
            if(pages == null || Panes == null) return;

            foreach (var page in pages)
            {
                Panes.Remove(page);
                Panes.Add(page);
            }
        }

Would this be a good way to recorder in RadDocumentPane or if there is better way to do it?

 

Thanks.

Mingxue

Yana
Telerik team
 answered on 23 Jun 2016
1 answer
129 views

Hi everybody!

I have this problem: while the user types a new word in a RadRichTextBox with SpellChecker activated, the red wavy line appears for every character that makes the partial word wrong, even if the word is not completely typed.

Example: writing the word "these" in your RadRichTextBox Demo Application

t --> error
h --> error
e --> OK (word = "the")
s --> error
e --> OK (word = "these")

Since out application is primarily used by dyslexic young children (7-13 yo), seeing this fictitious error is a problem because they can't easily figure out if there's a typo in what they wrote before or simply because the word is still incomplete.

 

Now for the million-dollar question: Is there a way to inhibit this behavior and activate spellchecking for a newly typed word ONLY after a non alphanumeric char has been typed? This mechanism should trigger when I press space, but also Enter or a punctuation char like ? or !, full stop or comma and so on.

P.S.: I was in doubt about where posting this thread, RichTextBox or SpellChecker. If I posted it in the wrong place, I ask for an Admin to move it where it should belong.


Thanks in advance, cheers!

 Fabrizio

Boby
Telerik team
 answered on 23 Jun 2016
7 answers
871 views

Well, it used to work, at least on version 2012.3 (I've verified it)

However, if you do the same on 2016.2, then it doesn't work. The cell is left in some kind of edit mode, while the keyboard cursor is not blinking.

 

This is frustrating, since after updating to the new version, I'm wasting more time on fixing stuff that used to work than writing new features, and I'm sure that I'll find more issues in the future.

 

Is there something that can be configured in order to make it work like it used to? I already tried ActionOnLostFocus="CommitEdit"

Why was this feature removed? It seems only logical to exit edit mode when clicking anywhere outside the edited cell.

 

Thanks.

BENN
Top achievements
Rank 1
 answered on 23 Jun 2016
10 answers
942 views
Your example for the Reorder rows is very good with the exception that I can't show the DropPreviewLine.  In the silverlight documentation it shows an example for it with the preview line, but neither the silverlight or WPF demo example have the preview line.  I am hoping that you have a WPF example that will show the preview line as well.

Thanks!

Troy
Dilyan Traykov
Telerik team
 answered on 22 Jun 2016
3 answers
274 views

 

Greetings

Currently I'm not that experienced with styles in WPF and after some research I decided to give it a shot to ask. 

I'm working with with the RadGridView and I'd like to change the Foreground of the header of a sorted column. 

Within the styles of Telerik I found there are some visual states to determine the colour of the border or for the ascending/ descending arrow. Yet there is no description to change the colour of the Foreground. 

Yet doing some research, I found some code to add to change the Foreground as well within the VisualState. 

<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Content" Storyboard.TargetProperty="(TextBlock.Foreground)">
    <DiscreteObjectKeyFrame KeyTime="0" Value="White" />
</ObjectAnimationUsingKeyFrames>

Yet, this isn't working. This entirely breaks the VisualState of 'Ascending'/ 'Descending' and the following exception within Output can be found:

A first chance exception of type 'System.InvalidOperationException' occurred in PresentationFramework.dll

Sorry for asking perhaps a dumb question. I'm still in the learning process of Telerik styles and WPF styles in general. 

Kind regards

Kenneth

Mark
Top achievements
Rank 1
 answered on 22 Jun 2016
3 answers
550 views
I have an editable RadGridView with set column widths.  When the user clicks a cell to edit its contents, the editing TextBox appears to be much more narrow than the width of its column.  How can I change this so that the TextBox stretches to the column width?

I tried using a template for the cell but this prevented the cell/row validation from working:
<DataTemplate x:Name="editCellTemplate">
    <Grid>
        <TextBox MaxLength="100" Margin="5,3"
                 Width="{Binding ActualWidth,
                            RelativeSource={RelativeSource
                               Mode=FindAncestor,
                               AncestorType={x:Type telerik:GridViewCell}}}"
                 Text="{Binding Label, Mode=TwoWay}" />
    </Grid>
</DataTemplate>
 
<telerik:RadGridView Margin="10" MinHeight="300" RowHeight="30"
              HorizontalAlignment="Left" VerticalAlignment="Top"
              AutoGenerateColumns="False" IsFilteringAllowed="False"
              CanUserInsertRows="True" CanUserDeleteRows="False"
              CanUserFreezeColumns="False" CanUserReorderColumns="False"
              ShowGroupPanel="False" ShowInsertRow="True"
              ItemsSource="{Binding SourceView, Mode=OneWay}">
    <telerik:RadGridView.Columns>
        <telerik:GridViewDataColumn x:Name="Label" Header="Label" Width="300"
                           DataMemberBinding="{Binding Label, Mode=TwoWay}"
                           CellEditTemplate="editCellTemplate" />
        <telerik:GridViewCheckBoxColumn x:Name="Inactive" Header="Inactive"
                             DataMemberBinding="{Binding IsDeleted, Mode=TwoWay}"
                             Width="Auto" />
    </telerik:RadGridView.Columns>
</telerik:RadGridView>

Then I tried setting the CellStyle property, but this had no effect:
<telerik:GridViewDataColumn.CellStyle>
    <Style>
        <Setter Property="TextBox.MaxLength" Value="100" />
        <Setter Property="TextBox.Margin" Value="5" />
        <Setter Property="TextBox.Width"
              Value="{Binding ActualWidth, RelativeSource={RelativeSource
                 Mode=FindAncestor, AncestorType={x:Type telerik:GridViewCell}}}" />
    </Style>
</telerik:GridViewDataColumn.CellStyle>
Stefan
Telerik team
 answered on 22 Jun 2016
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
Slider
Expander
TileList
PersistenceFramework
DataPager
Styling
TimeBar
OutlookBar
TransitionControl
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
DesktopAlert
WatermarkTextBox
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
ProgressBar
Sparkline
LayoutControl
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
WebCam
CardView
DataBar
Licensing
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
HighlightTextBlock
Security
TouchManager
StepProgressBar
VirtualKeyboard
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?