User Profile & Activity

Glenn Layaar Support
Page
of 99
Posted: February 8, 2010 10:46 PM

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

Posted: February 8, 2010 10:44 PM

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

Posted: February 8, 2010 10:35 PM

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

Posted: February 8, 2010 10:33 PM

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

We have recently released WebUI Studio 2009 R2 Service Pack 1 which includes the fix for this issue. Please click here to read the official press release.

You could also read which fix or enchancement included in the latest build by visiting the support page and clicking the control name located on the Right Pane "Latest Builds".

Thank you for the page sample. I have replicate the issue in my environment. The behavior in IE could be corrected using this workaround:

function _WebGrid_OnEnterEditMode(controlId, tblName, editObject) 
{
var _WebGrid = ISGetObject(controlId);

var cellObj = editObject.ToCellObject();

if (cellObj.Name == "Priority_WebGridColumn") {
var selIndex = editObject.element.length - 1;
for (var i = 0; i < editObject.element.length; i++) {
if (editObject.element.options[i].value == cellObj.Value) {
selIndex = i;
break;
}
}

editObject.element.selectedIndex = selIndex;
}

return true;
}

I have also inform the issue to our developer so it could be fixed in the future WebGrid release.

Posted: February 8, 2010 10:10 PM

You could try inserting the new element during OnEnterEditMode WebGrid client side event handler. Here is the snippet that I used to achieve your desired result:

function _WebGrid_OnEnterEditMode(controlId, tblName, editObject) {
var _WebGrid = ISGetObject(controlId);

var cellObj = editObject.ToCellObject();

if (cellObj.Name == "Priority_WebGridColumn") {

if (editObject.element.getElementsByTagName('optgroup').length == 0) {
var newGrp = document.createElement('optgroup');
newGrp.setAttribute('label', '--- PLEASE SELECT ---');

var length = editObject.element.length;
for (var i = 0; i < length; i++) {
newGrp.appendChild(editObject.element.options[0]);
}

editObject.element.appendChild(newGrp);
}
}

return true;
}



All times are GMT -5. The time now is 9:06 PM.
Previous Next