iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
i have 2 questions about a webcombo that i use to show all the contacts of a department.
1- There is a possibility to eliminate the filtering of the webcombo?
The combo for default should show the first contact of the department (i developed this part) but if i try to open the combo for choose another contact the combo don't show all the contacts but only the default contact ( because it filtering about the data insert in the text of the combo, infact if don't insert data in the text of the combo, the combo show all the contacts ).
I try to make a workaround : i define a method that clear the combo after the dropdown list was open (in this way i see all the contacts) but it works if i use the mouse to open the combo, but not work if i try to open the combo with the down key
function WebComboContact_OnShowDropDown(){ var combo = ISGetObject("WebComboContact"); combo.ClearSelection();}
2 - there are the possibility to set the row of the combo dynamically: if i have a department with 10 contacts the combo show the 10 contacts, if i have a department with 1 contact the combo show only one contact
This is a part of the code of my combo
DataSet Definition
<isdatasource:isdatasource id="ISContact" runat="server" enablecaching="No" schemaname="Wuerth.Phoenix.Speedy.OrderlineGrid.DataSet1"> <tables> <ISDataSource:ISDataSourceTable SelectMethod="GetData" TableName="FilteredContact" TypeName="Wuerth.Phoenix.Speedy.OrderlineGrid.DataSet1TableAdapters.FilteredContactTableAdapter"> <SelectParameters> <asp:QueryStringParameter Name="speedy_departmentid" QueryStringField="speedy_departmentid" Type="String" /> </SelectParameters> </ISDataSource:ISDataSourceTable> </tables> </isdatasource:isdatasource>
WebCombo Define
<ISWebCombo:WebCombo ID="WebComboContact" runat="server" DataMember="FilteredContact" DataSourceID="ISContact" DataTextField="FullName" DataValueField="Contactid" Height="20px" UseDefaultStyle="True" Width="200px"> <FlyPostBackSettings PostControlState="False" PostViewState="False"/> <LayoutSettings StatusBoxVisible="False" TextBoxMode="Editable" AlwaysShowAllRowsOnDropdown="True" ResultBoxWindowType="Normal"> <ClientSideEvents OnShowDropDown="WebComboContact_OnShowDropDown" /> </LayoutSettings> </ISWebCombo:WebCombo>
Column define
<ISWebGrid:WebGridColumn Caption="Contacts" DataMember="speedy_contactid" EditType="WebComboNET" Name="contactid" Width="150px" WebComboID="WebComboContact"> <ValueList DataMember="FilteredContact" DataSourceID="ISContact" DataTextField="FullName" DataValueField="Contactid"> </ValueList> </ISWebGrid:WebGridColumn>
Thanks in advance
armore1972
Hi armore1972,
Actually to achieve the first scenario, you doesn't need to use client side event. You should set AlwaysShowAllRowsOnDropdown property in LayoutSettings property to True value to achieve this scenario. You can als set the filter and change the data inside resultbox using client side event. I have attach my sample here. Please look at my sample and please let me know if you have any further problem regarding this scenario. Hope this helps.
Regards,Bernard
SELECT Contactid,FullName FROM Contact where speedy_departmentid =@speedy_departmentid order by FullName asc
the datasource:
The definition of webcombo:
<ISWebCombo:WebCombo ID="WebComboContact" runat="server" DataMember="FilteredContact" DataSourceID="ISContact" DataTextField="FullName" DataValueField="Contactid" Height="20px" UseDefaultStyle="True" Width="200px" > <FlyPostBackSettings PostControlState="False" PostViewState="False"/> <LayoutSettings StatusBoxVisible="False" TextBoxMode="Editable" AlwaysShowAllRowsOnDropdown="True" ResultBoxWindowType="Normal"> </LayoutSettings> </ISWebCombo:WebCombo>
the column:
Thanks
I tried to replicate your issue in our local end. Using the configuration that you used in your sample. Unfortunately, this matter doesn't happen in our local end. I attach my sample and screenshot here here. Please let me know if I'm missing some configuration in my sample. Maybe a simple sample that can replicate this issue in our local end could help us to trace where the problem occurs. I will gladly help you to resolve it. Look forward to hear any feedback from you so I can help you further.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname