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

grid with Button

1 Answer 24 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sunny
Top achievements
Rank 1
Sunny asked on 28 Feb 2013, 05:13 PM
hello sir/ madam,

In this screen shot that i have attached i m using linkbutton named(Final Approval) on this button click i want to access configuration name and sell quantity name at client side but i am not getting this so please tell me how can i acheive this. i also have used

GridDataItem dataItem1 = (GridDataItem)grd_optnandprcng.SelectedItems[0];
  string configuration = dataItem1["Header"].Text;

but i am not getting value of column at button click.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Mar 2013, 04:31 AM
Hi,

Try the following code.
JS:
function OnClientClick()
{
        var masterTable = $find('<%= RadGrid1.ClientID %>').get_masterTableView();
        var row = masterTable.get_dataItems();
        for (var i = 0; i < row; i++) {
            var cell = masterTable.getCellByColumnUniqueName(row[i], "Uniquename");
            alert(cell.innerHTML);
 }
}

Thanks,
Shinu
Tags
Grid
Asked by
Sunny
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or