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

Edit Value from GridBoundColumn

1 Answer 524 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ravindranath
Top achievements
Rank 1
Ravindranath asked on 06 Dec 2016, 12:01 PM

 

How to get the edit value from the GridBoundColumn in RadGrid.

telerik:GridBoundColumn UniqueName="Title" ReadOnly="true" DataField="TBL_Jobs_Titles.Title" HeaderText="Title" DataType="System.String" HeaderStyle-Width="40px" FilterControlWidth="40px"></telerik:GridBoundColumn>

I am getting null value and send how to implement it

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 09 Dec 2016, 09:55 AM
Hello Ravindranath,

You can access the GridEditableItem instance directly using e.Item argument and depending on your edit mode you can get the values manually:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-controls-in-editinsert-mode

In some scenarios, the ExtractValues method can be helpful:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/manual-crud-operations/defaultcs.aspx

If you are using templates, make sure that you are using the Bind expression in the form controls in your :
http://msdn.microsoft.com/en-us/library/vstudio/ms178366(v=vs.100).aspx

Alternatively, you can directly try implementing automatic CRUD operations:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/automatic-crud-operations/defaultcs.aspx

I hope this will prove helpful.


Regards,
Eyup
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
General Discussions
Asked by
Ravindranath
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or