This question is locked. New answers and comments are not allowed.
Hi guys,
I have two problems with my test grid,
1. i need to add a html form element (<input type='hidden' id='hidden-a' />) value to the custom command (ajax('true')) route value (plus routekey()). No success. I then try to append this value in the onComplete event handler to the grid.ajax string. but can only find the ajax of loading the grid ( _selectAjaxEdit in the example) not the ajax string of the custom command ( 'ViewDetails" in the example).
2. My bound model has a bool variable "active", I wanted to display my "View Details" command button (for each row) based on this value. I tried to do it in the command's htmlattribute as .htmlattribut(new { @class=<#= active? '' : 'hidden' #>}) (in css file .hidden { display: none; }).
Both of above not working. How to make them work? (sorry, don't have code on hand right now).
TIA -t
I have two problems with my test grid,
1. i need to add a html form element (<input type='hidden' id='hidden-a' />) value to the custom command (ajax('true')) route value (plus routekey()). No success. I then try to append this value in the onComplete event handler to the grid.ajax string. but can only find the ajax of loading the grid ( _selectAjaxEdit in the example) not the ajax string of the custom command ( 'ViewDetails" in the example).
2. My bound model has a bool variable "active", I wanted to display my "View Details" command button (for each row) based on this value. I tried to do it in the command's htmlattribute as .htmlattribut(new { @class=<#= active? '' : 'hidden' #>}) (in css file .hidden { display: none; }).
Both of above not working. How to make them work? (sorry, don't have code on hand right now).
TIA -t