1. #1
    Sencha User
    Join Date
    Jan 2009
    Posts
    31
    Vote Rating
    0
    bhvijaykumar is on a distinguished road

      0  

    Default Editor Grid Plugin

    Editor Grid Plugin


    I am trying to develop a Grid plugin which will allow editing only first row . I tried a different approach by adding the widgets to the header but it does not work as i intended. (See the screen shot below) .

    Could anyone provide me a way to implement this ?

    untitled.JPG
    Vijay

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,714
    Vote Rating
    438
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Why not just add the event listener "beforeedit" and see if it's the first row?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jan 2009
    Posts
    31
    Vote Rating
    0
    bhvijaykumar is on a distinguished road

      0  

    Default


    I think i did not make it clear , the first row will act as editor for rest of the rows . So if you click on the second/third row the data from that will load in the first one and the user is allowed to edit it (If you select multiple rows common data is loaded in to the first row).

    I tried your method as well but i had to proxy many events (like sorting , the first one should be first always) so thought i will develop a plugin to attach the editor just below the header to handle and avoid handling the grid events . Not sure if its a good way but i need some suggestions how to do it .
    Vijay

Similar Threads

  1. Regarding html editor counter plugin usage
    By aomadevelopers in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 30 Nov 2009, 11:49 PM
  2. Row Editor with CheckColumn as plugin
    By dan007 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 29 Nov 2009, 2:25 PM
  3. Row Editor with CheckColumn as plugin
    By dan007 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 28 Nov 2009, 11:37 AM