Skip to content

Replies

0
Gregory Fernander
Gregory Fernander answered on Feb 19, 2013 2:47 PM

I actually figured out after further investigation using your answer by doing the following.

Thanks for your help,

column.Unbound("Download").Formula("testIG");

<script>

function testIG(data,grid)

{

return data["DocumentId"];

}

</script>

0
Gregory Fernander
Gregory Fernander answered on Feb 19, 2013 2:29 PM

Thanks for the response.  This seems to be what I am looking for. I am using the grid in a MVC application.  Can you tell me how this should be written in that scenario?

For instance, I have the following just to test that the javascript function testIG gets called.  But it does not and I am not sure of the correct syntax as I would think it would be correct following the example you provided above.

column.Unbound("Download").HeaderText("Download").Formula("function(data,grid){return testIG(true)}");