-
26 Jun 2012 7:59 AM #41
@crocop21. Please take a look at page 3 of this thread. You'll need to switch around the dependencies between apply and applyTemplate in CTemplate.
-
26 Jun 2012 8:29 AM #42
-
26 Jun 2012 8:33 AM #43
That should be all it needs to fix it. I suspect you have a caching problem. Could you check the script source in your debugger to make sure it's loading the correct file?
-
26 Jun 2012 8:58 AM #44
-
28 Jun 2012 1:33 AM #45
A bit difficult to tell what's going on. From those screenshots it's clear that you've been renaming my classes and my guess would be that you've got another copy lying around somewhere that is being picked up. It should be fairly easy to tell what's going on using some breakpoints and a debugger. Try putting a breakpoint in the apply method of CTemplate and see what happens.
You might also like to take a look at the stacktrace. It'll be crazily long but just the bit near the top should give you a hint about why the infinite recursion is happening.
-
9 Jul 2012 9:43 AM #46
Hi..
i'm newbie in extjs andI'm looking for a tip to solve a problem with an extjs grid panel. The situation I'm facing is the following :
i have a grid panel with a number of columns and one column with numberfield type.i want to set the minValue and maxValue for the column but it's differrent for each row. i try to get the cell type but i can't get numberfield type. Does anyone know how to solve this problem?can i use the component column to solve this?
thanks,
Regards Fredy.
-
10 Jul 2012 10:32 PM #47
ComponentColumn can be used with multiple xtypes?
ComponentColumn can be used with multiple xtypes?
Hi..
Can I use 2 or more xtypes with column component?? Reason - I need to have more than 2 text fields (2 editors ) in a single column of my editor grid... Can I achieve this using Column Component?
-
11 Jul 2012 8:43 AM #48
@fredy_dk88. You face a choice between using the built-in editing plugins or this UX. I think the scenario you've described could be achieved using either approach. Personally I would always advise using the built-in plugins if they meet all your requirements but the Component Column can be used in many cases where those plugins just aren't applicable.
In the case of the minValue/maxValue you should be able to do it using CellEditing. If you listen on the beforeedit event and tweak the numberfield based on the passed record I see no reason why it wouldn't work:
http://docs.sencha.com/ext-js/4-1/#!...ent-beforeedit
If you go down the Component Column route the approach would be to return a different numberfield from the renderer based on the record passed to the renderer function. That bit would be quite easy but you'd also need to manage updating the underlying record yourself, something the editing plugins do automatically. The button/progressbar example on my website is probably the one to study if you want to go for this option.
-
11 Jul 2012 9:04 AM #49
@csaparna. You can't return multiple xtypes for the same cell but you can achieve the desired effect. Just return a container with both textfields in it and a suitable layout.
I'll give some thought to adding a new demo for this as it seems to be a popular request.
-
12 Jul 2012 8:11 AM #50
Thanks Skirtle..i try use beforeedit event as you suggest and it's work great and easy to implement, yesterday i just focus to get the column or the cell type and forget using an event..after i use the event,it's working..



Reply With Quote

