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

Unique ID in Grid Passed in Ajax

2 Answers 37 Views
Ajax
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:58 PM
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?

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 28 Jan 2013, 06:43 AM
Hi,

When you set the visibility to false, the columns will not be rendered in browser. One suggestion is that you can set the Display property as false and then you can access the unique ID.

Thanks,
Princy
0
Darin
Top achievements
Rank 1
answered on 28 Jan 2013, 02:38 PM
That worked. Thanks
Tags
Ajax
Asked by
Darin
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Darin
Top achievements
Rank 1
Share this question
or