telerik

KendoUI Grid Decimal number column

折月煮酒 提交于 2019-12-03 11:17:09
问题 I have a column for weight (in Kg). When the user clicks on it I need to enable them to be able to put in decimal number with 3 places. The problem I have is at the moment it only allows them to put it in to 2 places, but shows as 3 places. You can type in a number to many decimal places but when it saves it will round it to 2 places. My column is set up like so: ... { field: "weight", title: "Weight", width: 40, format: "n4", decimals: 4, step: 0.001, template: "#= weight.toFixed(3)+'kg' #"

Define a Template column for Telerik MVC Grid in Razor syntax

孤街醉人 提交于 2019-12-03 10:27:56
I have the following legacy code that I would like to mimic, with all action links inside one column. However, I can't seem to get the Razor syntax right. How should I express this in Razor? The ASPX column template is like this: .Columns(column => { column.Template(o => {%> <%= Html.ActionLink("Edit", "Edit", new{ id = o.DeviceID}) %> | <%= Html.ActionLink("Delete", "Delete", new { id = o.DeviceID })%> <%}); I have only been able to get three separate columns using Razor without complaints about syntax etc. as below: .Columns(columns => { columns.Template(o => @Html.ActionLink("Edit", "Edit",

Internal Server Error with httpHandlers section of web.config

自作多情 提交于 2019-12-03 10:12:52
I have an asp.net website using the form controls from Telerik. It's just moved to a new server but I keep getting a 500 Internal Server Error. Removing the httpHandlers section of the web.config makes server error go away, although then it complains if there is a Telerik control on the page. The whole config file is valid XML. Is there anything wrong with this code? <httpHandlers> <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.2.826.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/> </httpHandlers> I see

Not enough storage is available to complete this operation

倖福魔咒の 提交于 2019-12-03 09:36:26
问题 I have an asp page with Timer control. Timer control will trigger some method to execute. When this page is loaded, following error comes and timer control is not triggered to tick. I use IE9. There is no issues in FF and chrome. Error details are as follows. Anybody have an experience with this message ? Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6

ASP.NET Ajax client-side framework failed to load .net 4.0

拟墨画扇 提交于 2019-12-03 08:09:58
Good Evening, I am experiencing a strange problem. I only experience the problem when the site has been deployed to IIS 7.0. The web page renders fine when launched in VS 2010; however when viewed to IIS 7.0 the entire page gets shifted to the right. errors only happen when this is on the .aspx page <telerik:RadScriptManager ID="RadScriptManager" runat="server" /> Web.config file below.... Please let me know if you need anything else. Thanks, Brennan Web.config --- <authentication mode="Forms"> <forms loginUrl="login" timeout="2880" /> </authentication> <membership defaultProvider=

System.Web.UI.ViewStateException: Invalid viewstate

久未见 提交于 2019-12-03 07:22:35
问题 I have a web application developed in ASP.net & C#. I also use Telerik ASP.NET AJAX for web UI. Application throws an exception ( System.Web.UI.ViewStateException: Invalid viewstate ) in production server. It works fine in test server. And this error is thrown randomly. System.Web.UI.ViewStateException: Invalid viewstate. Client IP: x.x.x.x Port: xxxxx Referer: http://webaddress/Page.aspx Path: /Page.aspx User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET

Kendo DatePicker fails validation for custom date format

时光毁灭记忆、已成空白 提交于 2019-12-03 06:51:26
问题 I'm using Kendo DatePicker to edit a Date field being displayed in a Kendo Grid in my ASP.NET MVC 4 project. In order to have the DatePicker being used for the Date field use custom date format string, I updated the Date.cshtml file under the EditorTemplates folder to the following: @(Html.Kendo().DatePickerFor(m => m).Format("dd/MM/yyyy")) By doing that, I managed to have the DatePicker display the format as I want it to. However, it failed validation for some of the dates entered for input,

KendoUI Grid Ajax Binding Parameters For Select

对着背影说爱祢 提交于 2019-12-03 06:25:00
I have a basic KendoUI Grid for my ASP.NET MVC app which uses ajax binding for the read. I'd like to enhance this so that a Form above the grid is used to help select data that should be displayed in the grid. This is a standard search form with basic fields like First Name, Last Name, Date of Birth, Customer Source, etc. with a search button. When the search button is pressed, I want to force the grid to go get the data that meets the criteria from the controller by passing in the Search Model with the fields I referenced above. The search form is contained within the _CustomerSearch partial

How do I programatically put telerik rad grid in “add new” mode on page load

做~自己de王妃 提交于 2019-12-03 06:24:43
Seems like this should be easy but I must just be missing something... I have a Telerik RadGrid on a page that allows inline editing. How do I programatically put the grid into edit mode to insert a new row into the grid. When the page loads I would like show the existing data and also display 1 empty row that a user can easily type into to add a new record to the table. (I don't want them to have to push the add new button) Todd Found the answer while back.... updating this in case others need it RadGrid1.MasterTableView.IsItemInserted = true; RadGrid1.Rebind(); Lifesaver!! You can set

Telerik and jquery

自古美人都是妖i 提交于 2019-12-03 06:03:53
I'm working on an application I received from a client and they've used some telerik web controls. Telerik apparently includes its own version of jquery 1.3.2, while I'm using 1.4.1. I'm experiencing some weird javascript issues and I'd like to rule out the older jquery as a source of the problem. Is there a way to tell the Telerik controls not to automatically include the 1.3.2 version of jquery if I've already got jquery on the page elsewhere? Try jQuery.noConflict(). Using jQuery with Other Libraries I'm not sure whether the approach shown by andreas will help you. As you can read in this