Telerik Forums
UI for WPF Forum
1 answer
213 views
Hello,

I am trying to display the row count on the raddatapager instead of footer. Is this possible? If so, is there an example somewhere?

Thank You in advance,
Kal
Rossen Hristov
Telerik team
 answered on 29 Sep 2010
1 answer
106 views
Hi,

I am testing RadGridView control for our needs. I bind a DataTable instance to the control but the column names of the control are empty. AutoGenerateColumns property is set to true. I want to set the column names of the DataTable instance to the grid control.

Thank you.
Yordanka
Telerik team
 answered on 29 Sep 2010
11 answers
195 views
Hello :)

I have a gridview and the filter menu is clipped, the "Filter" and "ClearFilter" buttons are not shown.
I have attached  a screenshot of this.

I hope you can help me.
Best regards
Jorge
Ramin
Top achievements
Rank 1
 answered on 28 Sep 2010
7 answers
437 views
I have a very simple problem. I have a list of cars and each car can further contain its name and a list of parts that consist the car. Now i want to show the cars(names) in a grid and the corresponding parts in a combobox in the same row using GridViewComboBoxColumn.
I have set the itemsource property of grid to Cars. Then i used the GridViewDataColumn's unique name to display the name and item source property of GridViewComboBoxColumn to display parts. Here is the code

 

 

 

 

 

<

 

telerik:RadGridView Name="UserListGrid" DockPanel.Dock="Top" Height="520"

 

 

ScrollMode="RealTime"

 

 

UseAlternateRowStyle="True"

 

 

AutoGenerateColumns="False"

 

 

ShowGroupPanel="False"

 

 

IsReadOnly="False"

 

 

RowIndicatorVisibility ="Visible"

 

 

CanUserFreezeColumns="False"

 

 

SelectionMode="Single"

 

 

ItemsSource="{Binding OperatorInfoItems, Mode=TwoWay}"

 

 

SelectedItem="{Binding SelectedRow, Mode=TwoWay}"

 

 

IsSynchronizedWithCurrentItem="True"

 

 

SelectionChanged="UserListGrid_SelectionChanged">

 

 

 

<telerik:RadGridView.Columns>

 

 

 

<telerik:GridViewDataColumn UniqueName="Cars" DataType="{x:Null}" Header="Names" IsVisible="True" IsFilterable="False" IsGroupable="False" IsReadOnly="True" IsSortable="False" Width="150"/>

 

 

 

<telerik:GridViewComboBoxColumn ItemsSource="{Binding Parts}" Header="Parts"/>

 

 

 

</telerik:RadGridView.Columns>

 

 

 

</telerik:RadGridView>

 

 

 

 

 

But after running the project i could only see names and a data binding error message instead of a populated combobox.
Pl tell me what to do.

 

 

 

 

 

 

 

 

 

 

Maya
Telerik team
 answered on 28 Sep 2010
5 answers
858 views
Hi telerik,
as part of my custom control development for button control, i need to have a button content with a combination of the image
and a text (side by side). i need to change the image to a different image when i place my cursor on to the button and change to
original image when the mouse leaves the control.

how to acheive this in generic.xaml and my cs file?

Regards,
srinivas J
Zarko
Telerik team
 answered on 28 Sep 2010
1 answer
161 views
Hi,
  I was trying to use the dynamic layer and my goal was to only get items within the viewport. My data is stored with a quadkey up to lever 2^14 and because of that  I need to set the ZoomGrid to 2^level * 2^level cells.
    Looking with reflector in the the DynamicLayer code I've realized that the call back for getting the items for a particular cell is iterating through the entire cell set rather than being restirected to the one in the view.
  This is obviously causing the application to freeze on high levels(9+). Am I missing something in my implementation? 
   Are there any plans to introduce a DynamicLayer class that is similar with the Bing Tile system? I would take any beta version into consideration as where I am standing now I have to implement my own. Please advise!
Regards,
Dan
Andrey
Telerik team
 answered on 28 Sep 2010
8 answers
1.0K+ views
I have a small RadTabControl that has 3 RadTabItems as children. I've tried setting up the GetFocus events on the RadTabItem in both XAML and in code, but they do not fire. Has anyone else seen this issue?

Also, I tried to use the RadTabControl.SelectionChanged event as a work around, but that fires when the control loads, not just when the user changes selection so it didn't help.
Arnstein
Top achievements
Rank 1
 answered on 28 Sep 2010
1 answer
344 views
I am in the process of evaluating the Telerik controls and have moved to trying to use them in our actual project.  However, I cannot get a design time experience for any Rad control in Blend.  I get an error in the results panel that reads: Cannot locate resource 'themes\genericvista.xaml'.  I can create a standard out-of-the-box project and it works ok.  Our project is a bit different.  Here is the setup to hopefully find a solution:

VS2010, Blend 4, .Net 3.5
Telerik 2010.1.422.35

Our WPF exe project is separate from where we design.  We have a Shell.exe project and it references our "Views.dll" project where all of the design takes place. Our shell project builds to a non-default location.  It builds to ..\bin\Debug instead of bin\debug.  We have also changed all project to have a build target platform of x86 instead of Any CPU.  (Just pointing this out because you never know what might help get an answer).

My next step is to create an out of the box solution - get it to work with Telerik - and then step by step mirror what we are doing in our project.  If I get the same error then I will have a solution I can upload it here.   I am hoping someone can read this and help me with a solution before I go through all of that :)

Thanks.
Vlad
Telerik team
 answered on 28 Sep 2010
1 answer
101 views
I want to add a button inside the treeview container style & how can I add click event.
I am using a HierarchicalDataTemplate.

this.OfficesDataSource = new List<OfficeName>();
OfficeName o;
EmployeeName e;
this.OfficesDataSource.Add(o = new OfficeName("A"));
            o.EmployeeNames.Add(e = new EmployeeName("X"));
            o.EmployeeNames.Add(new EmployeeName("Y"));
            this.OfficesDataSource.Add(o = new OfficeName("B"));
            o.EmployeeNames.Add(new EmployeeName("Z"));
            this.DataContext = this.OfficesDataSource;


Thanks
Pravesh
Pravesh
Top achievements
Rank 1
 answered on 28 Sep 2010
2 answers
365 views
Hi, I have a database set up with a Client table and a Project table. Clients have projects, and I set up a Hierarchical Data Template to display them in the treeview. I am now putting functionality in for adding/removing both clients and projects, but I've run into an issue.

Adding and removing Clients (the parent nodes) will update the treeview immediately when I call the INotifyPropertyChanged on the ObservableCollection that it is bound to, but the Projects (the children nodes) won't update until I close the application and start it again.

Here is all the relevant code I can think of:

my xaml:
    <Page.Resources>
        <DataTemplate x:Key="Projects" DataType="{x:Type local:Project}">
            <StackPanel Orientation="Horizontal">
                <Image Source="/Images/Project.png" Height="20" Margin="0,0,8,0" />
                <TextBlock Text="{Binding Name}" />
            </StackPanel>
        </DataTemplate>
        <HierarchicalDataTemplate x:Key="Clients" DataType="{x:Type local:Client}" ItemTemplate="{StaticResource Projects}" ItemsSource="{Binding Projects}">
            <StackPanel Orientation="Horizontal">
                <Image Source="/Images/Client.png" Height="20" Margin="0,0,2,0" />
                <TextBlock Text="{Binding Name}" />   
            </StackPanel>           
        </HierarchicalDataTemplate>
        <Style x:Key="ItemContainerStyle" TargetType="{x:Type telerik:RadTreeViewItem}">
            <Setter Property="Template" Value="{StaticResource SavanetekTreeItem}"/>
        </Style>
    </Page.Resources>
 
<telerik:RadTreeView x:Name="RadTreeView1" Grid.Row="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                         Style="{StaticResource SavanetekTreeViewStyle}" ItemsSource="{Binding ClientList}" SelectedItem="{Binding Path=SelectedObject, Mode=TwoWay}"
                         ItemTemplate="{StaticResource Clients}" ItemContainerStyle="{StaticResource ItemContainerStyle}">
            <telerik:RadTreeView.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="New Client..." Click="MenuItemNewClientDetails_Click" />
                    <MenuItem Header="New Project..." Command="{Binding NewProjectCommand}" />
                    <Separator />
                    <MenuItem Header="Edit..." Click="MenuItemEditClientDetails_Click"/>
                    <Separator />
                    <MenuItem Header="Remove..." />
                </ContextMenu>
            </telerik:RadTreeView.ContextMenu>
        </telerik:RadTreeView>


my remove function:

Public Sub Remove()
        If (IsProject(SelectedObject)) Then
            DB.Projects.DeleteOnSubmit(SelectedObject)
            SubmitChangesToDatabase()
        ElseIf (IsClient(SelectedObject)) Then
            DB.Clients.DeleteOnSubmit(SelectedObject)
            SubmitChangesToDatabase()
        Else
 
        End If
 
        RefreshClientList()
    End Sub

And my code for the ClientList with the Refresh and the function to cast the SelectedObject to a Client or a Project:

Private _clientList As ObservableCollection(Of Client)
    Public Property ClientList() As ObservableCollection(Of Client)
        Get
            Return _clientList
        End Get
        Set(ByVal value As ObservableCollection(Of Client))
            _clientList = value
            OnPropertyChanged("ClientList")
        End Set
    End Property
 
Public Sub RefreshClientList()
        ClientList = New ObservableCollection(Of Client)()
        ClientList = ClientRepo.FindAll()
        OnPropertyChanged("ClientList")
    End Sub


I had tried putting a for each loop in the refresh function that listed all the projects in the ClientList, and it does in fact delete/add the Projects to it, so I know that it has the proper data. It just isn't displaying it for some reason.

I would greatly appreciate if anyone knows how to remove a child from a parent on the treeview and have it refresh
Eric
Top achievements
Rank 1
 answered on 28 Sep 2010
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
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
SplashScreen
Rating
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
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?