|
Rank: Advanced Member Groups: Member
Joined: 3/9/2010 Posts: 119
|
This function was working when the grid was fullrowmode=true but after changing to fullrowmode=false it no longer returns the value to the cell. Any ideas whats going on?
Code: JavaScript
function grdDocWork_ddlclass_ClientSideEndEdit(cell) {
try {
var ddl = document.getElementById(idprefix + "dlgDocWork_ctl00_grdDocWork_edit_ctl02_ddlclass");
var selectedText = ddl[ddl.selectedIndex].text;
if (selectedText.indexOf("Select") == 0) {
selectedText = "";
}
if (cell.getItem().getKey() != null) {
cell.getItem().getCell(getMetaColIndex2(cell.getGrid(), "changed")).setValue(true);
}
return selectedText;
} catch (err) {
alert("ddlclass_ClientSideEndEdit - " + err);
}
}
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
We are not in a position to review your code. You can try to copy our sample code and see if it works for you. If that does not work for us please try to produce a full test page and post the test page. We will then try to run that and see what we can find.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/9/2010 Posts: 119
|
I didn't want you to review the code I wanted you to verify that weather fullrowmode is true or false when you return the dropdown list's selected text it should be displayed in the cell when the endedit function is no longer in scope?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
As far as I know this should not have anything to do with full row mode. If you do believe this has to do with full row mode then it might be a bug on our side, and you can send us a test page and we will be happy to investigate further.
Thanks!
|
|