success: function (data) { for (var i = 0; i < data.d.length; i++) { $("#<%= gvDetails.ClientID %>").append("<tr><td>"<input type='checkbox' id='check'"+i+"' >"</td><td>" + data.d[i].CompanyName + "</td><td>" + data.d[i].JobTitle + "</td><td>" + data.d[i].JobDescription + "</td><td>" + data.d[i].Technology + "</td><td>" + data.d[i].Experience + "</td></tr>");
Ok this is the stuff that is working
Your questions.
1. There are easier ways to bind a data grid on the server. Binding on the client could make for a sweet single page app though.
2. You haven't included any events all we know is you have a checkbox with an id.
3. To access the data of dynamically created controls. Put the output of the dynamically created contol into an asp.net control that is hidden on the page.
faDzz
Member
4 Points
12 Posts
my row click event not working
Jan 29, 2013 07:12 AM|LINK
hi,
plz suggest me !! my webservice taking string and return array class like,
[webservice]
public classname[] abc (string name ){ //code here }
after fetching em showing this data into grid like
success: function (data) {
for (var i = 0; i < data.d.length; i++) {
$("#<%= gvDetails.ClientID %>").append("<tr><td>"<input type='checkbox' id='check'"+i+"' >"</td><td>" + data.d[i].CompanyName + "</td><td>"
+ data.d[i].JobTitle + "</td><td>" + data.d[i].JobDescription + "</td><td>" +
data.d[i].Technology + "</td><td>" + data.d[i].Experience + "</td></tr>");
my data showing fine but after binding data my mouseover , mouseout , tr click events not working
1) is it better way to bind data in grid or if any other best way so plz tell me ??
2) why my events not working and how it will work ??
3) em adding checkbox like input type=check how i can access it on my aspx.cs file or onclient click event
plzz , help me !!
THANKS IN ADVANCE
Danny117
Star
11160 Points
1932 Posts
Re: my row click event not working
Feb 23, 2013 11:31 AM|LINK
Ok this is the stuff that is working
Your questions.
1. There are easier ways to bind a data grid on the server. Binding on the client could make for a sweet single page app though.
2. You haven't included any events all we know is you have a checkbox with an id.
3. To access the data of dynamically created controls. Put the output of the dynamically created contol into an asp.net control that is hidden on the page.
Me on linked in