Telerik Forums
UI for WPF Forum
4 answers
173 views
Hi!
I use VirtualQueryableCollectionView in my project (WPF Q3 2010).
public MainWindow()
{
    InitializeComponent();
    
    OraContext ctx = new OraContext();
    var view = new VirtualQueryableCollectionView(ctx.OSTs) { LoadSize = 5 };
    DataContext = view;
}

I get error, when grouping in GridView

Unable to cast object of type 'Telerik.OpenAccess.Query.GroupKeyAccessT' к типу 'OpenAccessRuntime.DataObjects.query.Node'

Thank you.
Denis
Top achievements
Rank 1
 answered on 10 Dec 2010
4 answers
335 views
I have a WPF radGridView populated with data.  There are 3 columns - "ID", "FirstName", and "LastName" for simplicity.

"ID" is a hidden column.  It's only there so I can reference the ID in code behind.

So the Grid is displaying FirstName and LastName.  In the interface, I have code-behind on the CellEditEnded event which is supposed to update the database with any changes in data.  The code is archaic still and I know there are validity checks that have to be added, etc., but my problem is I cannot obtain the ID of the row I'm in.  In this event, e is of type Telerik.Windows.Controls.GridViewCellEditEndedEventArgs

I'm trying to use e.Cell.ParentRow.Cells(0).ToString but that returns the value of the first visible cell.  Moreover, I don't want to use Cells(0), I'd rather use the cell name in case the index value changes - but this only takes index values.  I've tried going back to the grid itself using something like uxGRIDNAME.row(0)... etc but there doesn't seem to be any property that I can use to go to a specific row.  Moreover, "e" doesn't contain a rowindex anyway.  I'm baffled that this is so difficult to figure out - it seems like something that should be so simple.  I'm sure someone has some kind of insight here.  Thank you in advance!
Vlad
Telerik team
 answered on 09 Dec 2010
1 answer
66 views
Hi,
     in my project i have used the telerik q1 version control, then now i m upgrade to q3 controls, then while build i did't find any error, but while runtime i get this following error. could you plz tel me how to solve it.

Could not load file or assembly '<Project Name>, Culture=neutral' or one of its dependencies. The system cannot find the file specified.

Thanks& Regards
  M.Asiq Raja
Andrey
Telerik team
 answered on 09 Dec 2010
3 answers
182 views
Hello
i can't resolve This error . registerTime Property Is String
Rossen Hristov
Telerik team
 answered on 09 Dec 2010
2 answers
111 views
Hi telerik,

I've created two custom filters for my RadGridView and everything works fine.
When I'm going to filter data with filter "A" and + filter "B". Only one filter is going to filter data.
I want to filter data by using two of them (filter A + filter B).
What should I do for that ?

thank you,
Julian
Julian
Top achievements
Rank 1
 answered on 09 Dec 2010
1 answer
252 views
Dear Telerik,

RadPaneGroup inherited from ItemsControl and can contain a list of RadDocumentPane. I want to use RadDocumentPane as ItemTemplate of RadPaneGroup. The code is:

<t:RadSplitContainer>
    <t:RadPaneGroup ItemsSource="{Binding WorkflowItems}">
        <t:RadPaneGroup.ItemTemplate>
            <DataTemplate>
                <t:RadDocumentPane Header="{Binding Name}" Content="{Binding Workflow}">
                    <t:RadDocumentPane.ContentTemplate>
                        <DataTemplate>
                            <TextBlock Text="{Binding}" />
                        </DataTemplate>
                    </t:RadDocumentPane.ContentTemplate>
                </t:RadDocumentPane>
            </DataTemplate>
        </t:RadPaneGroup.ItemTemplate>
    </t:RadPaneGroup>
</t:RadSplitContainer>

There is no error when building and running. But the UI has problem. (See attached file)
http://www.telerik.com/ClientsFiles/235713_ui-problem.png

BTW: I just tried, use RadPane as ItemTemplate will cause the same problem.
Miroslav Nedyalkov
Telerik team
 answered on 09 Dec 2010
5 answers
349 views
I've got a recent problem:

My grid looks like this:

<telerikG:RadGridView x:Name="ExpositionFilterRules"
    AutoGenerateColumns="False" SelectionMode="Single"
    FontSize="14" AllowDrop="False" CanUserDeleteRows="False"
    CanUserFreezeColumns="False" CanUserInsertRows="False"
    CanUserReorderColumns="False" ShowGroupPanel="False"
    RowIndicatorVisibility="Collapsed" ScrollMode="Deferred"
    IsEnabled="True" IsReadOnly="False">
     
    <telerikG:RadGridView.Columns>
        <telerikG:GridViewDataColumn Header="{StaticResource Promotions_ExpositionRule_ExpositionType}" MinWidth="200">
                    <telerikG:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                    <ComboBox ItemsSource="{DynamicResource ExpositionTypes}" SelectedItem="{Binding ExpositionType}"></ComboBox>
                            </DataTemplate>
                        </telerikG:GridViewDataColumn.CellTemplate>
        </telerikG:GridViewDataColumn>
    </telerikG:RadGridView.Columns>       
</telerikG:RadGridView>

Grid shows objects with filled values (in this case object's property is ExpositionType).  Everythig looks fine until grid is scrolled via vertical scrollbar. When row goes out of the visibility range null value is inserted into the object's ExpositionType property. 

I dont use GridViewComboBoxColumn because I want to edit values without switching grid into edit mode (it requires more clicks).

My question is: how to prevent grid from deleting my data when scrolled?

<telerikG:RadGridView x:Name="ExpositionFilterRules" 
                                 AutoGenerateColumns="False" 
                                 SelectionMode="Single"  FontSize="14" 
                                 AllowDrop="False" CanUserDeleteRows="False" 
                                 CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False" 
                                 ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"
                                 ScrollMode="Deferred" 
                                 AutoExpandGroups="True" SelectionChanged="ExpositionFilterRules_SelectionChanged" IsEnabled="True" IsReadOnly="False">
                <telerikG:RadGridView.Columns>
                    <telerikG:GridViewDataColumn Header="{StaticResource Promotions_ExpositionRule_Name}" DataMemberBinding="{Binding Name}" IsFilterable="False" IsReadOnly="True" MinWidth="150"/>
                    <telerikG:GridViewDataColumn Header="{StaticResource Promotions_ExpositionRule_ExpositionType}" MinWidth="200">
                        <telerikG:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
  <telerikG:RadGridView x:Name="ExpositionFilterRules"                              <ComboBox ItemsSource="{DynamicResource ExpositionTypes}" SelectedItem="{Binding ExpositionType}" SelectionChanged="ComboBox_SelectionChanged"></ComboBox>
                            </DataTemplate>
                        </telerikG:GridViewDataColumn.CellTemplate>
                    </telerikG:GridViewDataColumn>
                    <telerikG:GridViewDataColumn Name="ItemsCount" Header="{StaticResource Promotions_ExpositionRule_ItemsCount}" DataMemberBinding="{Binding ItemsCount}" IsFilterable="False" IsReadOnly="{Binding ExpositionType.IsTemporary}" Width="120"/>
                    <telerikG:GridViewDataColumn Name="Duration" Header="{StaticResource Promotions_ExpositionRule_Duration}" DataMemberBinding="{Binding Duration}" IsFilterable="False" Width="120"/>
                    <telerikG:GridViewDataColumn Name="EstimatedSaleValue" Header="{StaticResource Promotions_ExpositionRule_EstimatedSaleValue}" DataMemberBinding="{Binding EstimatedSaleValue}" IsFilterable="False" Width="120"  DataFormatString="{}{0:F2}"/>
                </telerikG:RadGridView.Columns>
            </telerikG:RadGridView>
<telerikG:RadGridView x:Name="ExpositionFilterRules" 
                                 AutoGenerateColumns="False" 
                                 SelectionMode="Single"  FontSize="14" 
                                 AllowDrop="False" CanUserDeleteRows="False" 
                                 CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False" 
                                 ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"
                                 ScrollMode="Deferred" 
                                 AutoExpandGroups="True" SelectionChanged="ExpositionFilterRules_SelectionChanged" IsEnabled="True" IsReadOnly="False">
                <telerikG:RadGridView.Columns>
                    <telerikG:GridViewDataColumn Header="{StaticResource Promotions_ExpositionRule_Name}" DataMemberBinding="{Binding Name}" IsFilterable="False" IsReadOnly="True" MinWidth="150"/>
                    <telerikG:GridViewDataColumn Header="{StaticResource Promotions_ExpositionRule_ExpositionType}" MinWidth="200">
                        <telerikG:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
  
<telerikG:RadGridView x:Name="ExpositionFilterRules" 
                                 AutoGenerateColumns="False" 
                                 SelectionMode="Single"  FontSize="14" 
                                 AllowDrop="False" CanUserDeleteRows="False" 
                                 CanUserFreezeColumns="False" CanUserInsertRows="False" CanUserReorderColumns="False" 
                                 ShowGroupPanel="False" RowIndicatorVisibility="Collapsed"
                                 ScrollMode="Deferred" 
                                 AutoExpandGroups="True" SelectionChanged="ExpositionFilterRules_SelectionChanged" IsEnabled="True" IsReadOnly="False">
                <telerikG:RadGridView.Columns>
                    <telerikG:GridViewDataColumn Header="{StaticResource Promotions_ExpositionRule_Name}" DataMemberBinding="{Binding Name}" IsFilterable="False" IsReadOnly="True" MinWidth="150"/>
                    <telerikG:GridViewDataColumn Header="{StaticResource Promotions_ExpositionRule_ExpositionType}" MinWidth="200">
                        <telerikG:GridViewDataColumn.CellTemplate>
                            <DataTemplate>
                                <ComboBox ItemsSource="{DynamicResource ExpositionTypes}" SelectedItem="{Binding ExpositionType}" SelectionChanged="ComboBox_SelectionChanged"></ComboBox>
                            </DataTemplate>
                        </telerikG:GridViewDataColumn.CellTemplate>
                    </telerikG:GridViewDataColumn>
                    <telerikG:GridViewDataColumn Name="ItemsCount" Header="{StaticResource Promotions_ExpositionRule_ItemsCount}" DataMemberBinding="{Binding ItemsCount}" IsFilterable="False" IsReadOnly="{Binding ExpositionType.IsTemporary}" Width="120"/>
                    <telerikG:GridViewDataColumn Name="Duration" Header="{StaticResource Promotions_ExpositionRule_Duration}" DataMemberBinding="{Binding Duration}" IsFilterable="False" Width="120"/>
                    <telerikG:GridViewDataColumn Name="EstimatedSaleValue" Header="{StaticResource Promotions_ExpositionRule_EstimatedSaleValue}" DataMemberBinding="{Binding EstimatedSaleValue}" IsFilterable="False" Width="120"  DataFormatString="{}{0:F2}"/>
                </telerikG:RadGridView.Columns>
            </telerikG:RadGridView>
                             <ComboBox ItemsSource="{DynamicResource ExpositionTypes}" SelectedItem="{Binding ExpositionType}" SelectionChanged="ComboBox_SelectionChanged"></ComboBox>
                            </DataTemplate>
                        </telerikG:GridViewDataColumn.CellTemplate>
                    </telerikG:GridViewDataColumn>
                    <telerikG:GridViewDataColumn Name="ItemsCount" Header="{StaticResource Promotions_ExpositionRule_ItemsCount}" DataMemberBinding="{Binding ItemsCount}" IsFilterable="False" IsReadOnly="{Binding ExpositionType.IsTemporary}" Width="120"/>
                    <telerikG:GridViewDataColumn Name="Duration" Header="{StaticResource Promotions_ExpositionRule_Duration}" DataMemberBinding="{Binding Duration}" IsFilterable="False" Width="120"/>
                    <telerikG:GridViewDataColumn Name="EstimatedSaleValue" Header="{StaticResource Promotions_ExpositionRule_EstimatedSaleValue}" DataMemberBinding="{Binding EstimatedSaleValue}" IsFilterable="False" Width="120"  DataFormatString="{}{0:F2}"/>
                </telerikG:RadGridView.Columns>
     
Maya
Telerik team
 answered on 09 Dec 2010
2 answers
60 views
Please help me in navigating to a link if hyperlink is specified in grid view column cells
Urgent 
Asish
Top achievements
Rank 1
 answered on 09 Dec 2010
2 answers
90 views
Hi,

Yesterday, I've faced with the situation that I can't set the value of the check box to my custom filter.

Well, take a look on that:

<CheckBox x:Name="myCheckBox"/>

<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn>
           <CustomFilter:MyCustomFilter GetTheValueOfCheckBox={Binding ElementName=myCheckBox, Path=IsChecked}
        </telerik:GridViewDataColumn>
</telerik:RadGridView.Columns>
<telerik:RadGridView x:Name="myGrid">
</telerik:RadGridView/>

In code behind of the MyCustomFilter I registered my DependencyProperty.

I have to addmit, that we use MVVM and the grid is a view part only without codebehind.

How can I handle this issue ? 

Thank you in advance,
Julian
Julian
Top achievements
Rank 1
 answered on 09 Dec 2010
1 answer
467 views
Hello,
Setting the content of a label to A_B_C_D for instance renders the text as AB(underlined)_C_D (please see the attached screenshot).

The TreeListView control behaves exactly the same, so I can only assume this applies to all the controls.

How do I make sure my text gets displayed correctly?

Thanks,
Vanya Pavlova
Telerik team
 answered on 09 Dec 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
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
InlineAIAssistant
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?