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

[Solved] Button click retrieve value previous column

0 Answers 77 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.
Gerard Eikelboom
Top achievements
Rank 1
Gerard Eikelboom asked on 12 Nov 2010, 11:49 AM
Hello,

I have a datagrid with an column, and in there a button.

 

 

 

columns.Bound(v=> v.Koop).Width(30)
.ClientTemplate("<input type='button' onclick='KoopButtonClick();' value=' ' text='BesteldAantal' class='koopbutton'/>");

When I click on it it comes in the 'KoopButtonClick method. So far so good.
But my next step is that I want to give the value from a previous column with it. It's a textbox.

 

columns.Bound(v => v.BesteldAantal).Width(70)
  
.ClientTemplate(Html.TextBox("BesteldAantal",string.Empty, new { @class = "besteldaantal"}).ToString());

Untill now no suc6.

 

Does anyone have an idea?

Regards,
Gerard

 

Tags
Grid
Asked by
Gerard Eikelboom
Top achievements
Rank 1
Share this question
or