This is a migrated thread and some comments may be shown as answers.

Allow other Tags in KendoTags

2 Answers 89 Views
General Disccussions
This is a migrated thread and some comments may be shown as answers.
Mathias
Top achievements
Rank 1
Mathias asked on 28 Apr 2015, 10:43 AM

 Hi There,

It would be nice if i could do that: 

 

<kendo:grid name="verbrauchsprofile"
                        <c:if test="hasPermissionToCreate">
                    <kendo:grid-toolbar >
                 
                        <kendo:grid-toolbarItem name="create" text="Neues Verbrauchsprofil" />
                         
                    </kendo:grid-toolbar>
                    </c:if>
.....
</kendo:grid>

 

now there is an Exception 

javax.servlet.jsp.JspException: The <kendo:grid-toolbarItem> tag should be nested in a <kendo:grid-toolbar> tag.
at com.kendoui.taglib.BaseTag.findParentWithClass(BaseTag.java:133)
at com.kendoui.taglib.grid.ToolbarItemTag.doEndTag(ToolbarItemTag.java:21)

 

By disallowing other Tags than Kendo Tags, you obstruct many opportunities of what you can do.

I need that to check permissions, and so on and not every tag has an "hidden" attribute to change its visibility

 

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 29 Apr 2015, 10:48 AM
Hi Mathias,

Which version are you using? We have added support for a similar use case recently. 

Find attached as sample JSP web application which should behave as expected with the latest official version 2015.1.408.

Regards,
Atanas Korchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Mathias
Top achievements
Rank 1
answered on 29 Apr 2015, 10:54 AM

Hi Atanas, 

we are still stuck to 2014.2, but now i have a good reason to update,

thanks

 

Mathias

 

 

 

Tags
General Disccussions
Asked by
Mathias
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Mathias
Top achievements
Rank 1
Share this question
or