Specified argument was out of the range of valid values error Radgridview

12 posts, 0 answers
  1. irwan a
    irwan a avatar
    6 posts
    Member since:
    May 2010

    Posted 20 Jun 2010 Link to this post

    hi,

    I'm getting error "Specified argument was out of the range of valid values.
    Parameter name: index" on radgridview.

    Currently, I use list collection(example : List<address>) bind to itemsource. -> address is class
    Step to reproduce:
    1. click "clik here to add new data", Input data -> let say name. then press enter.
    2. clik button save. ->otomaticly save to database and reload data from database and rebind to radgridview.
    3. click "clik here to add new data", I getting error "Specified argument was out of the range of valid values.
    Parameter name: index"
    Any ideas?

    Regards,

  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Jun 2010 Link to this post

    Hi,

     Can you post the exception stack trace? More info about the grid version will be appreciated as well.

    Regards,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. irwan a
    irwan a avatar
    6 posts
    Member since:
    May 2010

    Posted 22 Jun 2010 Link to this post

    hi,

    here is stacktrace error. ver WPF Q1 2010 SP2
    Any ideas?

    Regards,
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 23 Jun 2010 Link to this post

    Hi,

     Can you post the grid (and window/page) XAML? Can you verify if the grid is not inside StackPanel or ScrollViewer?

    Regards,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. irwan a
    irwan a avatar
    6 posts
    Member since:
    May 2010

    Posted 23 Jun 2010 Link to this post

    here is my code radgridview.
    currently I create usercontrol, let say usercontrol1.xaml, this control contains radgridview.
    On my form form1.xaml, I created System.Windows.Controls.GroupBox let saya groupBox1, and on groupBox1 I created usercontrol1.

    <Grid Width="auto" Height="auto" Name="MasterGrid">

    <Grid.RowDefinitions>

    <RowDefinition Height="auto"/>

    <RowDefinition Height="*"/>

    </Grid.RowDefinitions>

    <telerik:RadGridView Grid.Row="1" AddingNewDataItem="radGridView1_AddingNewDataItem" Deleting="radGridView1_Deleting" Width="auto" Height="auto" HorizontalAlignment="Stretch" Name="radGridView1" VerticalAlignment="Stretch" CellValidating="radGridView1_CellValidating" />

    </Grid>

    Any Ideas?

    Regards,

  7. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 25 Jun 2010 Link to this post

    Hi,

     I'm not sure why you have two row definitions if only RadGridView is inside this Grid. Can you clarify also why you have "auto" for various heights and widths and HorizontalAlignmen/VerticalAlignment to "Stretch"?

    Generally in this case everything will be autosized and stretched automatically:

    <Grid Name="MasterGrid">
        <telerik:RadGridView Name="radGridView1" />
    </Grid>

    Best wishes,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. irwan a
    irwan a avatar
    6 posts
    Member since:
    May 2010

    Posted 26 Jun 2010 Link to this post

    hi,
    I set width and height to auto because i want radgridview to fullsize, i will to try your suggestion.
    Any way I set row.definition because i want to create dynamis controls on row position 0 (like dynamic button).

    Any Ideas? Why I'm still getting error "Specified argument was out of the range of valid values.
    Parameter name: index" on radgridview.

    Regards,
  9. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 29 Jun 2010 Link to this post

    I have the same error on the latest 625 build
    for Silverlight this time :)  I did place a ticket to follow on this as I have no clue why the code stops at the end of events of the grid and also if I remove the event, it still crashes but this time even thought I have full try catch in every events for the grid it never catchs anything

    Also I put a breakpoint in all the events and no one is hit before it crashes after I did removed the event DataLoaded.
    I'm lost.  Will wait for a follow up in the ticket.
  10. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 30 Jun 2010 Link to this post

    Hi Marc Roussel,

    We are currently investigating the issue and we will notify you as soon as we have more information.

    Thank you for your understanding.


    Greetings,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  11. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 23 Jul 2010 Link to this post

    Hello irwan,

    Could you please try to use our latest release (Q2) and check if the error is still there?


    Sincerely yours,
    Milan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  12. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 23 Jul 2010 Link to this post

    This was a long time a go.  I don't have this issue today !
    It was probably fixed in the latest version
  13. Marc Roussel
    Marc Roussel avatar
    429 posts
    Member since:
    Dec 2009

    Posted 23 Jul 2010 Link to this post

    If I remember right, it was because no column was Current when Adding a new row
    and I had a fix so I set the CurrentColumn before going in add new mode and it was working then
    this was fixed in the latest version.

Back to Top
UI for WPF is Visual Studio 2017 Ready