[CLOSED] Question about linked ComboBoxes in a GridPanel

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Question about linked ComboBoxes in a GridPanel

    Hi daniil
    I go through with http://mvc.ext.net/#/Form_ComboBox/L...ombos_In_Grid/ and found on every click "Edit" method is called if the combobox value not changed .

    can you please suggest me how I set ,the method "Edit" only called if cell value is changed.
    Last edited by Daniil; Nov 25, 2014 at 3:07 PM. Reason: [CLOSED]
  2. #2
    Hi daniil,Its surprise to me to forum behavior
    For some query I post a reply to http://forums.ext.net/showthread.php...=Linked+Combos
    But after some times I came back and check ,I see http://forums.ext.net/showthread.php...l=1#post210161 post is created as a new thread and removed from previously post thread.Is that forum's new functionality or some one edit?but I not found last edited by
  3. #3
    Hi @matrixwebtech,

    I did that that. I found your question worth an individual thread.

    can you please suggest me how I set ,the method "Edit" only called if cell value is changed.
    Adding this Before handler for the Edit DirectEvent helps.
    return e.value !== e.originalValue;
    I updated the examples in SVN and online with that change. Thank you for pointing out the problem.
  4. #4
    Hi Daniil
    Is it possible to get same functionality as " linked ComboBoxes in a GridPanel " ( http://mvc.ext.net/#/Form_ComboBox/L...ombos_In_Grid/ ) with " ComponentColumn as Editor "( http://mvc.ext.net/#/GridPanel_ComponentColumn/Editor/ ) ?
  5. #5
    I would say it should be possible.
  6. #6
    Hi Daniil,Good morning.
    I not find a example or reference,can you please give one?
    I use http://mvc.ext.net/#/GridPanel_ComponentColumn/Editor/ and set
    .Plugins(X.CellEditing()
                .Listeners(events => events.BeforeEdit.Fn = "beforeEdit")
                .DirectEvents(events => 
                {
                    events.Edit.Action = "Edit";
                  
                    events.Edit.ExtraParams.Add(new Parameter { Name = "field", Value = "e.field", Mode = ParameterMode.Raw });
                    events.Edit.ExtraParams.Add(new Parameter { Name = "index", Value = "e.rowIdx", Mode = ParameterMode.Raw });
                    events.Edit.ExtraParams.Add(new Parameter { Name = "recordData", Value = "e.record.data", Mode = ParameterMode.Raw });
                })
    but the Edit method not called.
    Last edited by matrixwebtech; Nov 14, 2014 at 5:04 AM.
  7. #7
    Morning! Where are you located, by the way? It looks we have morning at the same time:)

    Unfortunately, we don't have such an example.

    A CellEditing is not used at all if you edit a ComponentColumn. Please use a ComponentColumn's events.
  8. #8
    India (GMT +5.5).I think u r from Russia?
    Please use a ComponentColumn's events.
    can you please give some idea which event I use or some sample mockup can help.

    so I need to code like

     Html.X().ComponentColumn()
                    .Editor(true)
                    .DataIndex("DateField")
                    .Flex(1)
                    .Text("Date")
                    .Component(Html.X().DateField())
                    .DirectEvents(de =>
                    {
                        de.Edit.Action = "Edit";
                        de.Edit.ExtraParams.Add(new Parameter { Name = "recordData", Value = "e.record.data", Mode = ParameterMode.Raw });
                    })
    Last edited by matrixwebtech; Nov 14, 2014 at 6:36 AM.
  9. #9
    Yes, I am from Russia, GMT +4.

    can you please give some idea which event I use
    Yes, I would try with the Edit event as you do.

    or some sample mockup can help
    Unfortunately, we don't have such an example.
  10. #10
    Hi
    after adding
    return e.value !== e.originalValue;
    event fire after only value is changed.which is fine.but my question is can we set up event for specific column/columns?
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Linked Comboboxes
    By S.KARATHANASIS in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 30, 2014, 12:45 PM
  2. Linked comboboxes in a from
    By Peter P in forum 1.x Help
    Replies: 2
    Last Post: Apr 26, 2010, 1:47 PM
  3. Linked comboboxes
    By hbbazan in forum 1.x Help
    Replies: 2
    Last Post: Jan 11, 2010, 6:53 AM
  4. Replies: 4
    Last Post: Jun 23, 2009, 10:11 AM
  5. Linked Comboboxes
    By BrunoC in forum 1.x Help
    Replies: 4
    Last Post: Jan 29, 2009, 12:58 PM

Posting Permissions