Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    In post 12 we showed complete code that causes both itemId and itemName to be updated. In post 13 you showed some more code, which is not necessary. Now in post 15 you've trimmed critical code out of post 12 and claimed the approach we showed isn't working... Go back to the code for post 12 and it does work: both itemId and itemName are saved.

    Comment


      #17
      I have understood form your post #14, that the itemID as well the itemName are set automatically to the girds data without the “changed” event.

      This works, but there is a new problem with the display of the selected value after choosing a value form the combobox: The “changed” handler is required. If I remove it from the code in post #12, the grids column gets not updated after the user have done a selection form the combobox and has ended the editing of the grid clicking outside of the grid.

      Anyway, thank you for the help. This is OK for me. I have written a work around as described in post #11 and it works fine for me.

      Comment


        #18
        This has become kind of absurd :)

        Once again, post 12 is the right approach, and removing code from post 12 would not be expected to work - the code in post 12 is what you should do, in it's entirety, unmodified.

        Post 12 shows a changed() event and that changed() event is currently required to set the itemName in the related displayField. The itemId, on the other hand, is automatically set by the grid.

        Comment


          #19
          No, no everything is OK :) I agree, it is exactly like you wrote:

          Post 12 shows a changed() event and that changed() event is currently required to set the itemName in the related displayField. The itemId, on the other hand, is automatically set by the grid.
          It was just my misunderstanding. Thank your for your support!

          Comment

          Working...
          X