User Profile & Activity

Glenn Layaar Support
Page
of 99

The LoadValue(true) function will be available in the release hotfix today. The InstantLookup mode will only lookup item when the user leave the textbox, by using the Enter key, LostFocus, or clicking the dropdown icon, it will not be available after every keystroke. 

This mode will also solve the fast typer scenario you are having in the earlier post. 

I am not sure about the conflict you are having in the LostFocus, perhaps if you could give us the snippet of the function we could help you solve the issue.


Posted: October 26, 2009 4:00 AM
Per you request, I modified my first sample for composite key scenario.  In this sample, I buffer the parent composite key in a data column and bound the value in the WebGrid button column.   
Posted: October 25, 2009 11:13 PM
The issue for GetRowsCount and CheckedRows will be fixed in the next hotfix release.

Regarding the CheckedRows and multiple selection, you will need to use the function grid.GetCheckedRows(true) to retrieve the correct checked rows during multiple selection in the next hotfix.
Posted: October 25, 2009 11:06 PM

Using the northwind.dbml which has already been provided in the WebCombo sample as the Linq to SQL datasource, I have found no problem in in finding apostrophe data. Attached is the simple sample that I used to test this issue. Searching for chef anton's will result in chef anton's Cajun Seasoning autocomplete.

If you have not done so, please use the latest WebCombo 4 and WebUI Framework 3 , which is build 216 and build 704 respectively.  

Posted: October 23, 2009 12:46 AM

The snippet is for the WebGrid1_ButtonClick in the 4_Glenn.jpg attachment. In this case the ChildKey variable will be RetrieveClientLastSelectedObject KeyValues property. 

For the snippet to work, you will also need to use the RestoreExpandedChildRows="true" property in the LayoutSetting 

After discussing this matter with the developer, our suggestion for the scenario you are facing is to use the InstantLookup entry mode. This mode will ensure that the AfterItemSelected will be called during Adding or Searching existing item.  A sample of InstantLookup mode has been provided on the EntryMode_InstantLookup.aspx page in the WebCombo sample.

Will this be a favorable solution for your scenario? 

Posted: October 22, 2009 11:38 PM

You could check the Nodes.IsPopulate property to ensure whether the TreeView has completed the loading process. If it has not set the timeout to wait for the TreeView to complete its process. Here is the snippet:

function WebTreeView1_OnInitialize(ctrlId) {      AlertNodesAfterComplete();     
}
function AlertNodesAfterComplete() {
    var treeview = ISGetObject("WebTreeView1");
    if (treeview.Nodes.IsPopulate) {
        WebTreeView_GetNodes();
        WebTreeView_GetArrayNodes();
    }
    else {
        setTimeout(function() { AlertNodesAfterComplete(); }, 10);
    }
}

 

Posted: October 22, 2009 6:40 AM

I am still inquiring our developer regarding the status of this feature request. I will inform you as soon as I have any update regarding the issue.

Edited 10/23/2009

I just recieved an update from the Developer the feature request is still being worked on, currently I do not have any news on the ETA of this feature. I will inform you if I have have any solid information regarding the release of this feature.

Posted: October 22, 2009 4:12 AM

It seems you will need to use timeout function to wait for the WebTreeView to finish the initializing process to retrieve the correct value. In the attached modified sample, I use 500ms timeout to make sure the WebTreeView finish the initializing process before reporting the nodes length.

Posted: October 22, 2009 4:07 AM

Here is a simple sample that I has set up to illustrate the scenario you are trying to achieve. In our environment the self reference child table run without any issue.

All times are GMT -5. The time now is 2:01 PM.
Previous Next