Hi,
I created an app using Telerik grids and EF. Everything works like a charm on my machine. However, when I deply it to the server the screen layout and everything is there but ther grids don't show ANY data whatsoever. I opened the Developer Tools in Chrome and it throws an Error 500.
I doubled checked NET version on the server and it's all up to date. I have no idea what's going on. Also, I made sure the following libraries were in the bin folder on the server:
Telerik.OpenAccess.dll
Telerik.OpenAccess.35Ext
Telerik.OpenAccess.40Ext
Telerik.OpenAccess.Web.40
Telerik.OpenAccess.Runtime
I don't know what the hell else to do!!
Hi!
I have one column in my kendo grid.
columns.Bound(c => c.PhoneNumber).Filterable(ftb => ftb.Cell(cell => cell.Operator("contains")));
I use the build-in filter for this column. However, my data of "PhoneNumber" is a STRING in "(123)-456-7890" format. So when I put 1234567890 in the filter textbox, there is no result. I saw an example to apply a phone number mask for kendo text box. Is it possible to apply one for a grid column filter?
Hello, I am struggling with a minor annoying issue when trying to save a worksheet. Basically, I am placing string values into cells that start with 0 ex: "012345". I then try to save the workbook to a local directory and the zero is being removed. I understand this behavior being desired for numeric values but I am specifically formatting this cell as text, in which case I expect the string value to be saved exactly as it is written. Am I missing something? Do I need to format the columns? I have attached the resulting file as well as a screenshot showing values in watch window just prior to save. Here is a sample of my code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Telerik.Web.Spreadsheet;
namespace KendoSpreadsheetPaddedZeroIssue.Controllers
{
public class SpreadsheetController : Controller
{
public ActionResult SaveSpreadsheet()
{
Workbook resultWorkBook = new Workbook();
resultWorkBook.AddSheet();
Worksheet resultWorkSheet = resultWorkBook.Sheets[0];
resultWorkSheet.ShowGridLines = true;
resultWorkSheet.Name = "test1";
resultWorkBook.ActiveSheet = "test1";
List < Cell > cellItems = new List<Cell>();
cellItems.Add(new Cell() {Index = 0, Format = "@", Value = "01234", Bold = false, FontSize = 13, TextAlign = "center", VerticalAlign = "center" });
cellItems.Add(new Cell() {Index = 1, Format = "@", Value = "05678", Bold = false, FontSize = 13, TextAlign = "center", VerticalAlign = "center" });
Row testRow = new Row() { Index = 0, Height = 20, Cells = cellItems };
Worksheet testWorkSheet = resultWorkBook.Sheets[0];
testWorkSheet.AddRow(testRow);
resultWorkBook.Save(@"somepathonmydesktop\Test.xlsx");
return View("Index");
}
}
}
Hello,
1) How I can change the color slider when user select another value of the slide. Example, selecting 1 the slider become yellow, selecting 2 it's become red, etc. I have to use the sliderChange I guess. But what are the JS instructions?
2) And it's possible the change the thickness of the slider?
Thank a lot for your precious help.
Hello,
I would like to provide users with the ability to do quick edits on records inline in a grid (i.e. editing a subset of fields that are displayed on the grid), but also give them the ability to launch a popup window to edit all fields for a particular record (including some that don't show up as bound columns on the grid).
I have successfully used MVC editor templates to customize the popup editor for a grid so I am wondering if there is a way I can create a custom button in a command column that will launch a popup editor window (using a ASP.NET MVC editor template for the record).
Thanks in advance for any advice you may be able to provide!
I am trying to call a function from the clientTemplate. Here's sample code. I am trying to send the value of RoleName to a translator function. In my Translate() function the value I get is "#= RoleName #" , not the value. Is this possible?
@(Html.Kendo().Grid<SaviUser>()
.Name("UsersGrid")
.Columns(columns =>
{
columns.Bound(c => c.RoleName).ClientTemplate(@translator.Translate("#= RoleName #")).Title(translator.Translate("ROLE_NAME")).MinScreenWidth(768);
})
Requirements |
|
Telerik Product and Version |
Version 2014 |
Supported Browsers and Platforms |
Google chomre |
Components/Widgets used (JS frameworks, etc.) |
asp.net mvc |
Hi,
I have a grid and binded it like this
@(Html.Kendo().Grid<dynamic>()
.Name("GridCostTiers")
.Columns(columns =>
{
columns.Bound(gridColumn.field).Title(gridColumn.caption).Visible(gridColumn.visible).Width(BusinessManager.GetColumnWidth(gridColumn.field, gridColumn.width));
}
I want to Apply filter on this grid, when Allied filter, filter doesnot working any one can please guide how i can enable filter on .
if grid is not dynamic ,Applied filer working fine.
Thanks,
Hi,
I have a treeview and a grid where the select node id is used in the Data Event from the grid to filter the data based on the treeview selection.
function
onMitglieddokumente_DataFilter() {
var
treeView = $(
"#tvwDokumentenablagestruktur"
).data(
"kendoTreeView"
);
var
selectedNode = treeView.select();
var
id = 1;
if
(selectedNode.length != 0) {
var
item = treeView.dataItem(selectedNode);
id = item.id;
}
return
{
mitgliedid: @ViewContext.RouteData.Values[
"mitgliedid"
],
ordnerid: id
};
}
in the Treeview onSelect Event I refresh the grid datasource:
function
onTreeviewChange(e) {
$(
"#gridMitglieddokumente"
).data(
"kendoListView"
).dataSource.read();
};
the Problem with that solution is, that I always get the latest selection of the Treeview not the current one!
if I use the onChange Event the refresh is fired more than ones because it fires on selection and on expand...
robert
Here is the code for my parent grid.
@(Html.Kendo().Grid<Wcs.Applications.Web.SoldevPortal.Models.NetworkMap.ManagementNetworks.ManagementNetworkViewModel>()
.Name(
"ManagementNetworkGrid"
)
.Columns(columns =>
{
columns.Bound(c => c.IpNetworkAddress);
columns.Bound(c => c.IpSubnetMask);
columns.Bound(c => c.DevicesDiscovered);
columns.Bound(c => c.DevicesPolled);
columns.Command(command => { command.Custom(
"Poll"
).Click(
"poll"
); command.Edit(); command.Destroy(); });
})
.ToolBar(toolbar =>
{
toolbar.Create();
})
.Editable(editable => editable.Mode(GridEditMode.InLine))
.ClientDetailTemplateId(
"managementNetworkDetail"
)
.DataSource(dataSource => dataSource
.Ajax()
.Model(model =>
{
model.Id(m => m.IpNetworkAddress);
model.Field(m => m.DevicesDiscovered).Editable(
false
);
model.Field(m => m.DevicesPolled).Editable(
false
);
})
.Create(create => create.Action(
"ManagementNetworks_Create"
,
"NetworkMap"
).Data(
"AttachAntiForgeryToken"
))
.Read(read => read.Action(
"ManagementNetworks_Read"
,
"NetworkMap"
))
.Update(update => update.Action(
"ManagementNetworks_Update"
,
"NetworkMap"
).Data(
"AttachAntiForgeryToken"
))
.Destroy(destroy => destroy.Action(
"ManagementNetworks_Destroy"
,
"NetworkMap"
).Data(
"AttachAntiForgeryToken"
))
.PageSize(20)
.Sort(sort => sort.Add(s => s.IpNetworkAddress).Ascending())
)
)
And here is the code for my client detail template grid.
<script id=
"managementNetworkDetail"
type=
"text/kendo-tmpl"
>
@(Html.Kendo().Grid<Wcs.Applications.Web.SoldevPortal.Models.NetworkMap.ManagementNetworks.ManagementNetworkDetailViewModel>()
.Name(
"ManagementNetworkGrid_#=IpNetworkAddress#"
)
.Columns(columns =>
{
columns.Bound(c => c.NetworkDeviceId);
columns.Bound(c => c.Name);
columns.Bound(c => c.Description);
columns.Bound(c => c.EthernetInterfaces);
})
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action(
"ManagementNetworks_Detail"
,
"NetworkMap"
,
new
{ ipNetworkAddress =
"#=IpNetworkAddress#"
}))
.Sort(sort => sort.Add(s => s.NetworkDeviceId).Ascending())
)
.ToClientTemplate()
)
</script>
However when I expand a row in the parent grid, there is no data in the child grid. Looking at the Network tab in my browser's debug tools, I can see that no GET request is being sent. There are no errors in the browser's console. Hopefully someone can help me get to the bottom of what I'm doing wrong.
Thanks in advance.