开发者

how to get id of fieldset

开发者 https://www.devze.com 2023-03-20 06:53 出处:网络
my question is similar to Extjs 4 How to get id of parent Component?. But i a开发者_运维问答m looking solution for it. As the answer given in the question doesn\'t seems to be useful

my question is similar to Extjs 4 How to get id of parent Component?.

But i a开发者_运维问答m looking solution for it. As the answer given in the question doesn't seems to be useful

In my case i m having button in my each fieldset and also i m creating these fieldsets dynamically which contain button inside it.

Now on click event of button which is inside fieldset i want to get its corresponding fieldset id


This code will return parent fieldset:

button.up("[xtype='fieldset']")


Mahesh,

ACtully the problem in our case is , it is not extending the Ext.form.FieldSet. So look this Extjs 4 How to get id of parent Component?

As Zango said, **button.up("[xtype='fieldset']")** will work for you.

Thanks, Kunal

0

精彩评论

暂无评论...
验证码 换一张
取 消