User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: December 9, 2009 11:12 PM

If you would like to handle click event during client side, you could use the ClientSideEventOnButtonClick to handle button click event, or you could use ClientSideEventOnStackButtonClick in order to handle the stack button click event.

You will need to add this event handler in the page that contains the XAP. Here is the snippet:

<script type="text/javascript" language="javascript">
function WebFishEye1_OnClientClick(fishEyeObj, btnObj) {
//Click handler
}
</script>

We also provide server side event such as ButtonClick and StackButtonClick if you wish to handle the event in the server side.


Posted: December 8, 2009 3:06 AM

The 2009 R2 is scheduled to be released this week, at the latest December 11, 2009.

Posted: December 6, 2009 11:18 PM

The message box has already been shown in the Record row, however there seems to be a bug in WebGrid that caused a different behavior for NewRow row type. A bug report has been submitted to the developer. We will inform you if there is any progress or update regarding this issue.

In order to remove the cell value of the linked combo column, you will need to use the AfterItemSelected event handler of the parent WebCombo to set the cell value and text to empty string. Here is the snippet, Division column and SubDivision column is linked:

function wcDivision_OnAfterItemSelected(controlId)
{
var wcDivision = ISGetObject(controlId);

var grid = ISGetObject("grdObj");

grid.GetSelectedObject().ToRowObject().GetCell('SubDivisionID').SetValue("", true);
grid.GetSelectedObject().ToRowObject().GetCell('SubDivisionID').SetText("");

return true;
}


Posted: December 6, 2009 11:02 PM

The null reference error seems to be caused by a WebGrid bug. A bug report has been submitted to our developer. We will inform you if there is any update or progress regarding this issue.

Posted: December 4, 2009 3:49 AM

This behavior is designed in WebTreeView for performance concern. WebTreeView will not populate the Nodes object recusively during onload. It will populate the Nodes object during certain event such as expand. Or you could manually trigger it using Get("Nodes") or GetArrayNodes.

Posted: December 4, 2009 2:21 AM

The fix is scheduled to be deployed in the next major release of WebInput which coincide with the 2009 R2 release.

Posted: December 3, 2009 11:34 PM

Step 2 to 7 in the walkthrough has already detailed the requiredsteps to create the new GetDataBy query. Following all the steps in the article does not produce any error in my environment.

For MS SqlServer or Oracle, you should modify the query in the article to:

SELECT CustomerID, EmployeeID, Freight, OrderDate, OrderID, RequiredDate, ShipAddress, ShipCity, ShipCountry, ShipName, ShipPostalCode, ShipRegion, ShipVia, ShippedDate FROM Orders WHERE (CustomerID = @CustomerID)



Posted: December 3, 2009 10:49 PM

In you are using a RowChecker column, you will need to use this RowValidate client side event handler:

function WebGrid1_OnRowValidate(rowObject)
{
if(rowObject.getAttribute('type') == "NewRow")
{
rowObject.childNodes[1].innerHTML = '<input class="DefChkBox" type="checkbox" rowchecker="1" hidefocus="hideFocus"/>';
}
return true;
}
The provided snippet will work if the RowChecker column is the first column in the WebGrid.
Posted: December 2, 2009 10:22 PM

In order to get the correct length, please use the

ISGetObject("treePortfolioNav").Nodes[0].Get("Nodes").length

The GetArrayNodes function will load all the collection to the JS object. You could manually build the collection using the Get("Nodes") function.

Using WebInput build 216 which has been released on October 23, 2009 I have confirmed that issue has been fixed.

All times are GMT -5. The time now is 6:22 AM.
Previous Next