Telerik Forums
UI for WPF Forum
2 answers
111 views
How exactly do I achieve this? I tried the snippet below but no luck at all. I always get a smaller value for the width.

        private void gridView_DataLoading(object sender, Telerik.Windows.Controls.GridView.GridViewDataLoadingEventArgs e)
        {
            double width = 0;
 
            foreach (var col in gridView.Columns)
            {
                // None of these gives me the desired value
                //width += col.ActualWidth;
                //width += col.Width.DisplayValue;
                //width += col.Width.Value;
            }
 
            gridView.Width = width;
        }
swarmttied
Top achievements
Rank 1
 answered on 25 Jan 2012
2 answers
287 views

Hi,

In my project, I have to create GridViewDataColumn for my RadGridView dynamically. When I finish creating my columns, I load data into my grid but the sort, filter and the grouping doesn't work :( I cannot see my filter button and if I try to drag a column header into the group panel, nothing happen.

Here is in my grid:

<telerik:RadGridView x:Name="radGridViewList" Margin="5 0 5 5" Visibility="Visible" RowDetailsVisibilityMode="Collapsed" FrozenColumnCount="1"

RowIndicatorVisibility="Collapsed" IsReadOnly="True" AutoGenerateColumns="False" CanUserFreezeColumns="False" Grid.Row="3"

CanUserResizeColumns="True" ShowColumnFooters="True" ShowGroupFooters="True" SelectionMode="Extended" IsSynchronizedWithCurrentItem="True" />

 

here is the code-behind:

static public void SetColumns(RadGridView pGrid, ColumnDescriptor[] pColumnNames)

{

if (pColumnNames != null)

{

SortedList<int, GroupDescriptor> grouping = new SortedList<int, GroupDescriptor>();

for (int iColumnIndex = 0; iColumnIndex < pColumnNames.Length; iColumnIndex++)

{

ColumnDescriptor oneName = pColumnNames[iColumnIndex];

Telerik.Windows.Controls.GridViewDataColumn oneColumn = new Telerik.Windows.Controls.GridViewDataColumn();

oneColumn.Header = oneName.ColumnName;

//Apply proper column display format.

switch (oneName.Format.ToUpper())

{

case "$":

oneColumn.DataFormatString = "C2";

break;

case "D":

oneColumn.DataFormatString = "yyyy'-'MM'-'dd";

break;

case "H":

oneColumn.DataFormatString = "HH':'mm";

break;

case "DH":

oneColumn.DataFormatString = "yyyy'-'MM'-'dd' 'HH':'mm";

break;

}

oneColumn.Width = new GridViewLength(1, GridViewLengthUnitType.Star);

oneColumn.ShowFilterButton = true;

oneColumn.IsSortable = true;

oneColumn.IsFilterable = true;

oneColumn.IsGroupable = true;

oneColumn.DataMemberBinding = new Binding(string.Format("ElementCells[{0:D}]", iColumnIndex));

oneColumn.TextAlignment = (TextAlignment)oneName.TextAlignment;

oneColumn.HeaderTextAlignment = (TextAlignment)oneName.TextAlignment;

//Create proper aggregate functions.

if (oneName.Agregation != AgregationFunction.None)

{

AddAggregateToColumns(ref oneColumn, oneName, string.Format("ElementCells[{0:D}]", iColumnIndex));

}

//Grouping field.

if (oneName.GroupingPosition != 0)

{

grouping.Add(Math.Abs(oneName.GroupingPosition),

new GroupDescriptor { DisplayContent = oneName.ColumnName, Member = string.Format("ElementCells[{0:D}]", iColumnIndex),

SortDirection = oneName.GroupingPosition > 0 ? ListSortDirection.Ascending : ListSortDirection.Descending});

}

//Add the column to the grid.

pGrid.Columns.Add(oneColumn);

}

//If grouping exist, add it to the grid.

if (grouping.Count != 0)

{

foreach (KeyValuePair<int, GroupDescriptor> oneGrouping in grouping)

{

pGrid.GroupDescriptors.Add(oneGrouping.Value);

}

}

}

}

Thank's

Oliver
Top achievements
Rank 1
 answered on 25 Jan 2012
1 answer
622 views
Hi
I'm creating a GridView with a large number of data records.
I'm unable to use the vertical scroll bar, even when I make it visible, it's still disabled.
The horizontal scroll bar becomes visible (and enabled) when I make the window narrow enough.
I've also been unable to link the RadDataPager to the RadGridView.
I wasn't able to find any answer while searching the forums for similar issues.
Thanks


Code : 


        public MainWindow()
        {
            InitializeComponent();
            _productData.ItemsSource = TradeDataProvider.GetProducts();
            _radDataPager.Source = TradeDataProvider.GetProducts();
        }


Xaml :


<telerik:RadRibbonWindow 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:EQDDataAdmin="clr-namespace:aaa" 
    x:Class="aaar.MainWindow"
    Title="bbb"
    MinWidth="100"
    WindowStartupLocation="CenterScreen">
    <Grid>
        <DockPanel>
            <Grid x:Name="_TestProductsGrid" VerticalAlignment="Stretch">
                <StackPanel>
                    <telerik:RadDataPager x:Name="_radDataPager"
                          PageSize="10"
                          DisplayMode="FirstLastPreviousNextNumeric, Text"
                          IsTotalItemCountFixed="True" />
                    <telerik:RadGridView  AutoGenerateColumns="False" x:Name="_productData"
                                  VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
                                  EnableRowVirtualization="True"
                                  SelectionMode="Extended"
                                  ScrollViewer.VerticalScrollBarVisibility="Visible">
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding CompanyName}" Header="Company Name"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding CCY}" Header="Currency"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Country}" Header="Country"/>
                            <telerik:GridViewDataColumn DataMemberBinding="{Binding Region}" Header="Region"/>
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </StackPanel>
            </Grid>
            <!--<Grid x:Name="_MainGrid" SizeChanged="MainGridHightChanged"
                  Grid.Row="0" Grid.Column="0" VerticalAlignment="Top">
                <StackPanel VerticalAlignment="Stretch">
                    <EQDDataAdmin:ProductData x:Name="_ProductDataUserControl" VerticalAlignment="Stretch"/>
                </StackPanel>
            </Grid>-->
        </DockPanel>
    </Grid>
</telerik:RadRibbonWindow>


Vlad
Telerik team
 answered on 25 Jan 2012
6 answers
142 views
See attachment. The Items 'New' and 'List' also have key tips defined for them, but they seem to be showing under the keytip for 'Views' (CV, OV, & IV respectively)

How do I adjust the position of the Key tips so they can all be individually seen?
Stefan
Telerik team
 answered on 25 Jan 2012
3 answers
126 views
Hey,

For a date of birth field it would be really nice to have the first "selection" screen to go to the year view but still be able to drill down from there to an actual "day".  At the moment I have to "drill up" to the years and then go all the way down again. 

If I change the DateSelectionMode to "year" it does what I want in terms of the initial selection screen, but then I cant drill down to a day.

Is there a way to do what I want?

Thanks

Brock
Boyan
Telerik team
 answered on 25 Jan 2012
1 answer
154 views
My radchart (PieSeriesDefinition) is crashing when attempting to show 199 or more datapoints on a pie series.  Please see the error text below.  Can i use the sampling settings to avoid this error or is this a bug?  I just read about the sampling threshold default being 200, so it seemed odd that once i get near that it crashes.  I've tried to set the sampling threshold to above 200, below 200, and 0. When set to 0 (disables threshold) the crash happens when the pie chart is attempting to render.  In all other cases it crashes before render. Thanks. 

{"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. "}
   at System.Linq.Expressions.Expression.FindMethod(Type type, String methodName, Type[] typeArgs, Expression[] args, BindingFlags flags)
   at System.Linq.Expressions.Expression.Call(Type type, String methodName, Type[] typeArguments, Expression[] arguments)
   at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateMethodCallExpression(LambdaExpression memberSelectorExpression)
   at Telerik.Windows.Data.Expressions.EnumerableSelectorAggregateFunctionExpressionBuilder.CreateAggregateExpression()
   at Telerik.Windows.Data.EnumerableSelectorAggregateFunction.CreateAggregateExpression(Expression enumerableExpression)
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<ProjectionPropertyValueExpressions>b__3(AggregateFunction f)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateProjectionInitExpression()
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateAggregateFunctionsProjectionMemberBinding()
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.<CreateMemberBindings>d__0.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Dynamic.Utils.CollectionExtensions.ToReadOnly[T](IEnumerable`1 enumerable)
   at System.Linq.Expressions.Expression.MemberInit(NewExpression newExpression, IEnumerable`1 bindings)
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateSelectBodyExpression()
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.CreateResultSelectorExpression()
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilder.get_ResultSelectorExpression()
   at Telerik.Windows.Data.Expressions.GroupDescriptorExpressionBuilderBase.CreateQuery()
   at Telerik.Windows.Data.Expressions.GroupDescriptorCollectionExpressionBuilder.CreateChildQuery(GroupDescriptorExpressionBuilder childBuilder)
   at Telerik.Windows.Data.Expressions.GroupDescriptorCollectionExpressionBuilder.CreateQuery()
   at Telerik.Windows.Data.QueryableExtensions.GroupBy(IQueryable source, IEnumerable`1 groupDescriptors)
   at Telerik.Windows.Data.QueryableCollectionView.CreateView()
   at Telerik.Windows.Data.QueryableCollectionView.get_QueryableView()
   at Telerik.Windows.Data.QueryableCollectionView.CreateInternalList()
   at Telerik.Windows.Data.QueryableCollectionView.EnsureInternalList()
   at Telerik.Windows.Data.QueryableCollectionView.get_InternalList()
   at Telerik.Windows.Data.QueryableCollectionView.EnsureRootGroup()
   at Telerik.Windows.Data.QueryableCollectionView.get_RootQCVGGroup()
   at Telerik.Windows.Data.QueryableCollectionView.GroupedIndexOf(Object item)
   at Telerik.Windows.Data.QueryableCollectionView.InternalIndexOf(Object item)
   at Telerik.Windows.Data.QueryableCollectionView.TryRestorePreviousCurrency()
   at Telerik.Windows.Data.QueryableCollectionView.InitializeCurrencyOnRefresh()
   at Telerik.Windows.Data.QueryableCollectionView.RefreshOverride()
   at Telerik.Windows.Data.QueryableCollectionView.RefreshInternal()
   at Telerik.Windows.Data.QueryableCollectionView.RefreshOrDefer()
   at Telerik.Windows.Data.QueryableCollectionView.InvalidatePagingAndRefresh()
   at Telerik.Windows.Data.QueryableCollectionView.OnGroupDescriptorsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.RadObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at Telerik.Windows.Data.ObservableItemCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
   at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
   at Telerik.Windows.Data.RadObservableCollection`1.InsertItem(Int32 index, T item)
   at System.Collections.ObjectModel.Collection`1.Add(T item)
   at Telerik.Windows.Controls.Charting.DataBindingHelper.PerformSampling(QueryableCollectionView dataEngine, Int32 samplingThreshold, IEnumerable`1 samplingFunctions)
   at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessNoGrouping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState)
   at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMapping(SeriesMapping seriesMapping, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState)
   at Telerik.Windows.Controls.Charting.DataBindingHelper.ProcessMappings(SeriesMappingCollection seriesMappings, QueryableCollectionView dataEngine, Int32 samplingThreshold, ZoomScrollSettings zoomScrollSettings, ISeriesDefinition defaultSeriesDefinition, AxisRangeState axisXRangeState)
   at Telerik.Windows.Controls.Charting.DataBindingHelper.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ISeriesDefinition defaultSeriesDefinition, ChartFilterDescriptorCollection globalFilterDescriptors, ChartSortDescriptorCollection globalSortDescriptors, SamplingSettings samplingSettings, ZoomScrollSettings zoomScrollSettings, AxisRangeState axisXRangeState)
   at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData, SeriesMappingCollection seriesMappings, ChartArea chartArea)
   at Telerik.Windows.Controls.RadChart.GenerateDataSeries(Object originalData)
   at Telerik.Windows.Controls.RadChart.Rebind(Object originalData)
   at Telerik.Windows.Controls.RadChart.Rebind()
   at Telerik.Windows.Controls.RadChart.InternalRebind()
   at Telerik.Windows.Controls.RadChart.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Primitives.UniformGrid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Viewbox.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ScrollContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.ScrollViewer.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Grid.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Border.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.Controls.Page.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
   at System.Windows.Controls.ContentPresenter.MeasureOverride(Size constraint)
   at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
   at System.Windows.UIElement.Measure(Size availableSize)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
   at System.Threading.ExecutionContext.runTryCode(Object userData)
   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   at System.Windows.Window.ShowHelper(Object booleanBox)
   at System.Windows.Window.Show()
   at System.Windows.Window.ShowDialog()
   at sherpaSoftware.ConsoleWpf.Console.Show() in D:\SVN\ReportAttender\SharedLibs\sherpaSoftware.ConsoleWPF\ConsoleWpf\Console.vb:line 337
   at sherpaSoftware.raConsole.appEntryPoint.ApplicationStartUp() in D:\SVN\ReportAttender\Console\raConsole\app.EntryPoint.vb:line 68
   at sherpaSoftware.raConsole.appEntryPoint.Main(String[] aParams) in D:\SVN\ReportAttender\Console\raConsole\app.EntryPoint.vb:line 28
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()
Evgenia
Telerik team
 answered on 25 Jan 2012
1 answer
69 views
Hello!

We have the following issue:

- Main form contents updates frequently (e.g. it's not static)
- There is AutoHide pane which is opened. This pane flickers and background (e.g. content of main window) is visible for a moment.

This problem is specific for Windows XP only. It's not reproduced in Win7 environment. Your help is required.
Boyan
Telerik team
 answered on 25 Jan 2012
3 answers
104 views
Is it possible to scroll bar on RadChart (not to chart area)
I want to show 16 charts in grid (4x4). All charts has one XValue (datetime).
Want to have only one scroll bar to scroll all charts in grid.
Can you suggest best way to achieve this ?

Attaching screen shot of legacy system. Trying to achieve similar using RadChart 
Petar Marchev
Telerik team
 answered on 25 Jan 2012
1 answer
201 views
Hi,

I am having a very hard time finding the right documentation/example on how to override the default formatting/css that is occurring in a RichTextBox that is loaded with HTML.

I have already found and tweaked the appropriate settings to make the HTML a fragment, but for the life of me I can't seem to figure out how to declare the css that I would liked applied to the HTML within the RichTextBox.

A perfect example is I need the following css to be applied to the HTML content.

<style type="text/css">
ol {
    list-style-type: upper-roman;
}

ol ol {

    list-style-type: upper-alpha;
}
outline.css (line 5) 

 ol ol ol {
    list-style-type: decimal;
}
</style>

Any help would be greatly appreciated.
Iva Toteva
Telerik team
 answered on 25 Jan 2012
3 answers
129 views
Hello!

  I'm trying to detect when a pane (radPane1) is docked into a PaneGroup with another pane (radPane2).  I thought I could do this:

        private void radDocking1_PaneStateChange(object senderTelerik.Windows.RadRoutedEventArgs e)
        {
            var somePane = e.OriginalSource as RadPane;
            if (somePane == radPane1 && !somePane.IsFloating && radPane1.PaneGroup == radPane2.PaneGroup)
                   HandleDockEvent();
        }

...but it seems the PaneGroup is not set at this point in time, and hence that comparison fails.  How can I do this?

Konstantina
Telerik team
 answered on 25 Jan 2012
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
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
PasswordBox
SplashScreen
Callout
Rating
Accessibility
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?