radGridView.NewRowPosition = GridViewNewRowPosition.None do not work

4 posts, 0 answers
  1. Thomas
    Thomas avatar
    8 posts
    Member since:
    Oct 2008

    Posted 28 Oct 2013 Link to this post

    My version is 2013.3.1016.1050,

    when i use
    radGridView.NewRowPosition = GridViewNewRowPosition.None ;

    it do not work,the new row still show.

    But when i use
    radGridView.ShowInsertRow = false ;
    The new row is disappeared. But the compiler give me a message:  warning CS0618: 'Telerik.Windows.Controls.GridView.GridViewDataControl.ShowInsertRow' is obsolete: 'This property is obsolete. Please, use the NewRowPosition="Top"'.

    Anyone can help me?


  2. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 28 Oct 2013 Link to this post

    Hello Thomas,

    I've tried to reproduce the problem you report, but to no avail. I have attached my test project for a reference.

    Regards,
    Yoan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Thomas
    Thomas avatar
    8 posts
    Member since:
    Oct 2008

    Posted 29 Oct 2013 Link to this post

    Thanks your test project.And I found the reason,please note.

    My xmal code:

    <telerik:RadGridView
        CanUserResizeRows="True"
        CanUserResizeColumns="True"
        AlternationCount="0"
        IsSynchronizedWithCurrentItem="True"
        CanUserInsertRows="True"
        CanUserDeleteRows="True"
        IsReadOnly="False"
        ShowInsertRow="False"
        Margin="-10"
        ShowColumnFooters="True"
        >
    ...

    In this Case,The NewRowPosition  property do not work when I use it in C# code.But It work  again when I remove ShowInsertRow="False"  from xmal code.





  5. Yoan
    Admin
    Yoan avatar
    1070 posts

    Posted 29 Oct 2013 Link to this post

    Hello Thomas,

    Actually, the ShowInsertRow property is marked as obsolete. The idea is to use only - NewRowPosition.

    Regards,
    Yoan
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top