Allow other Tags in KendoTags

3 posts, 1 answers
  1. Mathias
    Mathias avatar
    15 posts
    Member since:
    Oct 2014

    Posted 28 Apr 2015 Link to this post

     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. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 29 Apr 2015 Link to this post

    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!
     
  3. UI for ASP.NET AJAX banner
  4. Mathias
    Mathias avatar
    15 posts
    Member since:
    Oct 2014

    Posted 29 Apr 2015 in reply to Atanas Korchev Link to this post

    Hi Atanas, 

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

    thanks

     

    Mathias

     

     

     

Back to Top