This is a migrated thread and some comments may be shown as answers.

RadSlider within CellEditTemplate of GridViewDataColumn causes unhandled exception

3 Answers 63 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Vadim
Top achievements
Rank 1
Vadim asked on 16 Nov 2011, 02:21 PM
If RadSlider is using for CellEditTemplate of RadGridView it's causes an exception:
 System.ArgumentNullException: Value cannot be null.
 Parameter name: dp
See the following code:
<Grid:RadGridView AutoGenerateColumns="False" AlternateRowBackground="LightGray" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" DataLoadMode="Asynchronous" RowEditEnded="decisionGrid_RowEditEnded" AlternationCount="2" ColumnWidth="*">
   <Grid:RadGridView.Columns>
      <Grid:GridViewDataColumn IsReadOnly="True"  Background="Black" Width="80" Header="Well" />
      <Grid:GridViewDataColumn IsReadOnly="True" IsGroupable="False" Header="Current Choke" />
      <Grid:GridViewDataColumn IsReadOnly="True" IsGroupable="False" Header="Ideal Choke"  />
      <Grid:GridViewDataColumn IsReadOnly="False" IsGroupable="False" Header="New Choke" >                           
      <Grid:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
          <Controls:RadSlider  Maximum="100" Minimum="0" Value="{Binding NewChoke, Mode=TwoWay,UpdateSourceTrigger=Explicit}" />
        </DataTemplate>
      </Grid:GridViewDataColumn.CellEditTemplate>
      </Grid:GridViewDataColumn>
    </Grid:RadGridView.Columns>
</Grid:RadGridView>

3 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 18 Nov 2011, 10:41 AM
Hi Vadim,

What is the type of the NewChoke property?

Regards,
Pavel Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Vadim
Top achievements
Rank 1
answered on 18 Nov 2011, 03:50 PM
Hi, Pavel

public double NewChoke {get; set;}
0
Nedyalko Nikolov
Telerik team
answered on 18 Nov 2011, 05:51 PM
Hello Vadim,

I've managed to reproduce the issue and the problem is already fixed. The fix will be publicly available with the next internal build.

P.S. I've added 1000 Telerik points to your account.

All the best,
Nedyalko Nikolov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
Vadim
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
Vadim
Top achievements
Rank 1
Nedyalko Nikolov
Telerik team
Share this question
or