Telerik Forums
UI for WPF Forum
1 answer
108 views
I have a column that is stored as Y/N in our database. I would like to use a checkbox to display this but I don't see any converters.

We previously used the Infragistics Grid and it supported this feature. Is this something you will be supporting in the future?
Hristo Deshev
Telerik team
 answered on 25 Jul 2008
1 answer
70 views
Hi,
I have some questions - I've looked in the examples but couldn't find the answers. Maybe you should extend your "Columns" example with this.

I have a Datagrid bound to a datasource.
In one column I have a unbound Button
In another column I have a unbound ComboBox

Both inserted via a ControlTemplate

1) When clicking the Button how do I know which row was clicked?
I use the DataGrid.CurrentRecord property - and that seems to work ok. Through casts I can get the primaryID of the row.
But is that the preferred way to do it. And is it a reliable way?

2) In the button click event: How do I access the ComboBox in the current row. I've tried doing it through the CurrentRecord property . but seems to focus more on the datasource rows - and not on the rendered rows and cells. How do I do that ?

3) Do you ship documentation with the Release 1.0 at the end of July ?
Milan
Telerik team
 answered on 24 Jul 2008
3 answers
137 views
I was happily using the wpf beta 1 and developing a project prototype.  When the beta 2 was released I uninstalled beta 1 and installed beta 2 with the samples. Now when I try to drag a radgridview or gridviewdatacontrol onto the design surface in vs 2008 I get an "object reference not set to an instance of an object" error message.
I'm also getting error messages when i try to run the samples the error messages are
An error has occurred wide establishing a comection to the server. when cornectting to
sQL Server 2005, this failure may be caused by the Fact that under the default setttings
sQL sever does allow remote connections. (provider: Named Pipes Provider, error:
40
- Could not open a comection to SQL Server)

and it appears it is trying to access a non existent instance of SQLExpress.  Can anyone help with these issues?
Thanks for any assistance
Nedyalko Nikolov
Telerik team
 answered on 21 Jul 2008
1 answer
85 views
Good day,

I would like to know if the WPF grid control will support these features in its first release:

1- Working in a totally unbound mode (ie: AddRows, AddColumns, SetValue (row, column), etc).

2- Support joining cells to make up a seamless "bigger cell" (for example, to make multiple columns spawning headers, etc). (ex: http://cid-9eeb57eb098c0598.skydrive.live.com/self.aspx/Images/JoinedCells.JPG)

3- Locking rows and columns for scrolling.

Thank-you :)
Hristo Deshev
Telerik team
 answered on 17 Jul 2008
4 answers
107 views
Hi,

I have a controltemplate on a column.
<ControlTemplate x:Key="ComboBoxColumnTemplateReportService" TargetType="{x:Type Telerik:GridViewCell}">  
            <StackPanel Orientation="Horizontal">  
                    <ComboBox Width="150" Height="Auto" VerticalAlignment="Center" Margin="0,0,0,0" x:Name="dtcReportService" DataContext="{StaticResource objectDataProviderReportServices}" ItemsSource="{Binding}" DisplayMemberPath="Name"  /> 
                    <ComboBox Width="150" Height="Auto" VerticalAlignment="Center" Margin="8,0,0,0" x:Name="dtcPrinter" DataContext="{Binding Path=SelectedItem.Printers, ElementName=dtcReportService, Mode=Default}" ItemsSource="{Binding}" DisplayMemberPath="Name" /> 
                    <ComboBox Width="150" Height="Auto" VerticalAlignment="Center" Margin="8,0,0,0" x:Name="dtcPrinterTray" DataContext="{Binding Path=SelectedItem.PrinterTrays, ElementName=dtcPrinter, Mode=Default}" ItemsSource="{Binding}" DisplayMemberPath="Description" /> 
            </StackPanel> 
        </ControlTemplate> 

Now i want to access the template while looping my rows so i can get the selected values from my comboboxes (per row).

How can i do this?

Regards
NS
Top achievements
Rank 1
 answered on 15 Jul 2008
2 answers
86 views

The ItemSource of my RadCarousel is a datatable (which is capable of databinding according to MS).  I've added a TextBox control to my XAML definition for the ControlTemplate for the CarouselDataRecordPresenter as per the following code:

<

StackPanel Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center" >
    
<TextBox Text="{Binding Path=Fields[Answer].Value, Mode=TwoWay,
        
UpdateSourceTrigger=PropertyChanged}" FontSize="12" Foreground="Black"
        
Width="216" />
</StackPanel>

The carousel is displaying the values from the DataTable fine, but the TextBox.Text is not successfully updating the DataTable's "Answer" column.

Note that I have specified TwoWay binding (should not be necessary because that is the default mode for the TextBox control) as well as the UpdateSourceTrigger property of the binding (just to test).

This is a really annoying problem!  Now I have to try to programatically determine what the TextBox.Text value is and manually update the datasource.  Any direction on where to start doing so would be most helpful.

Milan
Telerik team
 answered on 14 Jul 2008
3 answers
99 views
As far as I can determine, the RadCarousel control does not work in WPF Browser applications.  I started my current project as a WPF Browser app and after hours of not being able to get RadCarousel to work, I copied & pasted my XAML and C# code into a WPF application and it worked just fine.

Can you confirm that this is a problem, and whether it is expected to be addressed before release?
Craig Cote
Top achievements
Rank 2
 answered on 12 Jul 2008
3 answers
109 views
Copied from my XAML code:

<

Style TargetType="{x:Type Telerik:CarouselItem}">
    <Setter Property="Template" >
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type Telerik:CarouselItem}">
                <Grid ClipToBounds="False" Height="175" Width="350" >

Strangely, the Width property on the last line does make my carousel items wider/narrower, but the Height property does not.  Is this an issue (and thus subject to being fixed) or is it broken by design?

Craig Cote
Top achievements
Rank 2
 answered on 11 Jul 2008
1 answer
100 views
Not sure where to file this bug report, but when changing the ItemsSource property of the grid we sometimes get

{System.NullReferenceException: Object reference not set to an instance of an object. 
   at Telerik.Windows.Controls.UI.DistinctFilterControl.PopulateDistinctValues() 
   at Telerik.Windows.Controls.UI.DistinctFilterControl.<DistinctFilterControl_Loaded>b__0()} 

we have IsFilteringAllowed set to False if that helps.




Many thanks,

Will Holley
Hristo Deshev
Telerik team
 answered on 10 Jul 2008
6 answers
201 views
The current SortingRequested event only fires when the field being sorted implenents IComparable (seemly making the custom sort behaviour irrelevant?). In order to work around this (we want to sort at the database) I tried subclassing GridViewDataColumn so I could override CanSort() to remove this constraint. However, CanSort is not a virtual method so this doesn't work.

Do you have any suggestions to work around this behaviour? Adding a dummy IComparable implmentation to all of our entities is not really a good solution for us.

Many thanks,

Will Holley
Will
Top achievements
Rank 1
 answered on 09 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?