Telerik Forums
UI for WPF Forum
1 answer
112 views

Hello,

I am really hoping that someone can help me. I am new to the Telerik controls and am having an issue with the saving of the layout of a RadDocking control when it is embedded within a RadTabControl's ContentTemplate.

I am saving the layout to a file so I can verify that it is being formatted correctly, however the SerializationTags are not getting output to the file.

Here is a snippet of the XAML to show that I am setting the SerializationTag for my RadDocumentPane:

 

 

 

 

<telerikNavigation:RadTabControl.ContentTemplate>  

 

<DataTemplate>  

 

<Grid>  

 

<radDock:RadDocking x:Name="ResultDocuments" Background="Transparent"

 

 

<radDock:RadDocking.DocumentHost>

 

 

 

 

<radDock:RadSplitContainer SizeChanged="SplitContainer_SizeChanged" >

 

 

 

 

<radDock:RadPaneGroup Name="RadDocumentGroup" Background="Transparent"

 

 

 

                                           radDock:RadDocking.SerializationTag="DocumentGroup">

 

 

 

 

<radDock:RadDocumentPane

 

 

 

                            DataContext="{Binding DataContext,ElementName=ResultDocuments}"

 

 

 

                            Margin="0,0,0,-5" Name="DocumentPane" Title="Documents"

 

 

 

                            radDock:RadDocking.SerializationTag="DocumentPane"

 

 

 

                            HorizontalContentAlignment="Left" CanUserClose="False">

 

 

 

 


Here is a snippet of the output file I am getting:

 

 

 

  <RadDocking>
  <DocumentHost>
  <RadSplitContainer>
  <Items>
  <RadPaneGroup SelectedIndex="0">
  <Items>
  <RadDocumentPane IsDockable="True" Header="Documents" />
  </Items>
  </RadPaneGroup>
  </Items>
  </RadSplitContainer>
  </DocumentHost>

 

 

 

 

Tracy
Top achievements
Rank 1
 answered on 27 Sep 2010
4 answers
766 views
It is necessary to find a specific named element in the CellTemplate of a GridViewColumn.

There is a GridViewColumn defined like this:

<GridViewColumn Header="column 1">
     <GridViewColumn.CellTemplate>
          <DataTemplate>
               <TextBox x:Name="txtcontent"/>
          </DataTemplate>
     </GridViewColumn.CellTemplate>
</GridViewColumn>

It is possible to find an element in a DataTemplate by getting the ContentPresenter where the DataTemplate is applied, and using the FindName method of the DataTemplate to find a specific element.

DataTemplate celltemplate = column.CellTemplate;
ContentPresenter contentpresenter = ...
TextBox txtbox = (TextBox)celltemplate.FindName("txtcontent", contentpresenter);

How can you find the ContentPresenter where the GridViewColumn CellTemplate is applied?
Adam Clark
Top achievements
Rank 1
 answered on 27 Sep 2010
3 answers
266 views
Hi,

I have a situation which my legend text are long. I want to identify the series by placing a text label on the chart area to act as legend. Is there anyway to do that?

Thanks
Evgenia
Telerik team
 answered on 27 Sep 2010
1 answer
191 views
Hi I just ran the Rad Map ItemsVirtualization example from the demo code and I notice certain sluggishness when running the map. Looking at the output window of Visual studio I've noticed a large amount of the errors

A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Any idea why are those thrown?
And also if I increase the density of the grid like the next line of code

 this.dynamicLayer.ZoomGridList.Add(new ZoomGrid(2 << 13, 2 << 13, 13));
the number of the errors increases tremendously.
EDIT>> I looked more into the call stack and this is the error thrown




System.ArgumentOutOfRangeException occurred Message=The added or subtracted value results in an un-representable DateTime.
Parameter name: t
  Source=mscorlib
  ParamName=t
  StackTrace:
       at System.DateTime.op_Addition(DateTime d, TimeSpan t)
  InnerException:

 

Andrey
Telerik team
 answered on 27 Sep 2010
3 answers
163 views
public static bool DisplayInfoMessage1(string strMsg)
        {
           if (MessageBox.Show(strMsg, mstrProjectName, MessageBoxButtons.YesNo, MessageBoxIcon.Information) == DialogResult.Yes)
            {
                return true;
            }
            else
            {
                return false;
            }       
        }

I want to do this using the RadWindow.Confirm box Please Help I try it any times but cannot done it


RadWindow.Confirm(strMsg, new EventHandler<WindowClosedEventArgs>(OnClosed));        can not write inside static Method

private void OnClosed(object sender, WindowClosedEventArgs e)
        {
            
            if (e.DialogResult == true)
            {
                ConfirmationStatus = true;
            }
            else
            {
                ConfirmationStatus = false;
            }
        }
 
ConfirmationStatus  is Public Boolean value.
Miroslav Nedyalkov
Telerik team
 answered on 27 Sep 2010
3 answers
178 views
Hi,
I have created a RadGridView with HierarchyChildTemplate, this template contains DataTemplate which contains RadGridView.
I was wondering how can i get to this RadGridView (inside my template) from code, because I would like to get all selected items in this RadGridView.
Sam Ur
Top achievements
Rank 2
 answered on 27 Sep 2010
1 answer
106 views
Hi,

I have a SumFuncion in my gridviewThis summing all the column values.

I need that when the total sum is negative it appears on screen 0.

Can you help me?

Thanks,
Alexandre Rodrigues
Maya
Telerik team
 answered on 27 Sep 2010
2 answers
76 views
I have a master/detail hierarchy implementation (see attached picture).

I have coded to RowLoaded event to set GridViewRow.IsExpandable = false for master rows whose detail collection is empty.  I wanted to visually show that there were no associated details, and save the user from clicking on the (+) expander control needlessly.  I have set ShowInsertRow="True", and my preference is to keep ShowInsertRow="False".  Instead, I would like to have a button (elsewhere in the UI) to call the BeginInsert() method.  However, how do I target the detail level - particularly if the master row has an empty detail collection?
Wellpartner
Top achievements
Rank 1
 answered on 25 Sep 2010
1 answer
179 views
Hi!

I have a grid which has another grid in its row details. Both grids should have a context menu, however, if I right-click in the row details grid, it shows me the context menu of the parent grid. Is there a way to have it show the child grid's context menu when right-clicking on the child?
Veselin Vasilev
Telerik team
 answered on 24 Sep 2010
3 answers
147 views
Hi!

After I load my data in my bounded list, I'm doing an "ExpandAll" on my tree, but nothing is expanding. Why?

Thank you
Petar Mladenov
Telerik team
 answered on 24 Sep 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?