Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1763
Get the displayed text from WebCombo
posted

Hi to you all.

I'm trying to make some sort of "text changed" javascript function for the WebCombo. I'm repopulating the Web Combo using my own Ajax function but I have to call this only when the text in the editable part of the web combo has changed. Since my WebCombo is an editor for an UltraGridColumn, I'm thinking of handling the BeforeEnterEditMode and BeforeExitEditMode handlers for the cell to check what was the text from the combo before entering to edit it and what it is after, in order to see if it's been changed. Anyway, I'm having some trouble to find the property or method that allows me to get the Displayed Text in the WebCombo to store it and compare it later when exit editing.

 Is there a way to do thig, to get this text? Should I think of another way to get this "text changed" functionality? Any suggestions?

Thanks a lot.

Parents
No Data
Reply
  • 1763
    Verified Answer
    posted

    So I found the answer by searchin through the forums a little bit more. Found this line in a sample posted in the forums combo.setDisplayValue(displayText); and I figured there should be the get method as well..

    What I'm doing is to store the value rendered to the webCombo in the AfterEnterEditMode function and I compare it to the value the combo has when the BeforeExitEditMode event es fired. This seems to be working just fine.

Children
No Data