Unique ID in Grid Passed in Ajax

3 posts, 0 answers
  1. Darin
    Darin avatar
    11 posts
    Member since:
    Jan 2013

    Posted 25 Jan 2013 Link to this post

    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. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 28 Jan 2013 Link to this post

    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
  3. Darin
    Darin avatar
    11 posts
    Member since:
    Jan 2013

    Posted 28 Jan 2013 Link to this post

    That worked. Thanks
Back to Top