Telerik Forums
UI for WPF Forum
5 answers
342 views
Hi

I am trying to come up with a composite control which includes GridView and Date pager something similar to asp.net grid. I have AllowPagination property. I am finding it difficult as to how link datapager and gridview control in the composite control.

I have seen the sample where it says Datapager Source="{Binding Items, ElementName=radGridView}" but how i can I do the same linking in code behind.

Regards
Kiran
Pavel Pavlov
Telerik team
 answered on 13 Oct 2010
3 answers
209 views
Hi,

I want to edit filter popup in RadGridView. is it possible ?
Vlad
Telerik team
 answered on 13 Oct 2010
1 answer
127 views
I like the fade-in/fade-out transition for the window but I need to make it a bit faster. How can I change it. I don't want to turn it off.
George
Telerik team
 answered on 12 Oct 2010
4 answers
158 views
Hi,
I have the following issue. I use Frame control to load data to my tabs - so i can load different pages. But when i change tabs (create new one with different page loaded) - data that my previous pages load get's requeried. How can i disable that - so that when i open a new tab - previous stays as it was and doesn't reset it's self.

Thank you.
Sam Ur
Top achievements
Rank 2
 answered on 12 Oct 2010
1 answer
95 views
Hello,

I want to use a RadWindow as a user control inside another RadWindow, like as below.

<

 

 

telerik:RadWindow x:Class="MacFellow.WPF.ParentRadWindow"

 

 

 

xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

 

 

 

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

 

 

 

xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

 

 

 

xmlns:d="http://schemas.microsoft.com/expression/blend/2008"

 

 

 

mc:Ignorable="d"

 

 

 

xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

 

 

 

d:DesignHeight="300" d:DesignWidth="521">

 

 

 

 

<Grid>

 

 

 

 

<telerik:RadWindow Top="10" Left="10" Height="200" Width="300" Visibility="Visible">

 

 

 

 

<Button x:Name="btnClickMe" Content="Click Me" Width="100"/>

 

 

 

 

</telerik:RadWindow>

 

 

 

 

</Grid>

 

</

 

 

telerik:RadWindow>

 


Now when I click on the button "btnClickMe" it throws an exception "Object reference not set to an instance of object".

Please let me know the reason of the exception and how can it be resolved.
Miroslav Nedyalkov
Telerik team
 answered on 12 Oct 2010
3 answers
95 views

Hi,
We have a RadTreeView nested in a RadPanelBar which the user can undock and have floating. While docked the binding for the all data works fine including the state of the checkboxes. However, when the undocked and floating the checkboxes no longer reflect the correct state. The names for the hierarchical data items are displaying correctly so some of the binding is still working but not the state of the checkboxes.

The following is the xaml we are using:

<telerikNavigation:RadPanelBarItem Collapsed="RadPanelBarItem_ExpandedCollapsed" Expanded="RadPanelBarItem_ExpandedCollapsed" >
    <telerikNavigation:RadPanelBarItem.Header>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="18" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <CheckBox Grid.Column="0" IsThreeState="True" IsChecked="{Binding IsDomainsChecked, Mode=TwoWay, NotifyOnTargetUpdated=True}" Click="FilterCheckBox_Click" TargetUpdated="CheckBox_TargetUpdated"/>
            <TextBlock Grid.Column="1" Text="Domains"/>
        </Grid>
    </telerikNavigation:RadPanelBarItem.Header>
    <telerikNavigation:RadTreeView 
        Name="DomainTreeView"
        IsOptionElementsEnabled="True"
        ItemsOptionListType="CheckList" 
        IsTriStateMode="True" Checked="TreeView_CheckedUnchecked" Unchecked="TreeView_CheckedUnchecked"
        ItemsSource="{Binding Path=DomainEmailTypes}">
            
        <telerikNavigation:RadTreeView.ItemTemplate>
            <HierarchicalDataTemplate DataType="{x:Type ViewModels:EmailTypeFilterViewModel}" ItemsSource="{Binding Path=EmailTypes}">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition />
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/>
                    <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" />
                </Grid>
                <HierarchicalDataTemplate.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition />
                                <ColumnDefinition />
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Text="{Binding Path=Name}"/>
                            <TextBlock Grid.Column="1" Margin="5,0,5,0" Text="{Binding Path=DisplayCount}" />
                        </Grid>
                   </DataTemplate>
                </HierarchicalDataTemplate.ItemTemplate>
            </HierarchicalDataTemplate>
        </telerikNavigation:RadTreeView.ItemTemplate>
    </telerikNavigation:RadTreeView>
</telerikNavigation:RadPanelBarItem>


Any help or insight would be greatly appreciated.

Thank you.
Tina Stancheva
Telerik team
 answered on 12 Oct 2010
4 answers
140 views
I have gridview with check boxes that needs a filtering function. The problem with the default filter is that if a user opens the filter dialog an selects an item from the list all of the checked/selected items in the gridview are removed. I thought that I could add the checked items to the filter descriptor just prior to the filter event but it removes everything else from the filter list as well. Does anyone know a way around this problem?
I think what I need is the actual filterdescriptor that is being applied at the time the UI is active. I need to add my filterdescriptor to it or add a columndescriptor.
OverCoded
Top achievements
Rank 2
 answered on 11 Oct 2010
8 answers
196 views
Hello,

I am creating an application that will bring up a messagebox after an item has been dragged and dropped from one treeview to another.  I would like the messagebox to prompt the user with a Yes/No after the drop is complete on the second treeview.  If the user selects no, the drop can then be canceled.

Thanks
Ryan

RadDragAndDropManager.AddDropInfoHandler(this.CreatedStepItems, new EventHandler<DragDropEventArgs>(this.CreatedStepItems_OnDropInfo));
 
 private void CreatedStepItems_OnDropInfo(object sender, DragDropEventArgs e)
        {
            if (e.Options.Status == DragStatus.DropComplete)
            {
                 
                var t = MessageBox.Show("Cancel", "Cancel", MessageBoxButton.YesNo);
                if (t == MessageBoxResult.Yes)
                    //Cancel
                else
                    //Dont
            }
        }
Petar Mladenov
Telerik team
 answered on 11 Oct 2010
1 answer
293 views

I have the RadGridView setup with

SelectionUnit="Cell"  
SelectionMode="Extended"

Is there any way to highlight the current row (obviously in some color that is not the same as the cell highlight) when I have selected a cell in it?  I was able to make a style that changed the row color when the mouse was over it, but that's not really what I need.

Basically I want it to work like SQL Management Studio does when you click the row number.. it selects the row... but as far as I can tell there is no way to mix the selection mode.
Maya
Telerik team
 answered on 11 Oct 2010
3 answers
226 views
I want to change the CellTemplate and CellEditTemplate of GridViewDataColumn, based on the value of another column.

eg. If Column A has drop down box, with two entries: TextBlock and ComboBox. Based on the selection of column A, I want the column B to have that control.

If you can provide me some sample code that accomplishes this it would be very useful.
Maya
Telerik team
 answered on 11 Oct 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?