Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>i work on this problem and found the solution here below is the problem of my solution.</p> <pre><code>function ButtonValue(cellvalue, options, rowObject) { var filterLetter = rowObject.FilterLetter; var Id = qs("id"); var link = ''; if (Id != 0) { link = '&lt;div id="addbutton"&gt;&lt;button type="button" onclick=addGridCustomer(' + rowObject.CustomerId + ',' + options.rowId + ')&gt;Add&lt;/button&gt;&lt;/div&gt;'; } else { link = '&lt;div id="removecustomer"&gt;&lt;button type="button" onclick=removeGridCustomer(' + rowObject.CustomerId + ',' + options.rowId + ')&gt;Remove&lt;/button&gt;&lt;/div&gt;'; } return link; } function OptedInValue(cellvalue, options, rowObject) { var optedIn = rowObject.OptedIn; var link = ''; if (optedIn == true) { link = '&lt;img title="View ' + rowObject.CustomerName + ' ' + '" src="/images/icn_alert_success.png" /&gt;'; } else if (optedIn == false) { link = '&lt;img title="View ' + rowObject.CustomerName + ' ' + '" src="/images/icn_alert_error.png" /&gt;'; } return link; }; function removeGridCustomer(id, rowId) { debugger $("#jQGridDemo tr").eq(rowId).children().eq(5).find('div button').hide(); $("#jQGridDemo tr").eq(rowId).children().eq(5).find('div').append('to be removed ..'); $('#&lt;% = hdCustomer.ClientID %&gt;').val($('#&lt;% = hdCustomer.ClientID %&gt;').val() + id + ','); //Update Filters in case of removal UpdateFiltersForCusRemove(id); } function addGridCustomer(id, rowId) { $('#&lt;% = hdCustomer.ClientID %&gt;').val($('#&lt;% = hdCustomer.ClientID %&gt;').val() + id + ','); $("#jQGridDemo tr").eq(rowId).children().eq(5).find('div button').hide(); $("#jQGridDemo tr").eq(rowId).children().eq(5).find('div').append('to be added ..'); //Update Filters in case of removal UpdateFiltersForCusAdd(id); } function UpdateFiltersForCusAdd(a) { var filterLtr = $("#lblF" + a).text().trim(); var count = 0; count = parseInt($("#filterL" + filterLtr).text().trim()) - 1 $("#filterL" + filterLtr).text(count); TotalCustomers(+1); } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload