[CLOSED] Get RecordID of Newly Added Row

  1. #1

    [CLOSED] Get RecordID of Newly Added Row

    Hi,

    i want to get RecordID of selected record/row in gridpanel. how can i do this..?

    i want Record id and not row index.

    what i want to do is, in my gridpanel i will populate some rows from database on page load and allow user to add new rows dynamically. my gridpanel have a command column having delete command button in it. now i don't want user to delete the rows which are populated from database, but at the same time user can be able to delete newly added rows.

    what i m trying to do is if i can fin record id of new record and record populated from database are different then i can prevent user from deleting.


    can anybody help me in this regards...?

    Thanks in Advance..
    Last edited by Daniil; Mar 21, 2013 at 7:05 AM. Reason: [CLOSED]
  2. #2
    Hi @hemantpatil,

    Where do you need to get a record's id- on client or server?
  3. #3
    client side..
  4. #4
    A record is passed to a Command listener. You could use it.
    Last edited by Daniil; Mar 15, 2013 at 6:30 AM.
  5. #5
    Hi Daniil,

    I tried using record.ID, but no luck. can you please post code snippet for the same.
  6. #6
    Please try
    record.getId()
    See also
    http://docs.sencha.com/ext-js/4-2/#!...l-method-getId

Similar Threads

  1. Edit the Newly added column in gridpanel
    By thota in forum 2.x Help
    Replies: 0
    Last Post: Dec 26, 2012, 11:02 AM
  2. Replies: 0
    Last Post: May 24, 2012, 7:39 AM
  3. [CLOSED] How to set the ID of a newly added tree node
    By mattwoberts in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 11, 2011, 7:34 AM
  4. [CLOSED] Selected Row Value not returning value from RecordID
    By Christopher Istvan in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 01, 2009, 10:21 PM
  5. [CLOSED] RecordID in GridPanel
    By Jurke in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 08, 2008, 9:02 AM

Tags for this Thread

Posting Permissions