Telerik Forums
UI for WPF Forum
2 answers
122 views
Hi,
I've got two Radpane in one RadPaneGroup. If i change the IsHiddenProperty it works fine.
But if i Float One of the Pane Outside the COmpass Area and then i change IsHidden Property .. this pane hide but never shows again.
private void radDockPanel1_Close(object sender, Telerik.Windows.Controls.Docking.StateChangeEventArgs e)
      {
          p1.IsHidden = !p1.IsHidden;
      }

this is the code in a button click.. It doesn' work if i drag a pane outside the compass area.

THX AGAIN
Claudio
Top achievements
Rank 1
 answered on 21 Oct 2010
1 answer
77 views

Hello again,

 

    I want to suggest a better behavior for this control that would help it stay 508 compliant.  When I use the RadTabControl in my applications, and a user attempts to change the tab using just the keyboard, this control behaves in a way that is not typical.   For starters, the RadTabItem’s default IsTabStop value is “false”.  Second, even when we set the IsTabStop to “true”, the focus is automatically changed from the Tabs to the first control in the tab being activated.  This is not a typical behavior as seen in the stock TabControl that Microsoft wrote (or any other Tab control to speak of).  Finally there is the matter of the AutomationPeer (as in there is none for either the RadTabControl or RadTabItem).  This presents an issue for customers like me who are required to make our products accessible.    

- Rashad Rivera

Miro Miroslavov
Telerik team
 answered on 21 Oct 2010
1 answer
105 views
I am adding items to the carousel at runtime. Although the items are added, none is displayed until I use the horizontal scroll bar.
How to bring the item in view when added?
Vlad
Telerik team
 answered on 21 Oct 2010
1 answer
79 views
Hi..
How can I create Header hyperlink so when you click on the header it fires a hyperlink event?
For example my header will be file names and I want to open the file when the header is clicked.
thanks again
Vlad
Telerik team
 answered on 21 Oct 2010
3 answers
180 views


Binding to the DataTable when DataBinding multiple Row to the error

DataCode
public DataTable GetDataTable()
{
    DataTable dataTable = new DataTable();
    dataTable.Columns.Add("Time", typeof(DateTime));
    dataTable.Columns.Add("DoubleData", typeof(double));
    dataTable.Columns.Add("Time2", typeof(DateTime));
    dataTable.Columns.Add("DoubleData2", typeof(double));
      
    for (int index = 0; index <1000; index++)
    {
        DataRow dataRow = dataTable.NewRow();
        dataRow["DoubleData"] = 21.7003078460693;
        dataRow["DoubleData2"] = 21.7003078460693 + 10;
        dataRow["Time"] = DateTime.Now.AddSeconds(index);
        dataRow["Time2"] = DateTime.Now.AddSeconds(index+1);
        dataTable.Rows.Add(dataRow);
    }
    return dataTable;
}


Chart Code
        radChart.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Auto;
            radChart.DefaultView.ChartArea.AxisX.IsDateTime = true;
            radChart.DefaultView.ChartArea.AxisX .DefaultLabelFormat = "hh:mm MM:ss";
            radChart.DefaultView.ChartArea.AxisX.AutoRange = true;
  
            SeriesMapping seriesMapping = new SeriesMapping();
            LineSeriesDefinition lineSeriesDefinition = new LineSeriesDefinition();
            ItemMapping YItem = new ItemMapping("DoubleData", DataPointMember.YValue);
            ItemMapping XItem = new ItemMapping("Time", DataPointMember.XValue);
            seriesMapping.LegendLabel = "1";
            lineSeriesDefinition.ShowItemLabels = false;
            lineSeriesDefinition.ShowPointMarks = false;
            seriesMapping.SeriesDefinition = lineSeriesDefinition;
            seriesMapping.ItemMappings.Add(YItem);
            seriesMapping.ItemMappings.Add(XItem);
            lineSeriesDefinition.ShowItemToolTips = true;    
            radChart.SeriesMappings.Add(seriesMapping);
              
            SeriesMapping seriesMapping2 = new SeriesMapping();
            LineSeriesDefinition lineSeriesDefinition2 = new LineSeriesDefinition();
            ItemMapping YItem2 = new ItemMapping("DoubleData2", DataPointMember.YValue);
           ItemMapping XItem2 = new ItemMapping("Time2", DataPointMember.XValue);
            seriesMapping2.LegendLabel = "2";
            lineSeriesDefinition2.ShowItemLabels = false;
            lineSeriesDefinition2.ShowPointMarks = false;
            lineSeriesDefinition2.ItemLabelFormat = "mm:dd hh:MM:ss";
            seriesMapping2.SeriesDefinition = lineSeriesDefinition2;
            seriesMapping2.ItemMappings.Add(YItem2);
            seriesMapping2.ItemMappings.Add(XItem2);
            radChart.SeriesMappings.Add(seriesMapping2);
  
  
  
            radChart.ItemsSource = GetDataTable(); <-- Error

Error
No generic method 'Average' on type 'System.Linq.Enumerable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic.

What should I do?
Emily
Top achievements
Rank 1
 answered on 21 Oct 2010
4 answers
165 views
Hello All,

    Is Telerik planning on completing the AutomationPeer implementations of these two controls?  The current implementation returns null for both control's OnCreateAutomationPeer() methods. 

- Rashad Rivera
  Omegus Prime, LLC
Rashad Rivera
Top achievements
Rank 1
 answered on 20 Oct 2010
5 answers
455 views
Hi

I wanted to set the default DateTimeWatermarkContent for RadDatePicker from Style. At first it seemed not working (the default "Enter date" text appeared), later I have defined the property for each RadDatePicker manually and later removed these manual overrides for some reason. Surprisingly, the Style definition seemed to work now, but only in Visual Studio (I could even change the default value and the designer followed the changes). However, when I have run the application, my style definition was not used ("Enter date", again). Even stranger that from this point on, the designer "forgot" to use the style again as well.

What am I doing wrong? It is possible to set this property from Style?

My code:

 <Window.Resources>
        <ResourceDictionary>
            <Style TargetType="telerik:RadDatePicker">
                <Setter Property="Culture" Value="hu-HU" />
                <Setter Property="MinWidth" Value="100" />
                <Setter Property="VerticalAlignment" Value="Center"/>
                <Setter Property="DateTimeWatermarkContent" Value=""/>
            </Style>
        </ResourceDictionary>
    </Window.Resources>
...
<telerik:RadDatePicker Grid.Column="1" Grid.Row="0"></telerik:RadDatePicker>
<telerik:RadDatePicker  Grid.Column="1" Grid.Row="2"></telerik:RadDatePicker>
...

Any ideas?

Thanks for the help in advance!


Gergely
Top achievements
Rank 1
 answered on 20 Oct 2010
1 answer
261 views
Hello,

     I wanted to make a suggestion for your next release of RadWindow.  When it is active in a modal state (i.e. prompt or ShowDialog), it does not behave as one would expect.  The Tab, Control, and Directional navigation does not operate in a manner that the customer would expect.  If you go to your online demo, activate one of the Prompt samples.  Than place focus in the address bar and start tabbing.  You will notice that the controls behind the prompt get keyboard focus as well as Control and Navigation focus.

      It would be great if your prompt was the only thing a user can focus to.  I don't have to tell you how much of a problem this is in the case of protected (meaning that if I wanted a user to do something before gaining access to the main application a user can bybass my prompt and interact with the protected controls). 

- Rashad Rivera
George
Telerik team
 answered on 20 Oct 2010
2 answers
138 views
Hi, i've got a problem.
in my project i've a class like this :

 

 

 

 

public class Progetto
   {
       public Progetto()
       {
           ID = 0;
           Descrizione = String.Empty;
           Stringhe = new ObservableCollection<Stringa>();
           Sprites = new ObservableCollection<Sprite>();
       }
       public int ID { set; get; }
       public String Descrizione { set; get; }
       public ObservableCollection<Stringa> Stringhe { set; get; }
       public ObservableCollection<Sprite> Sprites { set; get; }
   }

In my RadTree i'd like to see  under the root node (Progetto) the two items "stringhe" and "sprites". I Tried with HierarchicalDataTemplate but with no result because under the root node i can only see "Stringhe" or "Sprites"... how to see that together ?? :

 

 

 here my Hierrarchical..

<HierarchicalDataTemplate x:Key="Stringa">
             
           <StackPanel Orientation="Horizontal">
               <TextBlock Text="{Binding Ciao}" Foreground="Black" FontWeight="Bold" FontSize="12" />
               <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" />
           </StackPanel>
       </HierarchicalDataTemplate>
       <HierarchicalDataTemplate x:Key="Sprite">
           <StackPanel Orientation="Horizontal">
               <TextBlock Text="{Binding ID}" Foreground="Black" FontWeight="Bold" FontSize="12" />
               <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" />
           </StackPanel>
       </HierarchicalDataTemplate>
 <HierarchicalDataTemplate x:Key="Progetti" ItemsSource="{Binding Stringhe}"
                                 ItemTemplate="{StaticResource Stringa}">
           <StackPanel Orientation="Horizontal" >
               <TextBlock Text="{Binding ID}" Foreground="Black" FontWeight="Bold" FontSize="12" />
               <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" />
           </StackPanel>
       </HierarchicalDataTemplate>

Any Idea.. THANX IN ADVANCE

Claudio
Top achievements
Rank 1
 answered on 20 Oct 2010
1 answer
95 views
Hello,
is it possible to use Telerik controls without theme eq. mixing standard SL controls with Telerik's?
 
Teleriks themes is nice, but some conservative customers like old win32 application (Windows 98/2000 gray canvas).

How to use Telerik DataGrid with native Silverlight Button in one place?

Thanks
Kalin Milanov
Telerik team
 answered on 20 Oct 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?