Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
WebDropDown filter with Unicode - WebDropDown multiple columns
posted

The first, sorry if this thread existed, but I don't find that in forums

I'm have two problem with Webdropdown

1. WebDropDown Filter with Unicode:

Previously, I'm used Net Advantage version 10.3 and filter with Unicode data input, it's worked fine. Now, I'm upgrade to Net Advantage version 13.1  and it's not         work.

2. WebDropDown multiple columns

See my example:

<ig:WebDropDown ID="Dropdown_Test" runat="server" EnableAutoCompleteFirstMatch="false"
Width="200px" EnableViewState="true" EnableAutoFiltering="Server" EnableLoadOnDemand="True"
RowHeightDefault="16px" EnableClosingDropDownOnSelect="True" PageSize="50" Height="20px">
<ItemTemplate>
<ig:WebDataGrid runat="server" ID="WDG_Grid_Inside_DropDown" Height="170px" Width="100%" EnableViewState="true"
AutoGenerateColumns="False" rowheightdefault="20px" Font-Bold="False" EnableDataViewState="false"
DataKeyFields="ID" DataSourceID="SqlDataSource1" ShowHeader="False" EnableAjax="False"
OnDataFiltered="WDG_Grid_Inside_DropDown_DataFiltered">
<Columns>
<ig:BoundDataField DataFieldName="ID" Key="ID" Hidden="true">
<Header Text="ID" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="Descr" Key="Descr" Width="100%">
<Header Text="Descr" />
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="Source_Desc_Lkup_Cd" Key="Source_Desc_Lkup_Cd" Hidden="true">
<Header Text="Source_Desc_Lkup_Cd" />
</ig:BoundDataField>
</Columns>
<Behaviors>
<ig:Filtering Visibility="Hidden">
</ig:Filtering>
<ig:Activation>
</ig:Activation>
<ig:Selection CellClickAction="Row" RowSelectType="Single">
<SelectionClientEvents RowSelectionChanged="ctl405_WDG_Grid_Inside_DropDown_Selection_RowSelectionChanged" />
</ig:Selection>
</Behaviors>
<ClientEvents Initialize="Init" />
</ig:WebDataGrid>
</ItemTemplate>
<ClientEvents ValueChanging="filterGrid" />
</ig:WebDropDown>

Client - side

var wdg;
function Init(sender,e) {
wdg = sender;
}

function ctl405_WDG_Grid_Inside_DropDown_Selection_RowSelectionChanged(sender, eventArgs) {
var drop = $find("Dropdown_Test");
var row = eventArgs.getSelectedRows().getItem(0).get_cell(0).get_value();
drop.set_currentValue(row, true);

drop._elements["Input"].focus();
drop.closeDropDown();
}

function filterGrid(sender, args) {
var columnFilter = wdg.get_behaviors().get_filtering().create_columnFilter("Descr");
var condition = columnFilter.get_condition();
condition.set_rule($IG.TextFilterRules.BeginsWith);
var dDown = $find("Dropdown_Test");
condition.set_value(dDown._elements["Input"].value);
// Create an array for the two filters
var columnFilters = new Array(columnFilter);
// Add array of filters
wdg.get_behaviors().get_filtering().add_columnFilter(columnFilter);
// Call apply filter
wdg.get_behaviors().get_filtering().applyFilters();
//document.getElementById("BT_Filter").click();

}

I want to filter on the WebDropDown but I have been getting an error: "ASP.NET Ajax client-side framework failed to load."

How can I solved this issue?

Thanks !