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'm having problems retrieving row colection from webcombo. My combo is serverside binded, and in clientside pageload event I'm trying to get rows from combo. However i get nothing from method GetRows(). Applying filters is working fine but variable rows is null, and setselectedindex(1) does nothing.
function setComboFilter(idMenu) { var combo = ISGetObject('cmbGodina'); var rows = combo.getRows(); combo.ClearAdditionalFilters(); combo.SetAdditionalFilters("[IdRedaMenu] = " + idMenu); combo.SetSelectedRowByValue(String(idMenu)); combo.SetSelectedIndex(1); }
Hi Nikola,
Glad that the solution that I gave is the one that you wanted. However, I think it must to show the dropdown because it will trigger the WebCombo to show its collection inside ResultBox so we can choose the value in there. After the value has been populated inside WebCombo we can select the value from resultbox. If you have any further question, please don't hesitate to ask us. Hope this helps.
Regards,Bernard
To achieve this scenario, you can open the resultbox first so WebCombo will load its value to ResultBox. And then when the value has been loaded, you can set the WebCombo's value from ResultBox. I also made you a simple sample regarding this problem. Could you look for my code and please tell me if there's misconfiguration in my code? Hope it will help you.
There has to be a better way, I mean i have to show the resultbox, open it on the screen and then close it, which for some reason doesn't happen immediately.
Ok here is what i want to do: I have a combo in which data is loaded on server side in InitializeDataSource event. On client side I have a menu, every menu item has ID. Click on menu item has to cause filter application on my combo according to clicked menuitem's ID. Also, when that happens, I want to select the first row in combo, and get the data from that selected row.
Now, I would like to do that without showing the result box.
Here is my combo:
<iswebcombo:WebCombo ID="cmbGodina" runat="server" AllowWildCardSearch="false" Width="200" Height="20" DataValueField="IdRedaMenu" DropDownRows="1000" ViewStateStorage="None" EnableWebResources="Auto" DataTextField="Naziv"> <LayoutSettings ComboMode="MultipleColumns" EnableAnimation="False" AlwaysShowAllRowsOnDropdown="true" EntryMode="AutoComplete" StatusBoxPosition="Top" StatusBoxVisible="false"> <ClientSideEvents OnAfterItemSelected="cmbGodina_OnAfterItemSelected" OnShowDropDown="cmbGodina_OnShowDropDown" /> </LayoutSettings> <Columns> <iswebcombo:WebComboColumn Name="Naziv" HeaderText="<%$GetString:00_pub_Name%>" BaseFieldName="Naziv" Width="200" /> <iswebcombo:WebComboColumn Name="IdObrasca" Hidden="true" RenderOnHidden="true" BaseFieldName="IdObrasca" /> <iswebcombo:WebComboColumn Name="DatumDo" Hidden="true" RenderOnHidden="true" BaseFieldName="DatumDo" /> <iswebcombo:WebComboColumn Name="XsltFile" Hidden="true" RenderOnHidden="true" BaseFieldName="XsltFile" /> <iswebcombo:WebComboColumn Name="ProcFile" Hidden="true" RenderOnHidden="true" BaseFieldName="ProcFile" /> <iswebcombo:WebComboColumn Name="AspxPage" Hidden="true" RenderOnHidden="true" BaseFieldName="AspxPage" /> </Columns> </iswebcombo:WebCombo>
This intersoft webcombo control has caused me to lose hours and hours of my time, and it is really non intuitive to use. I can do al the complicating stuff like dynamical databinding but i can't do simple stuff like selecting a row.
I dont' think something like that can be so complicated.
Bernard thank you for your effort. I've checked your sample, it is exactly what i need, and it works, but showing the drop down is just not an option here and I'll have to find workaround. But still, thank you.
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