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

[Solved] route value and optional command

1 Answer 7 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Trytele
Top achievements
Rank 1
Trytele asked on 15 May 2013, 11:37 PM
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

1 Answer, 1 is accepted

Sort by
0
Trytele
Top achievements
Rank 1
answered on 16 May 2013, 12:15 PM
Any tips to any question are appreciated! Please.
Tags
Grid
Asked by
Trytele
Top achievements
Rank 1
Answers by
Trytele
Top achievements
Rank 1
Share this question
or