Jquery Tree Grid

Hi,

I am using Jquery Tree Grid.

I want to change the height of the Tree Grid header.  

This is making me crazy!!!!

all I want is to change the height from 29 to 25 for example, I search all CSS files and can't find it than I searched all my files and still can't find it.

I don't know from where the inline style is getting populated.
I see the inline height for filtertreeGrid is 29px but I can't locate the file that populate the height.

I don't know!!! I looked everywhere in all my CSS in all my Jquery stuff nothing. It's like magic so,
I need your help please.

Thank you
Lulu

https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/index.htm?(arctic)#demos/jqxtreegrid/javascript-tree-grid-filter-textbox.htm


<div class="jqx-widget-header jqx-grid-toolbar" id="filtertreeGrid" style="left: 0px; top: 0px; width: 850px; height: 29px; visibility: inherit; position: absolute;">

Open in new window




<!DOCTYPE html>
<html lang="en">
<head>
    <title id="Description">Blaze Rule.</title>
    <link rel="stylesheet" href="CSS/jqx.base.css" type="text/css" />
    <script type="text/javascript" src="Script/Grid/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="Script/Grid/jqxcore.js"></script>
    <script type="text/javascript" src="Script/Grid/jqxdata.js"></script>
    <script type="text/javascript" src="Script/Grid/jqxbuttons.js"></script>
    <script type="text/javascript" src="Script/Grid/jqxscrollbar.js"></script>
    <script type="text/javascript" src="Script/Grid/jqxdatatable.js"></script>
    <script type="text/javascript" src="Script/Grid/jqxtreegrid.js"></script>
    <script type="text/javascript" src="Script/Grid/demos.js"></script>

    <script type="text/javascript">
        $(document).ready(function () {          
            // prepare the data
            var source =
            {
                dataType: "csv",
                dataFields: [
                    { name: 'EmployeeKey', type: 'number' },
                    { name: 'ParentEmployeeKey', type: 'number' },
                    { name: 'FirstName', type: 'string' },
                    { name: 'LastName', type: 'string' },
                    { name: 'Title', type: 'string' },
                    { name: 'HireDate', type: 'date' },
                    { name: 'BirthDate', type: 'date' },
                    { name: 'Phone', type: 'string' },
                    { name: 'Gender', type: 'string' },
                    { name: 'DepartmentName', type: 'string' }
                ],
                hierarchy:
                {
                    keyDataField: { name: 'EmployeeKey' },
                    parentDataField: { name: 'ParentEmployeeKey' }
                },
                id: 'EmployeeKey',
                url: 'employeesadv.csv'
            };
            var dataAdapter = new $.jqx.dataAdapter(source);
            // create Tree Grid
            $("#treeGrid").jqxTreeGrid(
            { 
			    width: 850,
                source: dataAdapter,
                pageable: true,
                columnsResize: true,
				sortable: true,
				filterable: true,                
			    filterMode: 'simple',
                ready: function()
                {
                    // expand row with 'EmployeeKey = 32'
                    $("#treeGrid").jqxTreeGrid('expandRow', 32);
                },
                columns: [
                  { text: 'FirstName', dataField: 'FirstName', minWidth: 100, width: 200 },
                  { text: 'LastName',  dataField: 'LastName', width: 200 },
                  { text: 'Department Name', dataField: 'DepartmentName', width: 150 },
                  { text: 'Title', dataField: 'Title', width: 300 },
                  { text: 'Birth Date', dataField: 'BirthDate', cellsFormat: 'd', width: 120 },
                  { text: 'Hire Date', dataField: 'HireDate', cellsFormat: 'd', width: 120 },
                  { text: 'Phone', dataField: 'Phone', cellsFormat: 'd', width: 120 }
                ]
            });
        });
    </script>
</head>
<body class='default'>
    <div id="treeGrid">

    </div>
</body>
</html>

Open in new window

lulu50Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
Can you post a link? All your script and css includes are local so we can't really test on the code posted.
0
lulu50Author Commented:
Hi Julian,

I can't upload any file from company computer

this is the link from where I got the grid

https://www.jqwidgets.com/jquery-widgets-demo/demos/jqxtreegrid/index.htm?(arctic)#demos/jqxtreegrid/javascript-tree-grid-filter-textbox.htm

Try to replicate the example and see if you can change the header inline style to a different color for example.

I just want to know, how to get to the inline style that shows on my browser.

Thanks,
Lulu
0
hieloCommented:
Instead of searching in the themes file, create your own "override" file.  That way you can always "reset" everything by just getting rid of your override file.  For example:
<link href="/path/to/original.css"/>
<link href="/path/to/overrides.css"/>

as for your issue, try adding this to "overrides.css" try:
.jqx-widget .jqx-grid-column-header, {height: 25px !important;}

Open in new window

0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Julian HansenCommented:
To build on hielo's post and lenamtl - if you follow the style guidelines in the link posted by lenamtl you will see the following entry

jqx-widget-header - applied to a Grid column, Toolbar, Statusbar and Groups Header.

Open in new window

This is the style you need to set - something like this
.jqx-widget-header {
  height: 25px !important;
}

Open in new window


Here is a sample theme stylesheet
http://www.jqwidgets.com/jquery-widgets-documentation/jqwidgets/styles/jqx.energyblue.css

So basically you create a new style sheet (CSS  file). Add the overrides you want on the items shown in the first link using the second as a guide. Save the file and include it in your html file AFTER the jqx.base.css file. That should do it.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lulu50Author Commented:
Thank you
0
Julian HansenCommented:
You are welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
jQuery

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.