Hi,
I have a requirement, where in I have a WebNumericEditor in a webdatagrid as one of the TemplateDataField s. I am trying to get the value in the WebNumericEditor on the client side java script by doing something like :
row.get_cell(1).get_element().children[0].value;
But the value that I am getting by doing this is something like "|0|016||" ( when the value in the WebNumericEditor is 6).
Can anyone please help me with the right way to get the exact integer value of my WebNumericEditor.
Hi David Young,
Could you please provide me with a sample for this.
Hi nancy1985,
You are most likely getting the hidden input used for the client state of the numeric editor. You should find the actual input used for the editor if you want to do this. Without buttons on the editor,it is probably children[1] (the second one). A better way to do this would be to find the actual numeric editor object via a $find(clientID) My guess is that the id would be composed of the {gridId}_{rowIndex}_{editorId}. If you inspect the html element, you can get an idea of what it is.
regards,David Young