mardi 14 mars 2017

Grid.Column if(else) two Grid.Column

I need to do something like this - if() - then grid.Column - else - then 1)grid.Column first and 2)grid.Column second

Now, I have this

grid.Column(header: "", format: @<text>@if (item.ListStatus != 1)
                                                       <button id='Resend' class='btn btn_green_resend'>Resend</button>
                                                   @*first column*@<a href=mailto: @item.Email class='btn btn-default' title='Send Email'><span class='glyphicon glyphicon-envelope text-primary' aria-hidden='true'></span></a>
                                                   @*second column*@<button type='button' title='Chat' class='btn btn-default' data-toggle='modal' data-target='#mdlConversation' data-interlocutorid=@item.UserId data-interlocutorname=@item.Name><span class='glyphicon glyphicon-comment text-primary' aria-hidden='true'></span></button>


Aucun commentaire:

Enregistrer un commentaire