Results 1 to 5 of 5

Thread: Reg. TreeGrid

  1. #1
    Sencha User After2050's Avatar
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    64

    Default Reg. TreeGrid

    Hi,

    How I can include a checkbox column in a TreeGrid?
    Also how I can use inline editing in TreeGrid?
    Any suggestions will be greatly appreciated.

    Thanks & Regards
    Dnana

  2. #2
    Sencha User
    Join Date
    Feb 2008
    Posts
    156

    Default

    > "How I can include a checkbox column in a TreeGrid?"


    You could use the tpl config attribute:

    Code:
    var tree = new Ext.ux.tree.TreeGrid({
    	id: 'myTree',
    	columns:[{
    		header: 'Check Column',
    		width: 50,
    		dataIndex: 'check_value',
    		xtype: 'tgbooleancolumn',
    		tpl: '<tpl for="."><input type="checkbox" {check_value}"></tpl>'
    	}],
    	...
    });

  3. #3
    Sencha User After2050's Avatar
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    64

    Default

    Thank you. I'll give it a shot.

  4. #4
    Sencha User After2050's Avatar
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    64

    Default

    I see a problem there, all the checkboxes are not checked. The problem is in tpl

    Code:
    tpl: '<tpl for="."><input type="checkbox" {check_value}"></tpl>'
    I couldn't able to solve it. Any Help???

  5. #5
    Sencha User After2050's Avatar
    Join Date
    Mar 2010
    Location
    Bangalore, India
    Posts
    64

    Default

    Solved! I changed the tpl as below,

    Code:
    tpl: '<tpl for="."><input type="checkbox" <tpl if="check_value == true">checked="checked" </tpl> /></tpl>'
    Is there any better way?

Similar Threads

  1. Replies: 4
    Last Post: 18 Sep 2010, 12:30 PM
  2. Replies: 8
    Last Post: 24 Feb 2010, 11:55 PM
  3. Require help in Drag and Drop utility from TreeGrid to TreeGrid
    By livinglegends in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 23 Nov 2009, 2:41 AM
  4. Replies: 1
    Last Post: 26 Aug 2009, 10:54 AM
  5. Is there ExtJS TreeGrid similar to ExtGWT TreeGrid?
    By jbird526 in forum Community Discussion
    Replies: 0
    Last Post: 16 Jun 2009, 4:20 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
  •