Telerik Forums
UI for WPF Forum
2 answers
154 views
Hi,

I have a RadDataForm using Windows8Theme (although the theme doesn't seem to matter) with the following definition:

<telerik:RadDataForm x:Name="radUserForm" Grid.Row="0" AutoGenerateFields="False" ItemsSource="{Binding Path=UsersList}">
            <telerik:RadDataForm.ReadOnlyTemplate>
                <DataTemplate>
                    <StackPanel>
                        <telerik:DataFormDataField DataMemberBinding="{Binding AD_Username, Mode=OneWay}" Label="AD Username" IsEnabled="False" >
                            <telerik:DataFormDataField.Content>
                                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource ResourceKey=SysUsersList}}"
                                                     DisplayMemberPath="USER_NAME" SelectedValuePath="USER_ID" SelectedValue="{Binding AD_Username}"
                                                     IsEnabled="False"/>
                            </telerik:DataFormDataField.Content>
                        </telerik:DataFormDataField>
 
                        <telerik:DataFormDataField DataMemberBinding="{Binding Username, Mode=OneWay}" Label="Username" IsEnabled="False" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding Email, Mode=OneWay}" Label="E-Mail" IsEnabled="False" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding ProfileId, Mode=OneWay}" Label="Profile" IsEnabled="False">
                            <telerik:DataFormDataField.Content>
                                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource ResourceKey=ProfilesList}}" 
                                                     DisplayMemberPath="ProfileName" SelectedValuePath="Id"
                                                     SelectedValue="{Binding ProfileId}" IsEnabled="False" />
                            </telerik:DataFormDataField.Content>
                        </telerik:DataFormDataField>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadDataForm.ReadOnlyTemplate>
            <telerik:RadDataForm.EditTemplate>
                <DataTemplate>
                    <StackPanel>
                        <telerik:DataFormDataField DataMemberBinding="{Binding AD_Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="AD Username" IsEnabled="True" >
                            <telerik:DataFormDataField.Content>
                                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource ResourceKey=SysUsersList}}"
                                                     DisplayMemberPath="USER_NAME" SelectedValuePath="USER_ID" SelectedValue="{Binding AD_Username}"
                                                     IsEnabled="True"/>
                            </telerik:DataFormDataField.Content>
                        </telerik:DataFormDataField>
 
                        <telerik:DataFormDataField  Label="Username" IsEnabled="True"
                                                    DataMemberBinding="{Binding Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                        <telerik:DataFormDataField  Label="E-Mail" IsEnabled="True"
                                                    DataMemberBinding="{Binding Email, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,  ValidatesOnNotifyDataErrors=True}" />
                        <telerik:DataFormDataField DataMemberBinding="{Binding ProfileId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
                            ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" Label="Profile" IsEnabled="True" >
                            <telerik:DataFormDataField.Content>
                                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource ResourceKey=ProfilesList}}"
                                                     DisplayMemberPath="ProfileName" SelectedValuePath="Id"
                                                     SelectedValue="{Binding ProfileId}" IsEnabled="True" />
                            </telerik:DataFormDataField.Content>
                        </telerik:DataFormDataField>
                        <telerik:DataFormDataField  Label="Password">
                            <PasswordBox MaxLength="50" controls:PasswordBoxAssistant.BindPassword="True"
                                         controls:PasswordBoxAssistant.BoundPassword="{Binding Path=PasswordString, Mode=TwoWay,
                                        UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                        </telerik:DataFormDataField>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadDataForm.EditTemplate>
            <telerik:RadDataForm.NewItemTemplate>
                <DataTemplate>
                    <StackPanel>
                        <telerik:DataFormDataField DataMemberBinding="{Binding AD_Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Label="AD Username" IsEnabled="True" >
                            <telerik:DataFormDataField.Content>
                                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource ResourceKey=SysUsersList}}"
                                                     DisplayMemberPath="USER_NAME" SelectedValuePath="USER_ID" SelectedValue="{Binding AD_Username}"
                                                     IsEnabled="True"/>
                            </telerik:DataFormDataField.Content>
                        </telerik:DataFormDataField>
 
                        <telerik:DataFormDataField  Label="Username" IsEnabled="True"
                                                    DataMemberBinding="{Binding Username, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, ValidatesOnNotifyDataErrors=True}" />
                        <telerik:DataFormDataField  Label="E-Mail" IsEnabled="True"
                                                    DataMemberBinding="{Binding Email, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,  ValidatesOnNotifyDataErrors=True}" />
                        <telerik:DataFormDataField  Label="Password">
                            <PasswordBox MaxLength="50" controls:PasswordBoxAssistant.BindPassword="True"
                                         controls:PasswordBoxAssistant.BoundPassword="{Binding Path=PasswordString, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
                                 ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}" />
                        </telerik:DataFormDataField>
 
                        <telerik:DataFormDataField DataMemberBinding="{Binding ProfileId, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged,
                            ValidatesOnNotifyDataErrors=True, NotifyOnValidationError=True}"
                                                   Label="Profile" IsEnabled="True" >
                            <telerik:DataFormDataField.Content>
                                <telerik:RadComboBox ItemsSource="{Binding Source={StaticResource ResourceKey=ProfilesList}}"
                                                     DisplayMemberPath="ProfileName" SelectedValuePath="Id"
                                                     SelectedValue="{Binding ProfileId}" IsEnabled="True" />
                            </telerik:DataFormDataField.Content>
                        </telerik:DataFormDataField>
                    </StackPanel>
                </DataTemplate>
            </telerik:RadDataForm.NewItemTemplate>
        </telerik:RadDataForm>


The result is the attached image. Notice how username and e-mail fields are of a different size than the other field.

Could you kindly shed some light to this?

Regards,
Daryl

Alan
Top achievements
Rank 1
 answered on 16 Jan 2015
2 answers
183 views
Hi,
I am having an interesting issue with nested GridViews using row details.
I need to be able to double click on rows in both the child and parent GridView and handle them differently.
But there seems to be an odd behavior where when I double click on the child row the MouseDoubleClickEvent gets raised on the child row first, then a different MouseDoubleClickEvent gets raised on the parent row. Event if I set the first event to being handled a separate event is raised on the parent row.
The event handlers are being added on the RowLoaded event for both the child and parent GridViews.



Kind Regards,

Ryan
Ryan
Top achievements
Rank 1
 answered on 16 Jan 2015
3 answers
163 views
Hi

I've noticed that in 2014.3.1021 there have been some performance enhancements to UpdateAllFields.  I'm not entirely sure what they are, but if I was to guess I'd say the document is no longer being layed out, mesaured and arranged after each field update.

This has, sadly, broken one of my custom fields.

I have a sort-of-cross reference field - it returns the page number of a custom AnnotationRangeStart.  It does this in basically the same way as PageField.

Following the update to this version, the page number is always returned as '1' during UpdateAllFields.  This seems to be because the layout only reports a single SectionLayoutBox in the DocumentLayoutBox.

I see from the PageField source two internal virtual methods that you use to workaround this issue: SaveState and RestoreState.  As these are internal and not protected internal, I can't do the same.

My current workaround is to run Document.UpdateLayout() while this field is updating, which isn't ideal.  Do you have any better ideas, or would you consider changing the accessibility of these internal state management methods?







Petya
Telerik team
 answered on 15 Jan 2015
1 answer
121 views
Hi,
i can not remove first record in radgridview with RadGridView.Items.RemoveAt(0);
help me please , tanks
Nick
Telerik team
 answered on 15 Jan 2015
1 answer
158 views
Quick question.

How do I replace the standard GridViewGroupRow with a custom derived class?
Dimitrina
Telerik team
 answered on 15 Jan 2015
1 answer
140 views
Hello,

In my project, I need to show a gantview which the user can modify tasks (duration, start, end), with field or with the behavior of the component (drag and drop). The problem is when the user put a start equal to the end for a task, these task is transform to milestone, with a different style and different behavior(including the deactivation of expansion of the task by left or right), which can disrupt the user. How can I keep the style/behavior of the task even start and end of the task is equal ? (it's not important if the tasks have a minimum size)

Thanks for Your Help

Julien
Nasko
Telerik team
 answered on 15 Jan 2015
3 answers
284 views
Hi,
We have an usercontrol that it used to generate several different grids in a same window.
We noticed that when we have 2 or more grids  in a window, the load time begins grow and the performance drops.

Our control uses a DataTable to generate the data because each grid could have different number of columns, here is the way we make the assignment:

dataGrid.ItemsSource = data.DefaultView;

Our problem its related with this line, because this operation its taking between 150 and 200 milliseconds, that seems good for a single grid, but when we have several of this it could take more than a second or two to load a window, which is not acceptable for our customer.

It's there a way to improve this?

Just in case, we are taking in care your tips and tricks help topic
We are using the 2011 Q3 telerik version.

Thanks!
Dimitrina
Telerik team
 answered on 15 Jan 2015
1 answer
236 views
Ok, I'm troubleshooting an issue in our app.  We've got several RadGridViews, but in this one particular view, when you click on any column header to sort the grid, all of the grid data disappers.  the data remains invisible if the column state is ascending or descending, but reappears if you toggle the column back to no sort.

Obviously we are doing something wrong in this specific RadGrid.  I've tried to copy what is going on in our other grid views but I haven't figured out the difference yet.  I figure I can't be the first person to have seen this behavior, so if someone else has seen this can they point me in the right direction towards fixing this problem?  Thanks!
Dimitrina
Telerik team
 answered on 15 Jan 2015
13 answers
1.1K+ views
Hi.
I Have a RadGridView with a vertical scrollbar.
Is there a possibility to bring a certain Item into view.
I have tried Selected and Current however, the scrollbar remains unchanged.
Ideally I need something like:
var newItemInMyList = GetNewItem();  
this.ItemsSource.Add(newItemInMyList);  
this.SelectedItem = newItemInMyList;  
this.CurrentItem = newItemInMyList;  
this.radGridView1.BringIntoView(newItemInMyList);  

However if that is not possibile I would settle with bringing the scrollbar to the bottom of the Grid. (For the new Item woll most likely be added at the end of the list...)

Yours,
Nils


Boris
Telerik team
 answered on 15 Jan 2015
2 answers
589 views
How can i change the mouse over and selected (color after you click on a column)  color for the GridView columns. I am using this to change the default color

<Style TargetType="{x:Type telerik:GridViewHeaderCell}" >
            <Setter Property="FontFamily" Value="Verdana"/>
            <Setter Property="FontSize" Value="12"/>
            <Setter Property="BorderThickness" Value=".2"/>
            <Setter Property="Background"  Value="#FF8CC63F"/>
            <Setter Property="Foreground" Value="Black"/>
            <Setter Property="BorderBrush" Value="#FF8CC63F"/>
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>

        <Style TargetType="telerik:GridViewHeaderRow" >
            <Setter Property="Background" Value="#FF8CC63F" />
        </Style>
Boris
Telerik team
 answered on 15 Jan 2015
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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?