<asp:UpdatePanel runat="server" ID="adavanceGrpngLB_UP" UpdateMode="Conditional">
<ContentTemplate>
<%--code[@**] 10-Nov-22 code changed Adding Search text box in Target Column Mapping Setting Popup code start--%>
<asp:TextBox ID="search_advgrp" class="form-control form-control-sm mt-1 mr-1 adv_search_col" runat="server" AutoPostBack="false" OnTextChanged="searchFilterTextAdvancedgrp" placeholder="Search Column"></asp:TextBox>
<asp:Button ID="clearListBoxAdvGrp" OnClick="clearSearchTextAdvancedgrp" title="Clear Search" runat="server" Text="x" class="Adv_clr_ser"></asp:Button>
<%--code[@**]10-Nov-22 code changed Adding Search text box in Target Column Mapping Setting Popup code end --%>
<asp:Button runat="server" ID="loadcol" OnClick="Load_advancegroupLB" Style="display: none" />
<asp:ListBox runat="server" ID="adavanceGrpngLB" SelectionMode="Multiple" AutoPostBack="false" Style="max-width: 25em; min-width: 13em; margin-left: 2em; margin-right: .5em; max-height: 60em;"></asp:ListBox>
<asp:Button runat="server" ID="Button3" OnClick="advancegroup_additem_Click" Style="position: absolute; margin-top: 1.1em;" Text=">>" />
<asp:Button runat="server" ID="Button4" OnClick="advancegroup_removeitem_Click" Style="position: absolute; margin-top: 3.2em;" Text="<<" />
<asp:ListBox runat="server" ID="ExadavanceGrpngLB" SelectionMode="Multiple" AutoPostBack="false" Style="max-width: 25em; min-width: 13em; width: 13em; margin-left: 3.1em; max-height: 60em;"></asp:ListBox>
<span>
<%-- <button type="button" id="Button5" runat="server" title="Rename this Rule." style="height: 2.2em !important" class="ml-1 fa fa-angle-double-up" ><i class="fas fa-edit"></i></button>
<button type="button" id="Button6" title="Delete this Rule." style="heighty: 2.2em !important" class="ml-1 mr-1 btn btn-sm btn-outline-secondary" ><i class="fas fa-trash-alt"></i></button>--%>
<%-- <asp:Button runat="server" class="ml-1 fa fa-angle-double-up rotate" ID="group_up" OnClick ="advancegroup_moveup_Click" Text="<<" Style="position: absolute; margin-top: 1.1em;"/>
<asp:Button runat="server" class=" ml-1 fa fa-angle-double-down rotate" ID="group_down" OnClick ="advancegroup_movedown_Click" Text=">>" Style="position: absolute; margin-top: 3.2em;"/>--%>
<%--02 July22 code[@*] Button--%>
<asp:Button runat="server" class="ml-1 fa fa-angle-double-up rotate" ID="group_up" OnClick="advancegroup_moveup_Click" Text="▲" Style="position: absolute; margin-top: 1.1em;" />
<asp:Button runat="server" class=" ml-1 fa fa-angle-double-down rotate" ID="group_down" OnClick="advancegroup_movedown_Click" Text="▼" Style="position: absolute; margin-top: 3.2em;" />
</span>
</ContentTemplate>
</asp:UpdatePanel>
</div>**strong text**
实际上,我正在“网上格式”框架中工作。 我的设想是,如果在文字箱中加入一字,就会触发“研究FilterTextAdvancedgrp”,而后者正在TextChange活动。 如果一改AutoPostBack = 真的,它就触发了这一功能,但第1页。 Load也是造成用户厌恶的触发因素。 我想触发OnTextChange,而不用触发页——Load功能。 如果我犯了错误,请纠正我的话,我是新的发展环境。 预先感谢。 下面是密码栏目,是我的奥特图汉事件代码。
public void searchFilterTextAdvancedgrp(object sender, EventArgs e)
{
string searchvalueadvgrp = (search_advgrp.Text).Trim(); //length > 0 --->clearSearchTextAdvancedgrp(null, null)
string[] advgrplistBoxItems = new string[adavanceGrpngLB.Items.Count];
WriteLog("***Advanced column length " + adavanceGrpngLB.Items.Count);
WriteLog("Advanced column values" + adavanceGrpngLB.ToString());
WriteLog(" **********List Items *********" + advgrplistBoxItems.ToString());
//081123 code[****] - start get target side columns, assign to advancegrouparraylist
for(int i =0; i< adavanceGrpngLB.Items.Count; i++)
{
advancedGroupingArrayList.Add(adavanceGrpngLB.Items[i].ToString());
}
//081123 code[****] - end get target side columns, assign to advancegrouparraylist
//code[@**] 16-Nov-22 code changed clear the textbox value code start
if (search_advgrp.Text.Length <= 0)
{
clearSearchTextAdvancedgrp(null, null);
return;
}
//code[@**] 16-Nov-22 code changed clear the textbox value code end
List<string> searchListAdv = new List<string>();
WriteLog("Target Array List " + advancedGroupItems.ToString());
// 081222 code[**] Ne need to Loop the Data Array List --
foreach (var item in advancedGroupingArrayList)
{
WriteLog("Values " + item.ToString());
if (item.ToString().ToLower().Contains(searchvalueadvgrp.ToLower())) searchListAdv.Add(item.ToString());
}
// --
//advancedGroupingArrayList
searchListAdv.Sort();
foreach (var eachItems in searchListAdv)
{
WriteLog("each items values adv " + eachItems.ToString());
adavanceGrpngLB.Items.Add(eachItems.ToString());
}
// Sort the ArrayList Directly --
//advancedGroupingArrayList.Sort();
adavanceGrpngLB.DataSource = searchListAdv;
adavanceGrpngLB.DataBind();
//--
// Set the Tooltip After Search
settooltipLB();//--
// 081222 end---
hidejson.Update();
WriteLog("===========" + searchListAdv.ToString());
adavanceGrpngLB_UP.Update();
}