CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

How Edit and delete Row with CellProvider

by colombinif » 24 Mar 2016 11:47

Hi !

I've some problem using a TIWCGJQGrid and TIWCGJQGridCellsProvider when a try to use actions (edit and delete) and inline editing.
This is my scenary :
- a grid
- a cellprovider with 3 columns : "code" (numeric, key) - "description" (string) - "price" - (float-numeric)
- at start i populate some rows with sample value like :

code,description,price
1,"item 1", 1.0
2,"item 2", 2.0
3,"item 3", 3.0
..

When i click on action column pencil ("edit"), i can start editing, but when I click on "disk" (save button) i receive Error : "500 : id to edit not specified". The "key" property on Col0 property is "true". Isn't it sufficient ?

Same situation, but not always, when i click on "trash" (delete button). Randomly grid says "error Status: '500: Invalid id "2" to delete!'. Error code: 500". I don't understand this error while "code=2" exist!

I will appreciate any help !
Best Regards, Fabrizio
colombinif
 
Posts: 7
Joined: 24 Mar 2016 11:21

by assapan » 24 Mar 2016 14:08

Are you using dataset ? if yes , be sure that the dataset is editable and data can be modified .
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by colombinif » 24 Mar 2016 14:33

Hi.

No, I'm using a TIWCGJQGridCellsProvider.

Thank you very much for fast reply !
colombinif
 
Posts: 7
Joined: 24 Mar 2016 11:21

by assapan » 24 Mar 2016 15:17

No it is not a Theme problem , only because of font width that makes it happens with the example
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 24 Mar 2016 15:24

wrong topic :lol:
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by assapan » 24 Mar 2016 15:27

ooooops : wrong topic :oops:
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Jorge Sousa » 24 Mar 2016 15:32

Hi colombinif

Please provide a test demo
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58

by colombinif » 05 Apr 2016 07:05

Hi !

Solved using "no key" column : when no key set, grid uses row index ! Perfect for me.

Thank you very much.
colombinif
 
Posts: 7
Joined: 24 Mar 2016 11:21


Return to JQGrid

cron

Who is online

Users browsing this forum: Google [Bot] and 13 guests

Contact Us.