开发者

Generating id for tr datatable JSF

开发者 https://www.devze.com 2022-12-18 05:38 出处:网络
Is it possible to progrmmatically generate id for the <tr> in开发者_开发百科 datatable?Override the renderer associated with UIData component.

Is it possible to progrmmatically generate id for the <tr> in开发者_开发百科 datatable?


Override the renderer associated with UIData component.

It's only fairly a lot of work and I don't have the impression that you're skilled enough to do that. I think it's better to elaborate more about the problem / functional requirement for which you thought that this is the solution, so that we can suggest better (more correct) solutions for what you're trying to achieve.


Try this. It works for me.

$('[id^='+tab+'][id$='+componentId+']').each(function(){
        if(!($(this).is(":checked"))) {
                $(this).parent().parent().hide();
        }
    });

I am hiding the rows for which checkbox is not selected.

0

精彩评论

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

关注公众号