Dear Telerik support team,
I would to customize the style of TileViewItem in order make the content when maximizing overlap the other control (it doesn't take spaces of other controls in my screen when maximizing).
Would you please help to style it?
Below is my current xaml:
01.
<
telerik:RadTileView
x:Name
=
"TitleView"
02.
RowHeight
=
"{Binding HeightConcept, UpdateSourceTrigger=PropertyChanged}"
ColumnWidth
=
"{Binding WidthConcept, UpdateSourceTrigger=PropertyChanged}"
03.
Width
=
"{Binding MaximizedWidthConcept, UpdateSourceTrigger=PropertyChanged}"
04.
MaxHeight
=
"{Binding MaximizedHeightConcept, UpdateSourceTrigger=PropertyChanged}"
MinimizedRowHeight
=
"Auto"
05.
MinHeight
=
"0"
06.
ColumnsCount
=
"1"
RowsCount
=
"1"
07.
MaximizeMode
=
"ZeroOrOne"
ScrollViewer.CanContentScroll
=
"False"
08.
DragMode
=
"{Binding ElementName=dragMode, Path=SelectedItem}"
IsItemsSizeInPercentages
=
"True"
09.
PreservePositionWhenMaximized
=
"True"
10.
telerik:TileViewPanel.IsColumnsShrinkEnabled
=
"True"
11.
telerik:TileViewPanel.IsRowsShrinkEnabled
=
"False"
telerik:TileViewPanel.IsSizeBoundToPosition
=
"False"
12.
HeaderStyle
=
"{StaticResource TileItemHeaderStyle}"
13.
ItemTemplate
=
"{StaticResource HeaderCustomTemplate}"
14.
ItemsSource
=
"{Binding Items}"
15.
TileStateChanged
=
"TitleView_TileStateChanged"
16.
Background
=
"Transparent"
17.
>
18.
<
telerik:RadFluidContentControl
x:Name
=
"FluidControl"
ContentChangeMode
=
"Manual"
State
=
"Large"
19.
TransitionDuration
=
"0:0:.1"
Height
=
"Auto"
Background
=
"Transparent"
>
20.
<
telerik:RadFluidContentControl.Content
>
21.
<
Grid
></
Grid
>
22.
</
telerik:RadFluidContentControl.Content
>
23.
<
telerik:RadFluidContentControl.LargeContent
>
24.
<
telerik:RadMultiColumnComboBox
x:Name
=
"MultiColumCombo1"
Width
=
"{Binding SearchBoxWidth, UpdateSourceTrigger=PropertyChanged}"
25.
MinWidth
=
"0"
MinHeight
=
"0"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
26.
DisplayMemberPath
=
"{Binding GridItem.ThirdFullName}"
27.
DropDownMinWidth
=
"{Binding DropDownMinWidthConcept, UpdateSourceTrigger=PropertyChanged}"
28.
DropDownMaxWidth
=
"{Binding DropDownMaxWidthConcept, UpdateSourceTrigger=PropertyChanged}"
29.
SearchMode
=
"MatchAnyTerm"
30.
SelectionMode
=
"Multiple"
AutoCompleteMode
=
"Search"
31.
SelectionBoxesVisibility
=
"Visible"
32.
SelectionBoxStyle
=
"{StaticResource SelectionBoxCustomStyle}"
33.
NullText
=
"..."
34.
DropDownPlacement
=
"Bottom"
FooterVisibility
=
"Visible"
35.
FooterContentTemplate
=
"{StaticResource FooterCheckBoxTemplate}"
36.
CloseDropDownAfterSelectionInput
=
"True"
37.
GotFocus
=
"MultiColumCombo1_GotFocus"
>
38.
<
telerik:RadMultiColumnComboBox.ItemsSourceProvider
>
39.
<
telerik:GridViewItemsSourceProvider
x:Name
=
"ItemsSourceProviderGrid1"
40.
ItemsSource
=
"{Binding DataSource, Mode=TwoWay}"
41.
ShowColumnHeaders
=
"True"
42.
RowIndicatorVisibility
=
"Collapsed"
43.
AutoGenerateColumns
=
"False"
44.
>
45.
</
telerik:GridViewItemsSourceProvider
>
46.
</
telerik:RadMultiColumnComboBox.ItemsSourceProvider
>
47.
</
telerik:RadMultiColumnComboBox
>
48.
</
telerik:RadFluidContentControl.LargeContent
>
49.
</
telerik:RadFluidContentControl
>
50.
</
telerik:RadTileView
>
Hello,
When setting the Layer property by code, it works as expected. But, when a layer is selected by the user, the Layer property doesn't change!
Hello,
Typing characters with switching IME input mode will crash your RichTextBox sample application.
In 2017.2.614 the process is killed and in 2020.1.115 an exception is thrown.
Could you tell us a solution to this problem?
Also, do you plan to fix your components for this problem?
Reproduction steps:
1. Start editing rich text
2. Switch IME input mode to Hiragana
3. Switch IME input mode to AlphanumericHalfWidth
4. Enter "," (comma) by key operation
5. Switch IME input mode to Hiragana
6. Enter any characters by key operation
⇒ The application crashes
Exception information:
Value cannot be null.
Parameter name: insertIMETextCommandContext
Best regards,
Hello Admin,
I am now using RadCartesianChart's LineSeries to show tooltip. But when loading massive amount of data about 18866 record, UI becomes very slow to show tooltips and finally becomes freeze. Could you please help me how to solve this issue? Thanks.
Hi,
I have troubles to set a implicit style to GridViewDataColumn.
For all grid view columns i want to set the style to without
- TextTrimming="CharacterEllipsis"
- TextWrapping="WrapWithOverflow"
I tried with <Style TargetType="telerik:GridViewDataColumn" BasedOn="{StaticResource GridViewDataColumnStyle}">
Any suggestions?
Thank you in advance
Hello,
When I use a RadSplashScreen at the launch of my application, the application's main window doesn't receive focus and appears behind other windows. I've seen a reference to this type of behavior on another thread regarding RadWindow (https://www.telerik.com/forums/mainwindow-losts-focus-after-child-radwindow-is-closed), but the solution there doesn't seem applicable to this control.
I created a sample application (https://github.com/3milio/RadSplashScreenHidingMainWindow) with VS 2017 following your getting started guide. Mind trying it out and seeing if I'm missing a step? For me, when I hit F5 in the debugger to run it the splash screen appears on top of it but then when the main window gets instantiated it hides behind other programs.
Also, when I first cloned the repo and ran it in the debugger it didn't demonstrate this behavior. But any time after that, it did. That includes running it with the Release configuration, as well as simply running the .exe from Windows Explorer.
Thanks,
Emilio
Dear Developers,
Here's a code which exports a RadGridView:
```
private void grid1_ElementExported(object sender, GridViewElementExportedEventArgs e)
{
if (e.Element == ExportElement.Row)
{
GetData_Result obj = e.Context as GetData_Result;
if (obj != null)
{
e.Writer.Write(String.Format(@"<tr><td colspan=""{0}"">", grid1.Columns.Count));
// Here's row details for row being exported
e.Writer.Write("</td></tr>");
}
}
}
private void bExport_Click(object sender, RoutedEventArgs e)
{
SaveFileDialog dialog = new SaveFileDialog()
{
DefaultExt = extension,
Filter = String.Format("{1} files (*.{0})|*.{0}|All files (*.*)|*.*", "xls", "Excel"),
FilterIndex = 1
};
if (dialog.ShowDialog() == true)
{
using (Stream stream = dialog.OpenFile())
{
grid1.Export(stream,
new GridViewExportOptions()
{
Format = ExportFormat.Html, // Is it possible to use another format in this situation?
ShowColumnHeaders = true,
ShowColumnFooters = true,
ShowGroupFooters = false
});
}
Process.Start(new ProcessStartInfo(dialog.FileName));
}
}
```
RowDetails is a DataTemplate which is filled by a method below when "+" button is clicked.
```
private void grid1_RowDetailsVisibilityChanged(object sender, Telerik.Windows.Controls.GridView.GridViewRowDetailsEventArgs e)
{
if (e.Visibility != Visibility.Visible)
return;
GetDataD_Result data = e.Row.Item as GetDataD_Result;
dvm = new DetailsViewModel(data.Id);
e.DetailsElement.DataContext = dvm;
}
```
So, is possible to get an access to this DataTemplate of RwoDetails while exporting for each row?
Thank you!
Best regards
Greetings,
I am trying to set the GridView style.
Need to set the Grid view Row and GridViewSelectColumn disabled as per the binding value. And at the same time need red background color for disabled row.
I am trying to achieve by applying style but it is now showing the expected result.
<telerik:RadGridView.RowStyle>
<Style TargetType="telerik:GridViewRow">
<Setter Property="IsEnabled" Value="{Binding IsCheckboxEnabled }"></Setter>
<Setter Property="Background" Value="{Binding IsCheckboxEnabled, Converter={StaticResource BoolConverter}}"></Setter>
</Style>
</telerik:RadGridView.RowStyle>
where IsCheckboxEnabled is conditional value true/false with the help of which i want row to be disabled. And Background should be red.
Converter={StaticResource BoolConverter} is used to return new SolidColorBrush(Colors.Red);
But, it is not working as expected. Showing disabled rows only for alternate rows in the grid even if IsCheckboxEnabled is property assigned as false.
Not getting proper way to disable check box and disable row with red background.
Could you please advise here.
Thank you.
=> System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'Telerik.Windows.Controls.GridView.FrozenColumnsSplitter' that matches the specified binding constraints threw an exception. ---> System.IO.IOException: The file exists.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.__Error.WinIOError()
at System.IO.Path.GetTempFileName()
at System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream)
at System.Windows.Input.Cursor..ctor(Stream cursorStream)
at Telerik.Windows.Controls.GridView.GridViewCursors.get_RefreezeCursor()
at Telerik.Windows.Controls.GridView.FrozenColumnsSplitter..ctor()
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)
at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)
--- End of inner exception stack trace ---
at System.Windows.Markup.XamlReader.RewrapException(Exception e, Uri baseUri)
at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlReader templateReader, XamlObjectWriter currentWriter)
at System.Windows.FrameworkTemplate.LoadTemplateXaml(XamlObjectWriter objectWriter)
at System.Windows.FrameworkTemplate.LoadOptimizedTemplateContent(DependencyObject container, IComponentConnector componentConnector, IStyleConnector styleConnector, List`1 affectedChildren, UncommonField`1 templatedNonFeChildrenField)
at System.Windows.FrameworkTemplate.LoadContent(DependencyObject container, List`1 affectedChildren)
at System.Windows.StyleHelper.ApplyTemplateContent(UncommonField`1 dataField, DependencyObject container, FrameworkElementFactory templateRoot, Int32 lastChildIndex, HybridDictionary childIndexFromChildID, FrameworkTemplate frameworkTemplate)
at System.Windows.FrameworkTemplate.ApplyTemplateContent(UncommonField`1 templateDataField, FrameworkElement container)
at System.Windows.FrameworkElement.ApplyTemplate()
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.Control.MeasureOverride(Size constraint)
at Telerik.Windows.Controls.GridView.GridViewRowItem.MeasureOverride(Size constraint)
at Telerik.Windows.Controls.GridView.GridViewHeaderRow.MeasureOverride(Size availableSize)
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 Telerik.Windows.Controls.GridView.GridViewScrollViewer.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.Border.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Documents.AdornerDecorator.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at System.Windows.Controls.Control.MeasureOverride(Size constraint)
at Telerik.Windows.Controls.GridView.GridViewDataControl.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.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.Border.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.Control.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 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.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at APSSSentinel.App.Main()