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

Styling the Panel behind the Toolbar Buttons

3 Answers 1371 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Reid
Top achievements
Rank 2
Reid asked on 30 Nov 2018, 01:43 PM

I cannot figure out how to color the background of the Toolbar in a Kendo UI Grid.  I can style the buttons but I want the <div> or panel behind the buttons to be a different color that what you see in the attachment, white.

 

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 03 Dec 2018, 02:26 PM
Hi Reid,

You can achieve this requirement using the following CSS rule:
<style>
  div.k-toolbar
  {
    background-color: lime;
  }
</style>

Here is a live dojo sample:
https://dojo.telerik.com/APAyECoC/2

I hope this will prove helpful.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Reid
Top achievements
Rank 2
answered on 04 Dec 2018, 04:12 PM

Hi Eyup,

 

This does not work.  I tried it in a new Telerik ASP.NET Core solution freshly created just to test this and added that style declaration and the color did not change.  But after adding ..k-grid to the start of the style it did.  Another trick was to make the width 100%.

 

Thanks,

Reid

 

<style>
  k-grid div.k-toolbar
  {
    background-color: lime;
    width:100%;    

  }
</style>

 

0
Eyup
Telerik team
answered on 06 Dec 2018, 04:11 PM
Hello Reid,

Thank you for sharing your specific approach with our community. I hope it will prove helpful to other developers as well.
Feel free to turn to us if new questions arise.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Reid
Top achievements
Rank 2
Answers by
Eyup
Telerik team
Reid
Top achievements
Rank 2
Share this question
or