Telerik Forums
UI for WPF Forum
3 answers
502 views

The follow code doesn't work:

<telerik:RadComboBox Name="testcc" ItemsSource="{Binding TestTypes}" SelectedItem="{Binding SelectedTestType}" IsEditable="True" StaysOpenOnEdit="True" IsFilteringEnabled="True" TextSearchMode="Contains" DisplayMemberPath="FullName"/>

I tried setting OpenDropDownOnFocus="True", and it works only for the first time. When the ComboBox is still on focus but the dropdown is close, I tried typing in the textbox the dropdown will not open.

Yana
Telerik team
 answered on 26 Sep 2011
1 answer
170 views
within wpf radChart, export to xlsx, is it possible to dump out a table of the raw data that is used in the chart?  Do i need to do this "by hand" via another process?
thanks,
robert
Yavor
Telerik team
 answered on 26 Sep 2011
0 answers
114 views
Hi,

In the Self referencing radgridview, I need to implement the below items

1. Multiple row headers (dynamically)
2. Binding the List Collection to the grid

For example, the grid should look like
------------------------------------------------------------------------------------------------------------------
                                 MICROSOFT             |                           TELERIK
------------------------------------------------------------------------------------------------------------------
Topic         |       .NET    |    Sharepoint       |     RadGridView    |    RadContextMenu
------------------------------------------------------------------------------------------------------------------
- T1           |         xyz     |      abc                 |            34            |           25
    - T11     |                   |                            |                            |            zzz
 -------------------------------------------------------------------------------------------------------------------

I have the LINQ query list as below

CompanyID | Company Name | ProductID | Product Name        | Topic ID | Topic Name|  Parent Topic ID | Value ID | Value
        1         |  Microsoft           |  1              |   .NET                    | 1            |  T1              |       NULL           |     1         | xyz
        1         |  Microsoft           |  2              |   Sharepoint           | 1            |  T1              |       NULL           |     2          | abc
        2         |  Telerik              |  3              |   RadGridView        | 1            |  T1              |       NULL           |     13        | 34
        2         |  Telerik              |  4              |   RadContextMenu | 1            |  T1              |       NULL           |     15        | 25
        2         |  Telerik              |  4              |   RadContextMenu | 2            |  T11            |       1                  |     19        | zzz

and I am having this query result in List<myClass>. myClass is having fields and properties for the above mentioned table.
Please help me to achieve this with some sample code.
Ramasamy
Top achievements
Rank 1
 asked on 25 Sep 2011
0 answers
182 views
Trouble Filtering Rows.
I have the need to bind a viewmodel that has a hierarchy of objects in the template for the TreeListView. I have a need to make rows(nodes) toggle between visible or invisible while in "ShowAll" mode where all the nodes can be seen. The user clicks the show all checkbox outside of the treeview to enter show all mode. There is an eye icon beside every treelistivew item kind of like adobe products have. The eye once clicked will turn from gray to a selected state to show that he item is visible. Once the ShowAll mode is turned off the items should be filtered from view. I can't work this out.


 <CheckBox x:Name="ShowAll" Content="Show All" Click="ShowAll_Click" ></CheckBox>
<
telerik:RadTreeListView x:Name="MyTreeView" EditTriggers="None"
                         AutoGenerateColumns="False"
                         local:SelectionBehavior.SelectionChanged="{Binding Path=ItemSelectedCommand}"
                         ItemsSource="{Binding ProjectDataInstances}"
                         ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                         HierarchyColumnIndex="3">
    <telerik:RadTreeListView.ChildTableDefinitions>
        <telerik:TreeListViewTableDefinition ItemsSource="{Binding Children, Converter={StaticResource NodeVisibilityConverter1}}" />
    </telerik:RadTreeListView.ChildTableDefinitions>

The converter can work on my IsVisible variable internally for each of my children but there is no way to check the show all control from the TreeListViewTableDefinitino.ItemsSource as it passes through the converter(I could flag the converter to show everything). I tried to use a Multibinding which doesn' t work. I also tried to pass the Element in the ConverterParameter but that doesn't work either. I toyed with polluting my viewmodel with a static ShowAll property and manually walking the hierarchy and updating the IsVisible properties using that property flag but I am having troubles with that too.

 So, naturually my question is, how do I properly filter the rows? 


Jaime Weise
Top achievements
Rank 1
 asked on 24 Sep 2011
4 answers
156 views
In WPF telerik gridview control if you have a gridViewComboBoxColumn, during runtime I am seeing a problem:

1. Select the 'Click here to add new item' button to add a new row to the grid
2. click the comboxBox item (the DDLB) and select something from the drop down.
3. hit the 'tab' button on keyboard.
4. click the add new item button again.
5. click the combox item to open the drop down
*** at this point the combobox does not open or become selected, instead the row just adds without allowing any modification***

I am getting the same problem with your sample project as well as my project.
(sample I found at the link below)
http://www.telerik.com/community/forums/wpf/gridview/use-combobox-while-inserting-data.aspx

Has anybody else seen this issue and hopefully have a workaround?

Thanks again - Chris
Chris
Top achievements
Rank 1
 answered on 23 Sep 2011
1 answer
125 views
Hi,
My Treeview's ItemsOptionListType is set to CheckList and binded it with data. 
My requirement is:-
For some of treeviewitem's checkbox need to be Read only.
I am able to set IsEnable to 'false' in ItemContainerStyle then total item appearance is is disabled mode.
But i want to set IsReadOnly to True which is not available as i want to see same look for all treeview items.

Any Suggestions?


Petar Mladenov
Telerik team
 answered on 23 Sep 2011
1 answer
78 views
Hi,

the user wants to enter the time directly in a RadTimePicker.
If he enters "00:59" everything is fine. But if he uses "0059" instead, the result is "05:09".
That's surprising and not reasonable for the user.

Other examples for this behaviour are:
"0201" => "20:01"
"0022" => "22:00"

Is there any reason for this behaviour?

Thanks for your help.
Kind Regards
    Bettina 
Konstantina
Telerik team
 answered on 23 Sep 2011
3 answers
279 views
I've created my own Filtering Control (class derived from FilteringControl) so that I can set a default FilterOperator to something other than Equal To. It works great, but it's using the default theme. My application uses the Office Blue theme, not the default Black theme. How do I get it to use the application's theme instead of the default?

I'm defining my class as a resource for the grid, then using it as a static resource for the column I want to change. Here is the related code for my grid:
<telerik:RadGridView.Resources>
     <common:ChangedFilteringControl x:Key="StartsWithFilterControl" DefaultFilter="StartsWith" />
</telerik:RadGridView.Resources>
.....
<telerik:GridViewDataColumn DataMemberBinding="{Binding Number}" FilteringControl="{StaticResource StartsWithFilterControl}" />

I'm guessing I need to apply a style but it's just not working.
Rayne
Top achievements
Rank 1
 answered on 23 Sep 2011
0 answers
173 views
What happened with the MapProviderBase RadMap.Provider - SetMapSource.
We installed versjon 2011.2.0920.35 and SetMapSource no longer exists.

Update: After restarting my computer everything was ok again!
Rieni De Rijke
Top achievements
Rank 1
 asked on 23 Sep 2011
7 answers
1.1K+ views
I'm trying to hide my GridView when it is empty with a trigger, but I'm having trouble with that. The problem seems to be that Items.Count doesn't update when the ItemsSource of the GridView is updated.

I have a GridView and a TextBlock like this:

<telerikGridView:RadGridView Name="MyGrid" 
    ItemsSource="{Binding MyBindingList, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}" 
    Style="{StaticResource MyGridStyle}"
    ... 
</telerikGridView:RadGridView> 
 
<TextBlock Text="No records..." Style="{StaticResource NoRecordsTextStyle}" /> 

And they reference these styles:

<Style x:Key="MyGridStyle" TargetType="telerikGridView:RadGridView"
    <Setter Property="Visibility" Value="Visible" /> 
    <Style.Triggers> 
        <DataTrigger Binding="{Binding ElementName=MyGrid, Path=Items.Count}" Value="0"
            <Setter Property="Visibility" Value="Collapsed" /> 
        </DataTrigger> 
    </Style.Triggers> 
</Style> 
                    
<Style x:Key="NoRecordsTextStyle" TargetType="TextBlock"
    <Setter Property="Visibility" Value="Collapsed" /> 
    <Style.Triggers> 
        <DataTrigger Binding="{Binding ElementName=MyGrid, Path=Items.Count}" Value="0"
            <Setter Property="Visibility" Value="Visible" /> 
        </DataTrigger> 
    </Style.Triggers> 
</Style> 

So the default is that the GridView is visible and the TextBlock is collapsed. When Items.Count is 0, i.e. when there are no records to show, the triggers make sure that the GridView is collapsed and the TextBlock is visible.

What happens is that the GridView never shows up but the TextBlock does, even though the GridView has records. If I use exactly the same code but swap out the GridView to a standard WPF ListBox it all works fine.

After some experimenting I've come to the conclusion that it is the Items.Count property that is the problem. It never gets updated. Initially the source of the GridView is empty and thus Items.Count is 0. But when I add items to the source (which I do immediately when the app starts) the Items.Count still remains 0.

Is this a known issue? How can I get around it? Or am I missing something?

Thanks // David
Maya
Telerik team
 answered on 23 Sep 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
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?