RadSlider within CellEditTemplate of GridViewDataColumn causes unhandled exception

4 posts, 0 answers
  1. Vadim
    Vadim avatar
    8 posts
    Member since:
    Feb 2009

    Posted 16 Nov 2011 Link to this post

    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>
  2. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 18 Nov 2011 Link to this post

    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 >>

  3. Vadim
    Vadim avatar
    8 posts
    Member since:
    Feb 2009

    Posted 18 Nov 2011 Link to this post

    Hi, Pavel

    public double NewChoke {get; set;}
  4. Nedyalko Nikolov
    Admin
    Nedyalko Nikolov avatar
    871 posts

    Posted 18 Nov 2011 Link to this post

    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 >>

Back to Top