-
28 Apr 2010 2:08 AM #1
Single Cell Selection in TreeEditor
Single Cell Selection in TreeEditor
Ext.tree.ColumnTreeEditor is using DefaultSelectionModel. I wanted to know where there is any other model or custom function written, which can select multiple cells in one column in the grid by using the SHIFT key. The MultiSelectionModel does not serve my requirement as the entire row will be selected. What I want is like the I am the CellSelectionModel in the grid.
For Eg:
ID Name Desc
1 -Item1 SomeDEsc1
2. - SubItem1 SomeDEsc2
3. -SubsubItem1 SomeDEsc3
4 -Item2 SomeDEsc4
5. - SubItem2 SomeDEsc5
6. -SubsubItem2 SomeDEsc6
The Data is populated using JSON. The requirement is that I want to copy desc cell in the first row, Copy it using Ctrl+C, then select desc cell in the 2nd row, press shift and click on desc cell of 6th row, then Paste the copied value in all the selected cells
And then the tree should look like:
ID Name Desc
1 -Item1 SomeDEsc1
2. - SubItem1 SomeDEsc1
3. -SubsubItem1 SomeDEsc1
4 -Item2 SomeDEsc1
5. - SubItem2 SomeDEsc1
6. -SubsubItem2 SomeDEsc1Last edited by snehap.1284; 28 Apr 2010 at 2:10 AM. Reason: Indentation Correction
-
28 Apr 2010 8:40 AM #2
I found these links to you
http://www.extjs.com/forum/showthrea...te-from-a-grid
http://www.extjs.com/forum/showthrea...-cell&p=154426
good luck
-
29 Apr 2010 10:34 PM #3
Thanks issameddine..
But these links give information about the Grid.
Where as wht I am looking for is in editable Tree. ColumnTreeEditor that I mentioned in the previous post is created as followed
Ext.extend(Ext.tree.ColumnTreeEditor, Ext.tree.TreeEditor)
{
code to set other relevant attributes
}
d u knw abt any link which provides single cell selection in the editable tree? I am trying to search for it from nearly one week now
but in vain
-
29 Apr 2010 11:52 PM #4
Hello, I m Sorry
in this link, look reply number 7, I think it's the same idea as yours
http://www.extjs.com/forum/showthrea...-example/page3
good luck
-
10 May 2010 5:54 AM #5
-
10 May 2010 6:00 AM #6
not at all my friend, I hope you've found the solution. shares it
سبحان الله و الحمد لله و لا اله إلا الله و الله أكبر و لا حول ولا قوة إلا بالله
اللهم صل وسلم وبارك على نبينا وحبيبنا محمد واله الطيبين الطاهرين
سبحان الله و بحمده عدد خلقه و رضا نفسه و زنة عرشه و مداد كلماته


Reply With Quote