Results 1 to 2 of 2

Thread: Getting the selected value of Widget Coloumn in save button.

  1. #1
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    2
    Answers
    1

    Default Answered: Getting the selected value of Widget Coloumn in save button.

    I have Grid with selModel : checkboxmodel and also the grid is having widgetcolumn of type combobox. The Store of Widget coloumn is different from one used for Grid.

    There is an save button in which i should be able to pull all the selected row.
    var record = Ext.ComponentQuery.query('#grdMyOrdersId')[0];
    var s = record.getSelectionModel().getSelection();

    The issue is with the getting the selected value of each ComboBox in Save Button.


    Regards,
    Winter Jack

  2. I did happen to hack around lil bit and was able to find the solution. a new field was added to the model. on combo box selected index change , the id is assigned to the newly added field.


    Scenario
    Model1: Product
    Store1: products
    Model: Discount
    Store2: Discounts


    grid.store=products
    grid.cmbBox.Store=Discounts


    solution:
    A new Field DiscountId is added to the product model and on grid.cmbBox.selected index change , the discount id from Discounts model is assigned to newly created DiscountId field

  3. #2
    Sencha Premium User
    Join Date
    Aug 2016
    Posts
    2
    Answers
    1

    Default

    I did happen to hack around lil bit and was able to find the solution. a new field was added to the model. on combo box selected index change , the id is assigned to the newly added field.


    Scenario
    Model1: Product
    Store1: products
    Model: Discount
    Store2: Discounts


    grid.store=products
    grid.cmbBox.Store=Discounts


    solution:
    A new Field DiscountId is added to the product model and on grid.cmbBox.selected index change , the discount id from Discounts model is assigned to newly created DiscountId field

Similar Threads

  1. Action coloumn is not working in grid
    By Sunitha gudivada in forum Ext:Bugs
    Replies: 2
    Last Post: 8 Sep 2014, 2:51 AM
  2. Action coloumn is not working in grid
    By Sunitha gudivada in forum Ext 5: Bugs
    Replies: 1
    Last Post: 5 Sep 2014, 4:48 AM
  3. Replies: 1
    Last Post: 18 Feb 2014, 2:06 PM
  4. Replies: 15
    Last Post: 1 Jul 2010, 4:50 PM
  5. Clicking save button in formpanel does not save data
    By Crazy88s in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Jul 2008, 6:45 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •