Click here to Skip to main content
15,910,981 members

Comments by Member 10305232 (Top 4 by date)

Member 10305232 31-Oct-14 5:52am View    
yes !! It was my java script code but it was not working in my side .
Java Script :-
<script language = "javascript">
(function(document) {
'use strict';

var LightTableFilter = (function(Arr) {

var _input;

function _onInputEvent(e) {
_input = e.target;
var tables = document.getElementsByClassName(_input.getAttribute('data-table'));
Arr.forEach.call(tables, function(table) {
Arr.forEach.call(table.tBodies, function(tbody) {
Arr.forEach.call(tbody.rows, _filter);
});
});
}

function _filter(row) {
var text = row.textContent.toLowerCase(), val = _input.value.toLowerCase();
row.style.display = text.indexOf(val) === -1 ? 'none' : 'table-row';
}

return {
init: function() {
var inputs = document.getElementsByClassName('light-table-filter');
Arr.forEach.call(inputs, function(input) {
input.oninput = _onInputEvent;
});
}
};
})(Array.prototype);

document.addEventListener('readystatechange', function() {
if (document.readyState === 'complete') {
LightTableFilter.init();
}
});

})(document);
</script>
Member 10305232 31-Oct-14 0:47am View    
yes ! but actually i was try so many codes, here i was remove the filter jquery code and display only working ajax code ...

i want help from u to solve filter concept !!
Member 10305232 30-Oct-14 2:48am View    
Ok Guys! i was getting my answer but here only one small issue is there what it is filter concept was not working in ajax dropdown could you please help this !!
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">

<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:TextBox ID="txtCustomer" Text="Select Customers" runat="server" CssClass="txtbox"
Height="20px" Width="322px">
<asp:Panel ID="PnlCust" runat="server" CssClass="PnlDesign">
<asp:CheckBoxList ID="cblCustomerList" runat="server">
<asp:ListItem>Customer One
<asp:ListItem>Customer Two
<asp:ListItem>Customer Three
<asp:ListItem>Customer Four
<asp:ListItem>Customer Five
<asp:ListItem>Customer Six
<asp:ListItem>Customer Seven


<asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click" />
<br />
<cc1:PopupControlExtender ID="PceSelectCustomer" runat="server" TargetControlID="txtCustomer"
PopupControlID="PnlCust" Position="Bottom">

<asp:Label ID="Label1" runat="server" Text="">


</div>
</form>
</body>
Member 10305232 28-Oct-14 9:49am View    
thanks for giving response !
Actually i want to do selects the group list[it was displayed like --select group list-- in dropdown and total groups are displayed in when we tapped on dropdown,here either filter the groups list Or using checkboxes to selecting the groupslist] and save that selected checkbox groups.

*** using 3-tier architecture