GridBuilder Header

5 posts, 1 answers
  1. Scott
    Scott avatar
    7 posts
    Member since:
    Apr 2016

    Posted 05 May Link to this post

    Hello, I am trying to generate a header with the grid title at the top of my grid along with a close "x" button in the top right corner. Is this possible? 
  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1795 posts

    Posted 09 May Link to this post

    Hello Scott,

    Can you please provide some additional information on the requirement that you have? From what I understand, you need to display a row over the Grid with some text and a button. If that is the case, you can wrap the widget in a DIV element for example and place your "header row" with the title and the button over the Grid. Another option would be to customize the headers of the columns or the toolbar:
    Hope this helps.


    Regards,
    Konstantin Dikov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Scott
    Scott avatar
    7 posts
    Member since:
    Apr 2016

    Posted 10 May in reply to Scott Link to this post

    Thank you for your reply. A simple div tag did the trick for the title. 

    <div style="text-align:center">

        <b>TITLE HERE</b>
        <br /><br />
    </div>

    As for the close button, do you know how I would go about implementing that logic?

    Thanks,

    Scott

  5. Answer
    Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1795 posts

    Posted 12 May Link to this post

    Hello Scott,

    Can you please elaborate what should that close button do and how this is related to the Grid widget? If the question is related to the positioning of the button, there are several approach that could be used, but the easiest would be to use a table element with two cells (one for the title and one for the button). Another approach is to play around with the float of the elements (left for the title and right for the button).

    Looking forward to your reply.


    Regards,
    Konstantin Dikov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Scott
    Scott avatar
    7 posts
    Member since:
    Apr 2016

    Posted 12 May in reply to Konstantin Dikov Link to this post

    Hello Konstantin,

    I do apologize. It seems that all my answers can be handled outside of the Kendo functionality like you mentioned. Thanks for much for the help. 

Back to Top
UI for ASP.NET MVC is VS 2017 Ready