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

Unique ID in Grid Passed in Ajax

1 Answer 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Darin
Top achievements
Rank 1
Darin asked on 25 Jan 2013, 11:59 PM
I am cross-posting in Grid and Ajax forums due to not know which forum would be most appropriate.

I've created my page following this example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx

In this demo the grid row's unique ids are the first column called Product ID which is displayed in the gird. For my application each row's unique id is a GUID which I do NOT want displayed. If I set the visibility of this column to false the ajax does not work because it does not have a unqiue id to pass to the code-behind functions. If I set the visibility to true all works.  From this example it appears I must display the unique id column for the code to work.

How can I not display the GUID but still make it available to the ajax functions to pass to the code-behind file functions?

1 Answer, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 27 Jan 2013, 06:09 PM
Hello,

Please set Display properties in-place of visible. Because visible properties do not allow to rendered column in browser, while Display property allow.
 http://www.telerik.com/help/aspnet-ajax/t_telerik_web_ui_gridboundcolumn.html

Note : You can also use DatakeName for that.
in this demo i have used Datakey On client side.

Thanks,
Jayesh Goyani
Tags
Grid
Asked by
Darin
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Share this question
or