Telerik Forums
UI for WPF Forum
0 answers
180 views
Hi,

I initialize dragging by following code:

DragDropManager.AddDragInitializeHandler(xToolBar1, OnDragInitialize);
DragDropManager.AddGiveFeedbackHandler(xToolBar1, OnGiveFeedback);

In GiveFeedbackHandler and DropHandler  Mouse.GetPosition(xToolbarTray) gives negative numbers, which is incorrect. Is this bug?
I attached sample project to demonstrate this behaviour: https://skydrive.live.com/redir?resid=51A46BBA4E9EF07E!1312&authkey=!ALflFx7eswlzjic


Basically, I need distinguish between dragging or dropping on/before/after element in drop target.

I'm using reorder behaviour very often and just inserting element after the element under mouse gives very negative user experience. I cannot move element on the first position this way.
Daniel
Top achievements
Rank 1
 asked on 25 Jan 2013
1 answer
306 views
I have an application where multiple RadGridViews are being used as well as a RadTreeView. I would like to override the ScrollBar style for all RadControls in the application so that it uses the default Windows ScrollBar style instead of the RadControls own "shiny" version as it creates an inconsistent UI when other normal WPF ScrollViewers are used in the application. Here's an example: http://i.imgur.com/EXCRbey.png (the top is the default Windows 8 ScrollBar, bottom is a RadGridView ScrollBar).

I've tried adding the following in the application's ResourceDictionary, but it didn't work:

    <Style TargetType="ScrollBar" BasedOn="{StaticResource {x:Type ScrollBar}}"/>
Dimo Mitev
Telerik team
 answered on 25 Jan 2013
1 answer
315 views
hi:
 I have a question when use GridViewDataColumn.BindingGroup,my core code as follow:

<telerik:GridViewDataColumn Header="Time" IsReadOnly="True" SortMemberPath="ScheduledProcedureStepStartDateTime">                        
                        <telerik:GridViewDataColumn.BindingGroup>
                            <MultiBinding Converter="{StaticResource timeRangeConverter}" ConverterParameter="HH:mm">
                                <Binding Path="StartDateTime"></Binding>
                                <Binding Path="EndDateTime"></Binding>
                            </MultiBinding>
                      </telerik:GridViewDataColumn.BindingGroup>
</telerik:GridViewDataColumn>

Please confirm syntax of binding is right?

When execute 
 public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture){} function,
I found values[0] and values[1] are DependencyProperty.UnsetValue. So can't convert successfully.

Please provide the right telerik demo. Tahnks.
Pavel Pavlov
Telerik team
 answered on 25 Jan 2013
1 answer
208 views
It seems that the CurrentCell and CurrentRow are not kept in sync.

I think this is similar to what's mentioned in this post:
http://www.telerik.com/community/forums/wpf/gridview/radgridview-observablecollection-and-currentitem.aspx

We fixed it with this code:
private void ContractProxyGridView_CurrentCellChanged(object sender, GridViewCurrentCellChangedEventArgs e)
        {
            if (e.NewCell == null || e.NewCell.ParentRow == null) return;
            e.NewCell.ParentRow.IsCurrent = true;
        }

Is there a reason for this behavior?

Thanks,
Alex
Dimitrina
Telerik team
 answered on 25 Jan 2013
1 answer
300 views
Hi

I have a question on using the CellEditTemplate which has a TextBox in RadGridView.

I have a RadGridView, one of its columns is created like this in cs file:

gvColumn = new GridViewDataColumn();
gvColumn.CellEditTemplate = (DataTemplate)grid.TryFindResource("TextBoxEditTemplate");
gvColumn.DataType = typeof(string);
gvColumn.DataMemberBinding = new Binding(...)

In xaml file I define the template like this:

<telerik:RadGridView.Resources>
                <DataTemplate x:Key="TextBoxEditTemplate">
                    <TextBox Text="{Binding RelativeSource={RelativeSource Self}, Path=DataMemberBinding.PropertyPath}"/>
                </DataTemplate>
...

but the 'Text' of this text box is not bound to content of the cell, they are sperated, when user tries to edit, the cell's content is not
in the TextBox, and vice versa.

Thanks.

Henry

Henry
Top achievements
Rank 1
 answered on 24 Jan 2013
2 answers
178 views
Hi,

Just trying to figure out if the RadRichTextBox has a shortcut key for assigning bullets? The standard Ctrl + Shift + L does not work.

Thanks
Anthony
Anthony
Top achievements
Rank 1
Iron
Veteran
 answered on 24 Jan 2013
4 answers
577 views
Hi guys,

I noticed that when using ExportFormat.ExcelML with columns containg tags, the generated file cannot be opened. I have a column which contains "<" and ">" and this basically breaks the format. I tried intercepting the value in the ElementExporting event but it doesn't look like it's helping me. A sample event log file froom Excel looks like this:

XML PARSE ERROR:  Missing end-tag
  Error occurs at or below this element stack:
    <ss:Workbook>
     <ss:Worksheet>
      <ss:Table>
       <ss:Row>
        <ss:Cell>
         <ss:Data>
          <ss:CompanyName>

The value for column CompanyName would be something like "<Acme Inc>"

How do I go about this? I
Nayaz
Top achievements
Rank 1
 answered on 24 Jan 2013
27 answers
1.0K+ views

I'm using the RegionAdapter from the following article.

http://blogs.telerik.com/blogs/posts/09-08-31/using_the_raddocking_control_with_prism.aspx

However, I'm using PRISM 4 + MVVM + MefBootstrapper.
Has anybody successfully used the RegionAdapter with MefBootstrapper?

I'm getting the following error message... 

this

 

 

.Container.Resolve

Error 1 'System.ComponentModel.Composition.Hosting.CompositionContainer' does not contain a definition for 'Resolve' and the best extension method overload 'Microsoft.Practices.Unity.UnityContainerExtensions.Resolve<T>(Microsoft.Practices.Unity.IUnityContainer, params Microsoft.Practices.Unity.ResolverOverride[])'

Thank you

protected override RegionAdapterMappings ConfigureRegionAdapterMappings()
{
    var mappings = base.ConfigureRegionAdapterMappings();
    mappings.RegisterMapping(typeof(RadPaneGroup), this.Container.Resolve<RadPaneGroupRegionAdapter>());
    return mappings;
}
George
Telerik team
 answered on 24 Jan 2013
3 answers
210 views
Hi , i am in the process of converting the Datagrid to Telerik RadGrid , i am having grouping in the RadGrid and i want to change its style 

could any one help me in converting the below piece of datagrid code to Telerik

name using as  xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"

<DataGrid.GroupStyle>
<GroupStyle>
<GroupStyle.ContainerStyle>

</GroupStyle.ContainerStyle>
</GroupStyle>
</DataGrid.GroupStyle>
Dimitrina
Telerik team
 answered on 24 Jan 2013
3 answers
231 views
I'm having issues with getting the IsExpandable property to be respected. Basically when my "Parent" has no children, I don't want the expand togglebutton to be shown. Below is some sample xaml that I am using. The resulting grid has the details column fully populated with the togglebuttons when there should be at least one without the button. I've stepped through my StyleSelector code and it is returning the proper style. But it doesn't appear to have any affect. What am I doing wrong?

<UserControl ...>
    <UserControl.Resources>
        <Style x:Key="NoChildrenRowStyle" TargetType="telerik:GridViewRow">
            <Setter Property="IsExpandable" Value="False"/>
        </Style>
  
        <Style x:Key="HasChildrenRowStyle" TargetType="telerik:GridViewRow">
            <Setter Property="IsExpandable" Value="True"/>
        </Style>
</UserControl.Resources>
  
 <local:RowStyleSelector x:Key="RowStyleSelector"
         NoChildrenStyle="{StaticResource NoChildrenRowStyle}"
         HasChildrenStyle="{StaticResource HasChildrenRowStyle}"/>
  
<telerik:RadGridView ItemsSource="{Binding ParentsCollectionView}"
        RowIndicatorVisibility="Collapsed"
        AutoGenerateColumns="False"
        RowStyleSelector="{StaticResource RowStyleSelector}">
            <telerik:RadGridView.Columns>
                <telerik:GridViewToggleRowDetailsColumn />
                <telerik:GridViewDataColumn Header="Name" DataMemberBinding="{Binding Name}"/>
                <telerik:GridViewDataColumn Header="Age" DatatMemberBinding="{Binding Age}"/>
            </telerik:RadGridView.Columns>
            <telerik:RadGridView.RowDetailsTemplate>
                <DataTemplate>
                    <ListBox ItemsSource="{Binding Children}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <Grid>
                                    <TextBlock Text="{Binding Name}"/>
                                </Grid>
                            </DataTemplate>
                        </ListBox.ItemTemplate>  
                    </ListBox>
                </DataTemplate>
            </telerik:RadGridView.RowDetailsTemplate>
        </telerik:RadGridView>
</UserControl>
Yoan
Telerik team
 answered on 24 Jan 2013
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
Book
FileDialogs
ToolBar
ColorPicker
TimePicker
SyntaxEditor
MultiColumnComboBox
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
Rating
SplashScreen
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
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?