[CLOSED] insert selected grid row text from context menu to currently focused textarea control's current cursor position

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] insert selected grid row text from context menu to currently focused textarea control's current cursor position

    Hi,

    I am trying to achive similar to the following example.

    http://examples1.ext.net/#/Toolbar/M...trols_In_Menu/

    But i need to insert selected grid rows text to the currently focused textarea control. In the example code

    <CellClick Handler="cellSelect(this, rowIndex, columnIndex, #{TextField1}, #{ContextMenu});" />
    you are passing the #{TextField1} expicitly. But, what i need is, i need to pass this dynamically (means any textarea control from which i have shown the context menu) and then, insert the selected grid row text to the that controls current cursor position.

    Is it possible to do this? if so, how?

    What i mainly need to know from this is that, when i open a context menu from any textarea control will the context menu item control knows from which control i have opened this menu?
    Last edited by geoffrey.mcgill; Feb 29, 2012 at 8:12 PM. Reason: [CLOSED]
  2. #2
  3. #3
    Daniil,

    Quote Originally Posted by ISI View Post
    What i mainly need to know from this is that, when i open a context menu from any textarea control will the context menu item control knows from which control i have opened this menu?
    Can we get the target control from which the context menu is opened?
  4. #4
    You could save it as a Menu property, like this:
    ContextMenu.targetControl = target;
  5. #5
    Daniil,

    With out assigning the target will the context menu contains the traget element from which text area control this was opened.
  6. #6
    I'm not 100% sure how all is configured on your side, so, I can't answer the question.

    Please provide a sample demonstrating the requirement.
  7. #7
    Daniil,

    My requirement is, In a form there may be more than three textarea controls to which a context menu will be attached. The context menu item contains a grid control from which user can select a row. When the user selects the row i need to insert the selected rows text to the control's current cursor position from which this context menu was opened.
  8. #8
    Well, the requirement seems to be clear.

    But it is not enough to answer your question:
    With out assigning the target will the context menu contains the traget element from which text area control this was opened.
    How do you open a context menu?
  9. #9
    Daniil,

    What i mean by "Open context menu" is when a user right click's on any of the textarea control to show the context menu.
  10. #10
    Well, I understand it.

    Be default a common browser context menu is opened when a user right click on TextArea.

    I suspect you open your own Menu on right click, isn't that so?

    Again, I just need to know how all is configured on your side to answer your question:
    With out assigning the target will the context menu contains the traget element from which text area control this was opened.
Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 2
    Last Post: Mar 19, 2012, 12:08 PM
  2. Replies: 5
    Last Post: Feb 28, 2012, 12:23 PM
  3. Replies: 1
    Last Post: Feb 17, 2012, 1:38 PM
  4. Context menu on tree grid
    By Mr.Techno in forum 1.x Help
    Replies: 20
    Last Post: Nov 17, 2011, 11:18 AM
  5. Replies: 0
    Last Post: Feb 08, 2010, 2:12 PM

Posting Permissions