How to change the shape of kendo grid 'th' - kendo-ui

I want to create kendo grid' another 'th'.
I tried to prepend 'th'. but I don't like the 'th' shape.
I've also tried colspan the 'th' but it didn't work for changing the shape.
How can I change the 'Debit' and 'Credit' th?
this is my code in kendogrid.
$("#divBillSumBalanceGrid").find("thead").first().prepend("<tr><th class='k-header' style='text-align:center;' colspan='2'>Debit</th><th class='k-header' ></th><th class='k-header' style='text-align:center;' colspan='2'>Credit</th></tr>");
$('th').remove('.k-group-cell.k-header');
this is my current kendogrid 'th'

Related

Styling labels with amcharts

Is it possible to style the Category axis labels as seen in the screenshot? Only basic text is allowed in the settings (no HTML) and using :before or :after selectors doesn't have any effect. Any ideas?
If you're using AmCharts 3, you can set the labelText property of a AmGraph to a string containing tags like [[value]], [[description]], [[percents]], [[open]], [[category]] and HTML tags. For example, you could use something like:
labelText: "<b>[[value]] BILLION</b><br>[[category]]"
To change color of a category, when config amcharts, you need to define some colors in "colors" array.
What else do you need in term of "style" ?

Need to extend grid column and row borders to bottom of Kendo grid

I am adding columns to kendo ui grid dynamically.
When there are many rows in the grid the rows are having borders and displaying it correctly.
But, when there are very few rows in the grid the last row or doesn't seem to show border.
Can the cell borders on a Kendo grid extend to the bottom of the grid area when there are not enough rows in the grid
#(Html.Kendo().Grid<Model>()
.Name("GirdName")
.Scrollable(scr => scr.Height(100))
...
$(document).ready(function () {
$("#GirdName>.k-grid-content>table").css("height", 100);
})

Show tooltip of a column chart programmatically in StockChart (highchart)

I've a Highstock chart (Line with markers and shadow) and would like to show a highstock tooltip programmatically, i.e. when i select, for example, a row on some table (that contains chart data) i would like to show the corresponding highstock tooltip.
Is that possible?
For StockChart this solution doesn't work:
In this example you have to replace this:
chart.tooltip.refresh(chart.series[0].data[i]);
to this:
chart.tooltip.refresh([chart.series[0].points[i]]);
The solution is available here.
If what you want is to trigger tooltip on the plot near ith data point, then probaly you can use this answer, which suggest to do something like
chart.series[0].data[i].setState('hover');
where chart is the result of your new Highcharts.Chart. (jsfiddle from the comments to that answer).
I guess that if you want to do it on <tr> click, than your js could finally look like this
var chart = new Highcharts.Chart({ <your options> });
$('#yourTableId tr').click(function(){
var i = $(this).index(); // `this` points to <tr>, get its index
chart.series[0].data[i].setState('hover');
});

Why are my columns getting set very wide when I call setColumns on SlickGrid

When I create a SlickGrid this way:
var grid = new Slick.Grid(
element, //needs to be something jQuery can act on: element, css selector, etc.
dataView,
[], //columns
gridOptions
);
And then set the columns like so:
grid.setColumns(parameters.columns);
grid.autosizeColumns();
Do my columns come out very wide?
If I remove or comment out the line:
grid.autosizeColumns();
The columns are rendered as I would expect.

How to format values within the data point tooltips in a RadChart?

I want to format the display of numeric values in an ASP.NET RadChart's tooltips. For example, instead of showing 100000, I want the text to read "1.0e5". For the axes, the property to set is as follows:
chart.InnerChart.PlotArea.YAxis.Appearance.CustomFormat = "0.##E+0";
There must be a similar property on the chartSeries to similarly format the tooltips, but so far I have failed to locate it. Does anyone know?
For each ChartSeriesItem in the chart, you can set the ToolTip in the following manner:
e.SeriesItem.ActiveRegion.Tooltip = string.Format("{0:0.###e+0}", value);
I'm not sure which RadChart you are using. Here is an excerpt of code for an ASP.Net MVC RadChart.
.Tooltip(tooltip => tooltip
.Visible(true)
.Format("{0:0.##E+0}")
)

Resources