@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.
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.
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?
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?
@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:
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.
@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.
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..