Telerik Forums
UI for WPF Forum
10 answers
539 views
How do I control the tile position (row,column)?

Max number of rows, columns?

Thanks,

Ed
Maya
Telerik team
 answered on 26 Nov 2014
3 answers
127 views
Hello Telerik-Team,

is it possible to display the start- and enddate outside (left- and right aligned) at a ganttbar?
I have attached a sample screenshot.

Best regards,
Richard

Vladi
Telerik team
 answered on 26 Nov 2014
3 answers
207 views
I have a grid that has several Date Time columns. The value in these columns is dependent towards the time and not so much the date. When I go into the filter and enter a date and a time the filter does not accept this value and clears the field when I tab out or click somewhere else. However if I only enter a date and no time it will accept that filter. How do I get the filter to accept the time value as well?
Dimitrina
Telerik team
 answered on 26 Nov 2014
6 answers
327 views
Hello,

I want to implement some functionnalities using chartview. Let me explain :
- i have a chartview with one horizontal axis as DateTimeContinousAxis and some vertical axis
- i want to implement the zoom, it's ok, following code that i'm using :

<telerik:RadCartesianChart x:Name="chartVariables" ... Zoom="{Binding Zoom, Mode=TwoWay}"
PanOffset="{Binding PanOffset, Mode=TwoWay}" >
<telerik:RadCartesianChart.Behaviors>
<telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="None" />
</telerik:RadCartesianChart.Behaviors>
</telerik:RadCartesianChart>


- Using a toggle button, on check, i want to make a selection like zoom on the chart, get start date and end date and cancel the zoom
 but some problems occurs:
- The end date that i'm retrieving is wrong but the start date is ok

To do that i implemented the PanOffsetChanged event and i wrote the following code :

private void chartVariables_PanOffsetChanged(object sender, ChartPanOffsetChangedEventArgs e)
{
     if ((bool)this.btnInvalidate.IsChecked)
     {               
          DateTimeContinuousAxis axis = chartVariables.HorizontalAxis as DateTimeContinuousAxis;
                    
          DateTime startDate = axis.ActualVisibleRange.Minimum; // value is ok
          DateTime endDate = axis.ActualVisibleRange.Maximum;   // wrong
                     
          tbLog.Text = "From : " + startDate.ToString() + " - To : " + endDate.ToString();
                     
          chartVariables.Zoom = oldZoom;                // cancel the zoom
      }           
}


Anybody can help me?
Thanks in advance
Regards

Christophe Bienaime
Top achievements
Rank 1
 answered on 25 Nov 2014
5 answers
701 views
Hi,

I have an application in which we are using the RadTabControl with prism framework, and also we are doing a switching of themes in our application. We are switching between 3 Telerik themes (Office 2013, Visual Studio 2013 and Windows 8).

I face the following issues:
The tab headers do not come correctly, if i try to set it with the RadTabControl ItemTemplate property, but my theme switching works fine.
The tab headers come correctly, if i try to set it with the RadTabItem HeaderTemplate property, but my theme switching thereafter doesn't work correctly.
Also, can you please explain the difference between the RadTabControl's ItemTemplate property and the RadTabItem's HeaderTemplate property. My tab header comes fine when set the RadTabItem HeaderTemplate property, but not with the RadTabControl ItemTemplate property. The tabs have a TabItemStyle in the resource dictionaries- using which we inserted a close button into each tab.

I am also attaching a sample image showing the theme issue I am facing. 

Please guide me as to how I can do both, i.e., show the tab header as i require (An image, a text and a close button) and also work correctly when toggling between themes.

Thanks.
Pavel R. Pavlov
Telerik team
 answered on 25 Nov 2014
5 answers
298 views
I have a RadPaneGroup that hosts multiple RadPanes, Each RadPane contains a User Control, Each UserControl is very simple just some text boxes, I am having problem with keeping the key board focus when user switches between RadPanes.

-  After starting the application, there are 2+ radpanes
-  Click on a text box in first rad pane
- Switch to the next Rad Pane
- go back to the first rad pane
- I would expect that the key board focus is on the last text box that i clicked
- The focus is no on any control on the first rad pane

Thanks
vikas
Vladi
Telerik team
 answered on 25 Nov 2014
4 answers
141 views
My modified built-In theme OfficeBlack no longer works after upgrading
to Q1 2013. Anyone else with this problem?
Dyanko
Telerik team
 answered on 25 Nov 2014
3 answers
186 views
Is it possible to import a Table from RadSpreadsheet like MS Word form MS Excel?

Until now it seems to me, that I only can import it as Plaintext. So the backgroundcolor, etc. goes lost.

Thanks in advance.
Torsten
Nikolay Demirev
Telerik team
 answered on 25 Nov 2014
8 answers
257 views
Hello, thank you for your last help. I still have a last question to my evaluation related to the gantt control.
Is there a possibility to get the tree-column expanded event in code behind? The goal is to load huge data on demand when
e.g. summary task is expanding on table side. For us this is a very important feature and basically neccessary.
Are there any plans or possibilitys to resolve this issue for our requirements?

Best Regards ... Robert
Kalin
Telerik team
 answered on 25 Nov 2014
1 answer
304 views
I am using telerik:RadGridView along with telerik:RadContextMenu.ContextMenu to generate a right click menu inside my application. I need to be able to grab the servername and session id from the selected row in order to pass to the Disconnect and Logoff functions. However I ma having difficulty grabbing the data I need.

Here is the XAML for the component

<telerik:RadGridView  x:Name="UserSessionGrid" IsReadOnly="True" FontWeight="Bold" AutoGeneratingColumn="UserSessionGrid_AutoGeneratingColumn"  CanUserResizeColumns="False" CanUserDeleteRows="False" CanUserResizeRows="False" ClipboardCopyMode="All" Copied="UserSessionGrid_Copied" >
   <telerik:RadContextMenu.ContextMenu>
     <telerik:RadContextMenu Opened="RadContextMenu_Opened" ItemClick="RadContextMenu_ItemClick">
      <telerik:RadContextMenu.Items>
        <telerik:RadMenuItem Header="Copy" />
        <telerik:RadMenuItem Header="Disconnect" />
        <telerik:RadMenuItem Header="Logoff" />
      </telerik:RadContextMenu.Items>
    </telerik:RadContextMenu>
  </telerik:RadContextMenu.ContextMenu>
</telerik:RadGridView>

Here is the relevant code that handles the Right Click

/// <summary>
/// Handles the ItemClick event of the RadContextMenu control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="Telerik.Windows.RadRoutedEventArgs"/> instance containing the event data.</param>
private void RadContextMenu_ItemClick(object sender, Telerik.Windows.RadRoutedEventArgs e)
{
  RadContextMenu menu = (RadContextMenu)sender;
  RadMenuItem clickedItem = e.OriginalSource as RadMenuItem;
  GridViewRow row = menu.GetClickedElement<GridViewRow>();
  GridViewCell cell = menu.GetClickedElement<GridViewCell>();
  GridViewRowItem rowitem = menu.GetClickedElement<GridViewRowItem>();
  if (clickedItem != null && row != null)
  {
    string header = Convert.ToString(clickedItem.Header);
 
     switch (header)
     {
       case "Copy":
         Clipboard.SetText(cell.Value.ToString());
         break;
       case "Disconnect":
         // Grab Server Name Column and Session ID Column Data
         break;
       case "Logoff":
         // Grab Server Name Column and Session ID Column Data
         break;
       default:
         break;
    }
  }
}
/// <summary>
/// Handles the Opened event of the RadContextMenu control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="RoutedEventArgs"/> instance containing the event data.</param>
private void RadContextMenu_Opened(object sender, RoutedEventArgs e)
{
  RadContextMenu menu = (RadContextMenu)sender;
  GridViewRow row = menu.GetClickedElement<GridViewRow>();
 
  if (row != null)
  {
    row.IsSelected = row.IsCurrent = true;
    GridViewCell cell = menu.GetClickedElement<GridViewCell>();
    if (cell != null)
    {
      cell.IsCurrent = true;
    }
  }
  else
  {
    menu.IsOpen = false;
  }
}

Here is my session class

class Session
{
    public String Server { get; set; }
    public String Domain { get; set; }
    public String User { get; set; }
    public int sID { get; set; }
    public ConnectionState State { get; set; }
    public IPAddress IP { get; set; }
    public String Workstation { get; set; }
    public DateTime? Connect { get; set; }
    public DateTime? Login { get; set; }
    public TimeSpan Idle { get; set; }
    /// <summary>
    /// Initializes a new instance of the <see cref="Session"/> class.
    /// </summary>
    /// <param name="server">The server.</param>
    /// <param name="domain">The domain.</param>
    /// <param name="user">The user.</param>
    /// <param name="session">The session.</param>
    /// <param name="state">The state.</param>
    /// <param name="ip">The ip.</param>
    /// <param name="workstation">The workstation.</param>
    /// <param name="connect">The connect.</param>
    /// <param name="login">The login.</param>
    /// <param name="idle">The idle.</param>
    public Session (string server, string domain, string user, int session, ConnectionState state, IPAddress ip, string workstation, DateTime? connect, DateTime? login, TimeSpan idle)
    {
        this.Server = server.ToUpper();
        this.Domain = domain.ToUpper();
        this.User = user;
        this.sID = session;
        this.State = state;
        this.IP = ip;
        this.Workstation = workstation.ToUpper();
        this.Connect = connect;
        this.Login = login;
        this.Idle = idle;
    }
}

Which is populated by using the following code

/// <summary>
 /// Handles the DoWork event of the worker control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="DoWorkEventArgs"/> instance containing the event data.</param>
 private void worker_DoWork(object sender, DoWorkEventArgs e)
 {
   App.Current.Dispatcher.Invoke((Action)delegate
   {
     UserSessionGrid.IsBusy = true;
   });
   ITerminalServicesManager manager = new TerminalServicesManager();
   foreach (var ServerName in ServerList)
   {
     using (ITerminalServer server = manager.GetRemoteServer(ServerName))
     {
     try
     {
       server.Open();
       foreach (ITerminalServicesSession session in server.GetSessions())
       {
         items.Add(new Session(server.ServerName, session.DomainName, session.UserName, session.SessionId, session.ConnectionState, session.ClientIPAddress, session.WindowStationName, session.ConnectTime,session.LoginTime, session.IdleTime));
         //worker.ReportProgress(session.SessionId);
       }
       server.Close();
 
     }
     catch (Win32Exception) { }
     catch (SystemException) { }
     catch (Exception) { }
     }
   }
 }
Chris
Top achievements
Rank 1
 answered on 25 Nov 2014
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
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?