Telerik Forums
UI for WPF Forum
3 answers
154 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
259 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
111 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
131 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
158 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
819 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
180 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
1 answer
244 views
Dear Telerik-Team,

we bought RadControls WPF and Silverlight (Sourcecode included). We can´t compile the telerik sourcecode because of used telerik preprocessors. Is there a possibility to compile the sourcecode?

Best Regards

Bernhard
Boyan
Telerik team
 answered on 01 Jun 2010
1 answer
92 views
Hi,

I have a grid with 15-20 columns generated dynamically. First 2 columns are freezed. Third column is disabled. When we try to scroll the grid horizontally(with first two columns freezed), some of the cells are getting disabled. If we keep on scrolling grid horizontally(to left and right), the columns are getting enabled/disabled. The behaviour is not uniform too. Sometimes, cells are not getting disabled.

Please help.

Thanks and Regards,
Norbert John
Maya
Telerik team
 answered on 31 May 2010
5 answers
319 views
HI..
I set the property to be Readonly but I can still select the time.
How do I make the control readonly and disabled.  There is no disable prop.
thanks again
Jon
Top achievements
Rank 1
 answered on 31 May 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
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
NavigationView (Hamburger Menu)
Wizard
ExpressionEditor
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
Callout
PasswordBox
SplashScreen
Localization
Rating
Accessibility
CollectionNavigator
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?