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
Hi,
I put your code inside the OnClick event,but the java script function is not invoked.
But if I put your code inside the loadPage event for the message LoadChild the JavaScript
function is invoked but the child is not refreshed yet.
The only way ,I found to filter also the child, is to create a local filter by javascript:
var grid1 = ISGetObject("WebGrid1");
var grid1Child = grid1.Tables["TableName"]; var newFilter = new WebGridFilter(); // create new Filter configuration newFilter.ColumnMember = "productnumber"; newFilter.FilterType = "Like"; newFilter.FilterText = document.getElementById('TextBox1').value; grid1Child.FilteredColumns.Add(newFilter); grid1Child.UpdateUI(); grid1Child.Refresh();
and call it in the event client click button.
In this way I'm be able to flter also the child table.
My problem now is that if I don't open at least one time the child grid
I get a java script error on the function:
grid1Child.UpdateUI();
Is there a way to avoid this?
Thanks a lot
Daniele Barbini.
Ok I start the filter by a button,
and on the c# code in the OnButtonClick event I call:
MyWebgrid.DataBind();
and the root table is refreshed in the right way but the child table no.
So where I have to put the code to call the java script function
that you suggested me.
thanks
Daniele
but I don't understan this:
If I try to open manually by code the WebCombo,for example after I inserted a row in the event OnAfterAdd,using this code
var combo = ISGetObject("WebComboProd"); combo.SetText(lastProductInserted); combo.LoadValue(); combo.SetFocus(); combo.ShowDropDown();
the combo does not show the list box!
This because (I think) using the method SetText with the last product number inserted
(a whole product number) the combo box returns only one row.
But why,If I'm using the property AlwaysShowAllRownOnDropDown set to true?
I expect all products even if I put in the setText method the last product inserted.
I should use another method instead of setText to initialize the search of the combo?
Because my target is to see all products
in the list box but highlight the product used in the setText method!!!!
Thanks in advanced,
Daniele Barbini
Hello Handy Surya,
I known if I put in the edit combo a product number for exmaple '0080 010' ,and the combo has
the property EntryMode on InstantLookup mode, if I click on the bootm arrow with the mouse
the drop down box is opened and the product highlight is properly '0080 010' and I see all products.
But if I simulate this behavior by code, for example after that I inserted the first product, in the client event
OnAfterAdd of the WebGrid calling the following methods of the combo:
combo.SetText(lastProductInserted) in this case last product inserted is the product below (0080 010)
combo.LoadValue()
I can see in the edit of the combo the last product inserted (0080 010)
but the dropdown list is not opened also if I use in the code the function ShowDropdown and if I set
the property ForcedDropDown to true.
So the first question Why the combo not open the DropDown list?
In addition if open the droodown list cliccking by the mouse on the bottom arrown of the combo,
the dropdown list is opend but I see only the product number '0080 010' instead of all.
I aspect this because the property AlwaysShowAllRownOnDropDown set to true.
The second question is:
Because I not see all products but only one?
Thanks again.
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