jQWidgets Forums

jQuery UI Widgets Forums Grid Applying a theme to a jqxgrid

This topic contains 2 replies, has 2 voices, and was last updated by  Peter Stoev 8 years ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Applying a theme to a jqxgrid #94374

    ADrew2
    Participant

    Within angular I am trying to apply a theme to my grid below

                  <div class="panel-body">
                    <jqxGrid id='jqxTheme'
                      [width]='1505' [source]='dataAdapter' [pageable]='true' [height]='500'
                      [editable]='true' [columns]='columns'>
                   </jqxGrid>
    
                  </div>

    Within the index I set the theme property

     <link href="assets/css/jqx.base.css" rel="stylesheet">
      <link href="assets/css/jqx.energyblue.css" rel="stylesheet">
      <script type="text/javascript">
            $(document).ready(function () {
                // Set the theme.
                $("#jqxTheme").jqxGrid({ theme: "energyblue" });
            });
        </script>

    Errors in the console include:
    1) ReferencError: $ is not defined 2)Bootstrap’s JavaScript requires jQuery

    I believe I have almost solved it.
    Any help is much appreciated
    Thank you

    Applying a theme to a jqxgrid #94377

    ADrew2
    Participant

    Got it!

    <jqxGrid
        [width]='1505' [source]='dataAdapter' [pageable]='true' [height]='500'
        [editable]='true' [columns]='columns' [theme]='"energyblue"'>
     </jqxGrid>
    Applying a theme to a jqxgrid #94380

    Peter Stoev
    Keymaster

    Thanks for the update and input for other people using our Angular Grid component.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.