This is a migrated thread and some comments may be shown as answers.

inline editing in kendo grid

3 Answers 424 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krunal
Top achievements
Rank 1
Krunal asked on 05 Jun 2014, 06:36 AM
hello

1) i use and follow this grid

http://demos.telerik.com/kendo-ui/grid/editing-custom
http://trykendoui.telerik.com/


but i want to all field not editable true only like example "Product Name" allow to editable true and other two not..

so how to do this in kendo grid please help me.


2) and when i change value then new value save temporary and how to save new value on button click.

like first product name is "chai" and i update chai to tea then tea was
where to store i dont know and i want to tea store on other button click
like using ajax and this button is out side grid.


and then we make one button on outside kendo grid and when click on this
button and i want to get updated data(row) of this two row only and pass to
controller action using ajax.

so how to do this in kendo grid please help me.


reply asap

3 Answers, 1 is accepted

Sort by
0
CS
Top achievements
Rank 2
answered on 05 Jun 2014, 08:26 AM
I'm not so sure how to store the value of a cell into a different variable after you close the cell, but disabling the edititability is very quick explained. just add "editable: false".

http://jsbin.com/gujotone/4/edit
0
Krunal
Top achievements
Rank 1
answered on 05 Jun 2014, 09:24 AM
hello Stefan

editable : false its working fine...

but  my aim is get updated row on button click and my button is out of kendo grid. i mean button is now in kendo grid.
see this jsfiddle.
http://jsfiddle.net/Jatinxit/8tzgc/216/

in first row first column value is "Alex" and i update to "Al" then how get only this row on GetData button click i mean i want to only updated rows on button click

then this row i pass to controller action using ajax call
but you only you give me idea of  how to get updated row on button click out side kendo grid

please help me.
reply aspa
0
Vladimir Iliev
Telerik team
answered on 09 Jun 2014, 07:32 AM
Hi Vinit,

Basically the behavior that you are trying to achieve requires custom solution that re-implements functionality that is already available in the grid and it's dataSource, which is out of scope of our support service. In current case I would suggest to use the "incell" edit mode of the grid and it's dataSource transport to sync the changes with the server on clicking of button (outside the grid) that calls the "saveChanges" method

Kind Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Krunal
Top achievements
Rank 1
Answers by
CS
Top achievements
Rank 2
Krunal
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or