1. #1
    Sencha User poojagarg89's Avatar
    Join Date
    Sep 2011
    Location
    Ahmedabad,India
    Posts
    213
    Vote Rating
    0
    poojagarg89 is on a distinguished road

      0  

    Default how to get selected value of combo box into grid

    how to get selected value of combo box into grid

    I have a combo box..........in wich different values are there
    M selecting a value and saving the form.................So I want wen I click on save the selected value of combo box shd get loaded into grid.......

    but the prob is that m able to save the form but it is displaying all the values of combo box into the grid...........where I want only the selected value of combo box shd appear in the grid

    the code m using for getting values of combo box into grid is :

    Code:
    role_id_1 = Ext.getCmp("user_role_99").getValue(); roleId_store_grid.insert(0, {'roleIdInGrid':role_id_1});             
    roleId_store_grid.load();
    please help me out with this.............I used

    recordType({newRecord:true})

    so its giving an
    error: that recordType is not a constructor

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,099
    Vote Rating
    98
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default

    if you post the code of the grid and the combo box also, that might help others have a better idea of your problem.

    try using getRawValue() for getting the value of the combobox if you are not using a valueField config in the combo box.

    also, after adding the new row using insert, shouldnt you sync the store to the server instead of loading it?

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    13
    Vote Rating
    0
    2ajaypatel is on a distinguished road

      0  

    Default

    Hello,

    what version of Extjs are you using?

  4. #4
    Sencha User poojagarg89's Avatar
    Join Date
    Sep 2011
    Location
    Ahmedabad,India
    Posts
    213
    Vote Rating
    0
    poojagarg89 is on a distinguished road

      0  

    Default I got the solution

    hey I got the solution by myself well I did mistake in the


    roleId_store_grid.insert(0, {'roleIdInGrid':role_id_1}); roleIdInGrid as it was mismatching the name of the ID of gridPanel........

    Thnx for help

  5. #5
    Sencha User
    Join Date
    Oct 2011
    Posts
    3
    Vote Rating
    0
    harry1 is on a distinguished road

      0  

    Default

    Thank you for the reply...
    Pajaro Dunes
    Pajaro Dunes Rentals

  6. #6
    Sencha User
    Join Date
    Sep 2011
    Location
    Indore India
    Posts
    14
    Vote Rating
    0
    gauravbdubey is on a distinguished road

      0  

    Default option for remember password in sencha touch application

    I want an option of remember for the user when user entar the username /password
    is it possible in Iphone and I pad
    Thank's in add

  7. #7
    Sencha User poojagarg89's Avatar
    Join Date
    Sep 2011
    Location
    Ahmedabad,India
    Posts
    213
    Vote Rating
    0
    poojagarg89 is on a distinguished road

      0  

    Default

    Hey checkout this pdf's page no. 10 hopefully u'll get ur solution for checkbox field
    but the look n style will be changed for Iphone and Ipad, it will not be same as we have checkbox in our browser...


    http://www.manning.com/garcia2/STiA_meap_ch01.pdf

  8. #8
    Sencha User
    Join Date
    Sep 2011
    Location
    Indore India
    Posts
    14
    Vote Rating
    0
    gauravbdubey is on a distinguished road

      0  

    Default

    My problem is not a chek box
    i want a chek box with remember password field and user can save his/her password

  9. #9
    Sencha User poojagarg89's Avatar
    Join Date
    Sep 2011
    Location
    Ahmedabad,India
    Posts
    213
    Vote Rating
    0
    poojagarg89 is on a distinguished road

      0  

    Default

    I dont think there is such a special checkbox for remember password u need to code the functionality behind that checkbox for saving his/her password

  10. #10
    Sencha User
    Join Date
    Sep 2011
    Location
    Indore India
    Posts
    14
    Vote Rating
    0
    gauravbdubey is on a distinguished road

      0  

    Default Remember Password

    Thank's