HOW TO ADD A NEW ROW IN EXISTING RAD GRIDVIEW WITH NO LOSS OF DATA IN THE GRIDVIEW?

5 posts, 0 answers
  1. Govindon
    Govindon avatar
    10 posts
    Member since:
    Apr 2016

    Posted 08 Apr Link to this post

    I have one scenario where the gridview has 2 rows like what i have attached.

    Gridview having data as like I have mentioned in the file.

    COLUMN 3 to COLUMN 6 having texbox where the values are entered by the user

    COLUMN 1 and COLUMN 2 of ROW 1 and ROW 2 will have the same value as mentioned.
    I need to know how to add a new row in the grid if the button is clicked

    And the entered value should not get affected. It should be present.
    The new row should be added with COLUMN1 and COLUMN 2 having same name as that of the ROW 1 and ROW 2
    Even if the user clicks again the button the old rows should not get affected.




  2. Govindon
    Govindon avatar
    10 posts
    Member since:
    Apr 2016

    Posted 08 Apr in reply to Govindon Link to this post

    I need the above coding in VB.NET
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 12 Apr Link to this post

    Hello Govindon,

    Please examine the following resources that describe how you can add and edit records in a RadGrid control.


    Have in mind that automatic operations are available only with declarative DataSource controls. If you bind the grid via the NeedDataSource event you would need to use manual CRUD operations.


    If you would like to insert a default value in some of the columns you can define the DefaultInsertValue property for the columns.


    Regards,
    Viktor Tachev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  5. Govindon
    Govindon avatar
    10 posts
    Member since:
    Apr 2016

    Posted 14 Apr in reply to Viktor Tachev Link to this post

    The scenario which I asked does not match with what you have answered. Please check my scenario with my attached file and let me know about that at the earliest.
  6. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 18 Apr Link to this post

    Hello Govindon,

    You can use the provided resources as reference that would get you started on using CRUD operations in RadGrid. If you have any specific issues/queries regarding the controls you can ask in the forums or submit a formal support ticket.

    With that said, please note that implementing complete runnable projects based on a specific scenario falls outside the scope of our standard support services.

    If you would like to have your scenario implemented for you can contact our partners that can provide such services:



    Regards,
    Viktor Tachev
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017