Can I please get an example of how to use the multi-filter option (.Filterable(f => f.Multi(true))) when the column is using a ClientTemplate.
WIth the code below I get [Object] [Object] in the column filter drop down. The client template is parse out an array of hyperlinks from the model.
columns.Bound(e => e.Reports).Title("Open <br />Reports").Filterable(f => f.Multi(true)).Width(120).ClientTemplate("#=openReport(Reports)#");
function openReports(Reports) {
if (Reports && Reports.length > 0) {
var result = "";
var j = Reports.length;
for (var i = 0; i < j; i++) {
result += "<a href='" +
someServer +
"webpage.aspx?someNumber=" +
Reports[i].Number +
"&Revision=" +
Reports[i].Revision +
"' target ='_blank'>" +
+ Reports[i].Number +
"-" +
Reports[i].Revision +
"</a>, ";
}
return result.substring(0, result.length - 2);
} else {
return "";
}
}
Note that this is Workbook.sheets and not Spreadsheet, but I couldn't select a more relevant tag nor create my own.
I am having an issue merging cells that are in an existing sheet in a workbook. My attempt to use mergedCells after the sheet has been created has a roadblock, I can't seem to get the range name in string format as documented for the mergedCells option in Workbook.sheet:
mergedCells: ["A6:A8"]
I have the logic to determine which cells' indexes I want to merge, but only the indexes. I can't figure out a way to get the range in an Excel cell name. In the following example, ignoring how I got the index values, I can't merge the cells based on index where indexA is the column and indexB1 and indexB2 are rows.
let indexA = 0;
let indexB1 = 5;
let indexB2 = 7;
sheet.mergedCells = [[{indexA, indexB1},{indexA,indexB2}]]
I have attached a picture of the types of cells I want to merge, my loop first hits A6 through A8 and determines the indexes are to be merged because all the cells' values equal "Boat". Any help is appreciated, and I will try to provide more detail if needed, but it is difficult to provide much more because of the nature of the system I am on.
Thanks in advance.
The background color of the Main panel item and the sub panel items. Can someone help me set the background color of the subitems to something different.
For example, when I click on Q1 Forecast I would like it be Red to give a visual indication that you have selected a sub item. Sales Forecast should remain Aqua Blue which is set from the Theme.
Hi,
May I know what to install/need for editable PDF (eg: PDF editor)?
I've go through this blog https://www.telerik.com/blogs/editing-pdf-files-in-browser-adding-signature-text-images .
But I failed to get the result as follows:
Much appreciate if you can reply ASAP. Thank you!
I've tried a multitude of options, but the ones that don't throw errors, I get "/Date(16400...." as the results
Here are some of the tries.
columns.Add().Field("StartDate").Title("Start Date").Template("#:kendo.toString(StartDate,'MM/dd/yyyy')#").Width("150px");
columns.Add().Field("StartDate").Title("Start Date").Template("#:data.StartDate.ToString('MM/dd/yyyy')#").Width("150px");
columns.Add().Field("StartDate").Title("Start Date").Template("#= kendo.toString(StartDate, 'MM/dd/yyyy')#").Width("150px");
I did see the one user voice asking for a "Format" method for MCCB as getting the escape correct is difficult but didn't give any examples.
using Telerik.MVC 2022.3.1109
i have a kendo grid which has .pageable.pageSizes(new[] {20,50,100,250})
when i try and select a page size from the drop down list i get an error:
this is the code that sets up the grid
as a result of the error the page size isnt updated.
NOTE: THIS HAS BEEN FIXED, IT WAS AN ISSUE WITH A HEAD SCRIPT
am using Azure Ad authentication in my ASP.Net 4.8 MVC application. When authentication is expired and when user clicks on the link or button user get redirected to login page. So that is good.
However, I have a problem with AutoComplete textbox which is also available on the same page among buttons and link. If user leave the app open and comes back after page authentication cookie is expired and enter a value in autocomplete textbox, then textbox doesn't do anything, it works as there is no data to filter and doesn't even throw an error. I would expect it to redirect user to login page or refresh the token.
I suppose that could be known to those who uses Jquery or ajax functions or telerik controls to how to check for token. I am just new to all that.
Just in case if the code is needed so here it is.
<form action="@Url.Action("Transaction", "Job")" method="POST">
<div>
<div class="col-xs-4 k-content py text-left">
@{
try
{
@(Html.Kendo().AutoComplete()
.Name("searchValue") //chaninging the name of the class to UserModel
.DataTextField("SearchString") //DataTextField("dataField")
.Filter("contains")
.MinLength(2)
.HtmlAttributes(new {style = "width:100%"})
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetAutoComplete", "Job")
.Data("onAdditionalData");
})
.ServerFiltering(true);
})
//.Events(e => e.DataBound("onDataBound"))
)
}
catch (Exception e)
{
//this.RedirectToAction("Reporting", "ReportManagement");
}
}
I'm trying to reduce the clutter on the grid column headers. I love the idea of giving the users the power to hide and show columns but do not want to see those 3 dots on every column. For all other columns i just want the filter icon present.
I want to show the column menu only for the first column (first column is a selector checkbox). Version would be the latest and greatest. Is this possible?