Telerik Forums
UI for WPF Forum
8 answers
469 views
Hi,

I have a TreeView in my WPF application. Items are allowed to be dragged within the same TreeView. However, while dragging the item, the TreeView does not automatically scroll vertically when mouse approaches top or bottom borders. 

I want a similar behavior like in Windows Explorer. When dragging a folder/file if the mouse approaches the border it performs automatic scroll. Otherwise it would be impossible to operate if you have large number of nodes in the tree.

Thank you,
Ruben.
Mike
Top achievements
Rank 1
 answered on 02 Mar 2012
3 answers
190 views
Sorry posted this twice!!
Hi,
I have a radtileview with a small number of tiles and I am attempting to loop through the tiles and maximse each one in turn form code behind. I get the  'Object reference not set to an instance of an object.' error when maximise is called. Can you put me right with this.
Regards,
Joe

The Code:

 

For I As Integer = 0 To Me.RadTileView1.Items.Count - 1

Dim item As RadTileViewItem = TryCast(Me.RadTileView1.Items(6), RadTileViewItem)

item.TileState =

 

TileViewItemState.Maximized

Thread.Sleep(5000)

Next


Tina Stancheva
Telerik team
 answered on 02 Mar 2012
1 answer
82 views
Hi:

I'm trying to create a calculated column or row to a radgridview. but the data is too much. how can i do it???
Vlad
Telerik team
 answered on 02 Mar 2012
3 answers
132 views
If i try to add one new element to the RadGridView with filter set for one or more columns and defaults for new item correspond to filtered elements , the new element isn't diplayed and can't be edited ....
There is a way to edit new item with filters activated ?

Thanks in advance
Florian
Top achievements
Rank 1
 answered on 02 Mar 2012
1 answer
99 views
Hi.

<

telerik:RadGridView.RowDetailsTemplate>

<DataTemplate>

     <telerik:RadGridView Margin="4,5,5,4" ShowColumnFooters="False" ShowGroupPanel="False" AutoGenerateColumns="False" ShowInsertRow="False" ItemsSource="{Binding IoTerminals}">

     <telerik:RadGridView.Columns>

         <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>

        <telerik:GridViewCheckBoxColumn Header="Simulated" DataMemberBinding="{Binding Simulated}"/>

         <telerik:GridViewCheckBoxColumn Header="Sim is possible" DataMemberBinding="{Binding SimPossible}" />

    </telerik:RadGridView.Columns>

    </telerik:RadGridView>

</DataTemplate>

</telerik:RadGridView.RowDetailsTemplate>

(Edit: I have made two edits on this post to try to make the above xaml look approachable, but to little avail)

The two Checkbox columns shows up empty. In the debugger I see that the property "SimPossible" is executed correctly and that it return "true". The "Name" column shows the correct value (boolean True).
If I change AutoGenerateColumns to True, then the additional generated columns shows correct value (and checked status).
No binding error is displayed in the debugger output window.

Is there any further parameterization necessary to map boolean "True" to display checked status? Do I need a value converter?

As you can see, this is in the rowdetails section of another GridView (in case that is relevant).

(New Info : Replacing the GridViewCheckBoxColumn with regular GridViewDataColumn is displayed correctly)

I use Q1 2012.

 

Dimitrina
Telerik team
 answered on 02 Mar 2012
0 answers
125 views
I am using RadTreeListView control to display data as a hierarchical view. I am binding my entity collection to the control using ItemSource, and my entity collection is of type ObservableCollection<T>. Whenever some data is changed in the source collection, i am performing an ItemSource again on the control. This is leading to losing all the expand/collapse state of the control. Thats is, as soon as I bind the new data (ItemSource), it updated the data but closes the expand/collapse state. How can I maintain the expand/collapse state of control even after ItemSource.
Bhaskar Khaund
Top achievements
Rank 1
 asked on 02 Mar 2012
0 answers
136 views
Hello,

I have a radgridview which i have bind to an ObservableCollection<objects>.
Now i want to insert a new row. I Have the following columns - Countryid | CountryName | Currency.

For the countryid and name i just type in some value in the cell...as for the Currency...i get the value from lookup.

When i double click on the cell Currency - i have a Search screen from which i select the currency.

Now the issue is that on closing the search screen , i can't return the value to the cell Currency.

Does anyone know how we can do this ?
i was trying to set the value of current cell but it did nt work.
gvcountries.Currentcell.Value = "text";

Please giv some hints on how i could tackle this.

Regards
Shaimaa
Shaimaa
Top achievements
Rank 1
 asked on 02 Mar 2012
4 answers
300 views
When binding the RadListBox, the list items have a gray foreground color on load. It is only until I mouse over each item that they turn to black. After the mouse over it is working fine.

My Listbox is:
<telerik:RadListBox x:Name="lb1" Width="116" HorizontalAlignment="Left" IsEnabled="True" telerik:StyleManager.Theme="Windows7" ItemsSource="{Binding}">
               <telerik:RadListBox.ItemTemplate>
                   <StaticResource ResourceKey="Template1"/>
               </telerik:RadListBox.ItemTemplate>
           </telerik:RadListBox>

DataTemplate:
<Grid.Resources>
                <DataTemplate x:Key="Template1">
                    <WrapPanel>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="20"/>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="*"/>
                                <ColumnDefinition Width="*"/>
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Text="{Binding Path=A1}"/>
                            <TextBlock Grid.Column="1" Text="{Binding Path=B1}" Margin="4,0,0,0"/>
                        </Grid>
                    </WrapPanel>
                </DataTemplate>
            </Grid.Resources>

Boyan
Telerik team
 answered on 02 Mar 2012
4 answers
102 views
Hey,

Was labbing some this morning and i come over this.

   <telerik:GridViewDataColumn Header="LogistikID" DataMemberBinding="{Binding nOrderID}" />
   <telerik:GridViewDataColumn Header="Namn" DataMemberBinding="{Binding strDisplayName}"/>
   <telerik:GridViewDataColumn Header="CareOf" DataMemberBinding="{Binding strCareOf}"/>
   <telerik:GridViewDataColumn Header="Gata" DataMemberBinding="{Binding strAddress}"/>
   <telerik:GridViewDataColumn Header="" />


If i leave one column not binded the Gridview lags like hell.

Im pretty sure i have to bind them all because i use GridViewDataColumn, but is it realy gonna lag so bad?

If i leave it empty, Shouldn't it just be ignored?

If i bind the last GridViewDataColumn it's lag free while scrolling/filtering.

Bug or Feature? 

/Joachim
Joachim Karlsson
Top achievements
Rank 1
 answered on 02 Mar 2012
2 answers
118 views
http://www.telerik.com/community/forums/wpf/gridview/filtered-records-list.aspx

I found an old forum thread describing the problem, but its from 2009.

Within a DataTemplate I have GridView.
Within the same datatemplate I have a button where I want to do a bulk operation on the filtered set of items.
The datacontext of the DataTemplate is an INotifyPropertyChanged derived object, which provides the GridView ItemsSource.

How do I, when handling the button click, obtain the list of filtered items back from the RadGridView?

The DataTemplate is hosted within the body of a data driven RadTabControl, if it matters.
Tormod
Top achievements
Rank 1
 answered on 02 Mar 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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
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
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
Rating
SplashScreen
Accessibility
Callout
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?