jQWidgets Forums

jQuery UI Widgets Forums Grid Suggestions to add a new row while grid's initial row is.

This topic contains 5 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author

  • ziyahan
    Participant

    As you know, the Jqxgrid comes to an initial row when it is created. How can we determine rowid parameter’s value?
    Sometimes replacing may be required on initial row instead of adding a new.
    If avaliable row/first row is initial row, I must replace it, instead of adding.
    If it contains only a row, but it is not the initial row, I must add a new. I can do this, but it is not practical way.

    Is there a best practice for this? I do not want to use both “first” and “last” as 4th parameters.


    Peter Stoev
    Keymaster

    Hi ziyahan,

    “Jqxgrid comes to an initial row when it is created. How can we determine rowid parameter’s value?” – you can use the “getrowid” method.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    ziyahan
    Participant

    I know it, but there are other questions on its continuation
    Sometimes replacing may be required on initial row instead of adding a new.
    If avaliable row/first row is initial row, I must replace it, instead of adding.
    If it contains only a row, but it is not the initial row, I must add a new. I can do this, but it is not practical way.

    Is there a best practice for this? I do not want to use both “first” and “last” as 4th parameters.


    Peter Stoev
    Keymaster

    Hi ziyahan,

    You can use “updaterow” for replacing a row.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com


    ziyahan
    Participant

    Peter;
    I know also it.
    I think, either I dont tell clearly, or you dont read (you might not understand).
    I would like to write detailed but I am sure, you wont give a third answer in this topic like you do usually for my questions..

    It does not relate only your support activity. Because as I declared at first, I asked a best practice or advice from experienced users who faced to same things.
    Thanks.


    Peter Stoev
    Keymaster

    Hi ziyahan,

    “updaterow” replaces a row. This should do the job because you wrote: “If avaliable row/first row is initial row, I must replace it, instead of adding.”.
    If the requirement is to replace a row, use the “updaterow” method. Regarding your statements: I read what you write and I answer what you ask. Sometimes more details are required, better explanation or example.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.