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.
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
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
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
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
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
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.
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
<
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
>
<
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
>