Telerik Forums
UI for WPF Forum
1 answer
59 views
I am writing an ebook management which use RadTreView and RadCarousel. The Treeview allow user choose ebook category. When an ebook category is chosen the ebook in that category was updated. but some category still does not have any book so  I want to display something inform the user that there is no book inside. Please advise for me how to do that

Best Regards,
Truong Pham
Maya
Telerik team
 answered on 02 Jun 2010
2 answers
139 views
Hello,

I am using the radcarousel panel and currently I am facing problems with wpf browser element. Namely my carousel contains several frame - elements which are containing a XAML - Page, something like this:
        <ScrollViewer x:Name="carouselScrollViewer" CanContentScroll="True" VerticalScrollBarVisibility="Hidden" Margin="0"
            <telerik:RadCarouselPanel x:Name="mainMenuCarousel"  
             ItemsPerPage="3" PathPadding="0,0,0,100" d:LayoutOverrides="Width, Height" ScrollViewer.VerticalScrollBarVisibility="Hidden"
                <Frame Width="600" Height="400" Content="Frame" Source="\View\MediaPlayerView.xaml" NavigationUIVisibility="Hidden" IsEnabled="False" ScrollViewer.VerticalScrollBarVisibility="Disabled"/> 
                <Frame Width="600" Height="400" Content="Frame" Source="\View\WebBrowserView.xaml" NavigationUIVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Disabled"/> 
                <Frame Width="600" Height="400" Content="Frame" Source="\View\MediaPlayerView.xaml" NavigationUIVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Disabled" Focusable="False" IsTabStop="False"/> 
            </telerik:RadCarouselPanel> 
        </ScrollViewer> 
 
So my WebBrowserView has an wpf browser element. While scrolling radcarousel wpf browser element stays always top element although frame containing it isn't a selected item and overlaps items in foreground. Is it a common bug in wpf browser element or there is something wrong with radcarousel ?

Thank you.

Daniel Ruehle
Top achievements
Rank 1
 answered on 02 Jun 2010
5 answers
185 views
Hi!

I am using the "IsHidden" property to hide RadPanes in my WPF application.
This works fine.

What I want to do is to animate the "hiding/showing" of the panes. Is this possible?

Regards,
Lennart
Miroslav Nedyalkov
Telerik team
 answered on 02 Jun 2010
3 answers
108 views
Can I have a column whose value is derived from the difference of a column in two rows. Like:

For example I have following radgrid:

Row_Id         Rank                            Derived Col
1                     5                                      0
2                     7                                      2
3                     7                                      0
4                     3                                     -4                         

Derived col = TableRow.Rank - TableRow(-1).Rank

Is it possible using bindings?
Vlad
Telerik team
 answered on 02 Jun 2010
1 answer
200 views
Hi,

I came across this scenario that appears to be a bug. When I bind a series of items to a RadTabControl that is not wide enough to show them the scroll buttons do not appear until I resize the window. This is the simplest way to duplicate:

XAML:

<Window x:Class="Workbench.RadTabControlTest"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:Controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" Title="RadTabControlTest" Height="400" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>
        
        <Button 
            Width="125"
            Height="25"
            Click="Button_Click">Set Items</Button>
        
        <Controls:RadTabControl 
            x:Name="tabs"
            Width="250"
            Height="150"
            Grid.Row="1"
            />
    </Grid>
</Window>

And the code behind:

public partial class RadTabControlTest: Window
    {
        public RadTabControlTest()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            tabs.ItemsSource = new[] {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten"};
        }
    }

I am using the latest release and the project is .NET 4.0.

Am I doing something wrong?

Cheers,
Jose
Bobi
Telerik team
 answered on 02 Jun 2010
1 answer
74 views
Which control allows me to enter a Date and Time in order to input or display a DateTime value?
Kaloyan
Telerik team
 answered on 02 Jun 2010
1 answer
89 views
How can I explicitly indicate that I want a linebreak to be at a certain point in GridViewDataColumn header attribute? 

 

<telerik:GridViewDataColumn Header="Happy<LineBreakHere>(Days)"/> 

 

 

 

I want the text to be centered with (Days) appearing underneath "Happy", and I want to do this without implementing any Wrapping/ColumnWidth tricks.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Vlad
Telerik team
 answered on 02 Jun 2010
3 answers
124 views
Is there some type of ToolTipStyle of a GridViewDataColumn?  I'd like to change the background color and border color of the tooltip of some columns, but not others.
Vlad
Telerik team
 answered on 02 Jun 2010
27 answers
671 views
Hi There

When I try to export the data inside gridview table to an excel file with "xls"  file extension  a warning message  is shown like "different format than specified by the file extension"(Office 2007 is installed in the PC). However, when I change the file extension to xlsx it does not work at all.

Can anyone help me to figure out the problem?

Many thanks

Bo

Bellow is the code

Many thanksBoBellow is the code

 string content = string.Empty;
            string extension = "xls";
            content = radGridView1.ToHtml(true);
            string path = String.Format("Export.{0}", extension);

            if (File.Exists(path))
            {
                File.Delete(path);
            }

            using (FileStream fs = File.Create(path))
            {
                Byte[] info = Encoding.Default.GetBytes(content);
                fs.Write(info, 0, info.Length);
            }

            Process.Start(path);

Torben Bach
Top achievements
Rank 1
 answered on 01 Jun 2010
4 answers
129 views
I get the following error when I try creating a custom class and wire up to an event in the CellTemplate of a RadGridView.  Can anyone explain why this is?  I know it is not my code because when I use the custom class in the host page directly, it works. 

'MyHyperlink_OnClick' value cannot be assigned to property 'OnClick' of object 'WpfBrowserApplication3.MyHyperlink'. Method 'WpfBrowserApplication3.Page1._CreateDelegate' not found.  Error at object 'WpfBrowserApplication3.MyHyperlink' in markup file 'WpfBrowserApplication3;component/page1.xaml' Line 14 Position 24.

I would attache a sample, but the site is not allowing me.  Thanks. 

- Rashad Rivera
  OmegusPrime.com
Rashad Rivera
Top achievements
Rank 1
 answered on 01 Jun 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?