Telerik Forums
UI for WPF Forum
0 answers
72 views
hi 
I need work with Alert content in right to left mode ?
Davood
Top achievements
Rank 1
 asked on 20 Jul 2011
3 answers
251 views
Hi,

I'd like to clarify whether this is an expected behavior.

I'm creating a windows explorer-like control where the RadTreeView is used on the left side pane (l-pane) for navigation and a RadGridView is used for right side detail pane (r-pane).

When the node in the tree is selected, its children are displayed in the r-pane. When a row in r-pane is double-clicked, l-pane will navigate to the node corresponding to that row (if there's any child under it, otherwise there will be other behaviors), and the children of that node populate the r-pane.

I'm using MVVM. Each node in the tree and row in the grid view is bound to a view model. The same view model is used for both the node (if it appears in the tree) and the row element (if it appears in the grid view). And I'm controlling the IsExpand and IsSelected status of the tree node through the view model's corresponding properties with the same name (two way binding). All very standard.

I also have a view model for the whole explorer. In here I hooked a few ICommand's to the various events of both the tree view and the grid view. For example, I created an ICommand for the Selected event of the tree, so that when the user select a certain node, I'll update the r-pane's bound collection. Another ICommand responses to the grid view's MouseDoubleClick event so when the user double click the row in grid view, the entry view model's IsSelected and it's parent's IsExpanded are set to true. And here's where the problem occurs.

Let's look at those nodes previously not shown in the tree yet (i.e. their parents are not expanded yet).

After the above step the tree successfully expands and shows the node in question as selected. After that what I expected is that the 'Selected' event of the tree view is fired, my ICommand for 'Selected' is executed, and my r-pane is populated with the node's children. But the 'Selected' event is never fired!

The reason i guess is that, since the node's parent was not expanded yet, the node was not visible/loaded in the tree when my ICommand for r-pane's MouseDoubleClick was executed. And what's more, even after I set its IsSelected property to true programmatically, somehow the event routing just stopped there.

One interesting thing I found is that, if I manually expand the parent in the tree, and make the node visible, then go back to r-pane and double click on the row, the 'Selected' event is fired now! I can see the r-pane is repopulated with the node's children.

 It seems that after I expand the parent once, even if I immediately un-expand it afterwords, I somehow trigger the node to be loaded in the tree. And now it's legitimate to wake up the 'Selected' event of the tree view control!

Here's the Link to the demo project on skydrive. (RadTreeViewProblem.rar)

My question here: is this expected? Of course I can set all the nodes in the tree to be Expanded when it is loaded to make this work. But that's certainly not what I want.

Any input on this is appreciated!
Yu
Top achievements
Rank 1
 answered on 20 Jul 2011
12 answers
201 views
Hi Telerik Team,

Great work with your controls, they really are a pleasure to work with!

Currently I'm using the ScheduleView and looking for a way to customize the MonthView to display next to the number of each day an indication of the number of items in the system.  E.g. "12  (2 entries)" meaning there are already 2 entries scheduled for the 12th of the month (and those 2 are not necessarily contained in the bound AppointmentSource).

What would be the best approach to accomplish this?

Thanks in advance.
Etienne.
palak
Top achievements
Rank 1
 answered on 20 Jul 2011
8 answers
282 views
I have 10+ columns in my radtreelistview control

when i scroll or expand, the responding time of the control is quite slow

for example, while expanding a node, even it only has like 1 or 2 child rows, it still take a long time to load

i have tried to 'hide' most of the columns, then the responding time becomes instant

is treelistview not designed for such purpose

or is there anyway to work around this???
Tim Ge
Top achievements
Rank 1
 answered on 20 Jul 2011
13 answers
349 views

Hello

I have Combo Box column in grid with data member binding for id.

The problem that the Filter shows the Ids instead of the names

How can I show the name without change the data member binding or the filter?

See picture attached.

Best regards

Ehud.

Anthony
Top achievements
Rank 1
 answered on 20 Jul 2011
3 answers
204 views
Hi,

I need to have the ability to move the rows of a radgridview up/down without rebinding the grid. The gridview is grouped on two groups.

Is there a quick and simple way to do that?

Thanks,
Arpit
Scott
Top achievements
Rank 1
 answered on 20 Jul 2011
2 answers
49 views

Hello, we just updated our DLL's to Q2 2011 (CLR 4.0), and we noticed that the field filter drop lists are not allowing independent values.  For example, if you select "Contains" for Filter1, then Filter2 also becomes "Contains".  Likewise, if you select "Starts With" for Filter2, and Filter1 already is set to "Contains", Filter1 changes to "Starts With".

We are not overriding any functionality with Prepare, etc.

Thanks for any info.
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 19 Jul 2011
0 answers
173 views
I tried your latest demo 2010.2

The GridView has 8 Rows. Each Row has a RichTextBox as DataTypeColumn.

On the GridView the Virtualization on Columns + Rows is turned on also the Realtime scrolling.

When I drag now the thumb bar of the Scrollbar the DataRows are jumping with a delay. Seems the creating of a datarow when it is getting into the visible area is badly solved. 

What is wrong with my code and how can I improve smoothness of the scrolling ?

Using the so called crap DataGrid from Microsoft the scrolling is superb and the DataGrid is loaded 3 times faster... I just miss the features you offer...

my test code:

<telerik:RadGridView x:Name="dailyGrid" <br>                ItemsSource="{Binding PeriodListViewModel}"<br>                ScrollMode="RealTime"                 <br>                AutoGenerateColumns="False"                 <br>                CanUserDeleteRows="False"<br>                CanUserInsertRows="False"<br>                CanUserReorderColumns="False"<br>                CanUserResizeColumns="False"<br>                CanUserSortColumns="False"<br>                DataLoadMode="Asynchronous"<br>                RowStyle="{StaticResource ResourceKey=RowStyle}" <br>                RowIndicatorVisibility="Collapsed" EnableRowVirtualization="False" EnableColumnVirtualization="False"><br><br>                <telerik:RadGridView.Columns><br>                    <telerik:GridViewDataColumn Header="Content" Width="*"><br>                        <telerik:GridViewDataColumn.CellTemplate><br>                            <DataTemplate><br>                                <Grid HorizontalAlignment="Stretch"><br>                                    <Grid.RowDefinitions><br>                                        <RowDefinition Height="200" /><br>                                    </Grid.RowDefinitions><br>                                    <telerik:RadRichTextBox VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch" VerticalContentAlignment="Stretch"                                                             <br>                                                            IsSpellCheckingEnabled="False" <br>                                                              x:Name="RTFBox" /><br>                                    <telerikProvider:RtfDataProvider                                        <br>                                        Rtf="{Binding Path=Content}"<br>                                        UpdateSourceTrigger="LostFocus" <br>                                        RichTextBox="{Binding ElementName=RTFBox}" /><br>                                </Grid><br>                            </DataTemplate><br>                        </telerik:GridViewDataColumn.CellTemplate><br>                    </telerik:GridViewDataColumn>                                    <br>                </telerik:RadGridView.Columns><br>            </telerik:RadGridView>-->


btw. the DataLoadMode Async or Sync there seems no difference for me. The data is always loaded syncronously because the GridView is only visible when all data is loaded... thats not async!

bernd kopp
Top achievements
Rank 1
 asked on 19 Jul 2011
5 answers
456 views
Hello,

I want get the the Label in gridview's datacolumn celltemplate.
In xaml file , the design is as follows.

 <telerik:RadGridView x:Name="ecbPropertiesGV" AutoGenerateColumns="False"
                                                 ActionOnLostFocus="CancelEdit" CanUserReorderColumns="False"
                                                 RowIndicatorVisibility="Collapsed" IsFilteringAllowed="False"
                                                 CanUserDeleteRows="False" CanUserInsertRows="False" CanUserSelect="False"
                                                 CanUserSortColumns="False" IsReadOnly="True" ShowGroupPanel="False" CanUserResizeColumns="False">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn Header="Number."  x:Name="numberColumn" HeaderTextAlignment="Center">
                                        <telerik:GridViewDataColumn.CellTemplate>
                                            <DataTemplate>
                                                <Label x:Name="lblName" Width="170" VerticalAlignment="Center" />
                                            </DataTemplate>
                                        </telerik:GridViewDataColumn.CellTemplate>
                                    </telerik:GridViewDataColumn>
</telerik:RadGridView>

How to find the lblName(Label)  in GridViewDataColumn.
If anyone who knows about this , please reply me.

Best Regards
Mark Richardson
Top achievements
Rank 1
 answered on 19 Jul 2011
8 answers
205 views
Hi,

How can I define Headers style in RadGridView in code

Or

Is there any property which deals with headers styles?

Thanks,
-Narendra

Bob
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 19 Jul 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?