Gridpanel save items in one batch with validation

  1. #1

    Gridpanel save items in one batch with validation

    Hi,

    I have got my GridPanel and I've allowed one column to be editable. So far so good.

    I have two tasks I would like to achieve:

    1. Save all the changes in one transaction
    2. Show any validation errors thrown from operation in the database


    For the first task, my question is simple: Is there a mechanism to track all the changes or will I have to create it myself through the use of hidden fields?

    The second task requires a bit more explanation. Effectively the validation I'm performing is against some value in the database. Now, if I'm submitting all my changes in one transaction, then I want to return a list of items which are invalid and mark these invalid iterms on the grid. The question again is whether there is already some built in mechanism to do that? If not would it be best to create an extension in order to implement that piece of functionality?

    Regards,

    David
  2. #2
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Hi Vladimir,

    Thank you once more. The confirmation example should do it I think.

    Regards,

    David
    Last edited by DavidS; Jun 16, 2011 at 12:16 PM.

Similar Threads

  1. Save gridpanel data
    By Vaishali in forum 1.x Help
    Replies: 0
    Last Post: Feb 20, 2012, 6:33 AM
  2. [CLOSED] Cancel insert on store's save after server side validation.
    By SouthDeveloper in forum 1.x Premium Help
    Replies: 10
    Last Post: Nov 23, 2011, 1:16 AM
  3. Replies: 3
    Last Post: Jul 11, 2011, 9:43 AM
  4. Replies: 2
    Last Post: Apr 13, 2011, 7:30 AM
  5. how to save a row in gridpanel
    By madhugumma in forum 1.x Help
    Replies: 0
    Last Post: Jul 15, 2009, 8:55 AM

Tags for this Thread

Posting Permissions