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
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" ?
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);
})
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');
});
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.
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}")
)