telerik

How to calculate RadGrid cell value on Client side?

和自甴很熟 提交于 2019-12-04 19:41:14
I have telerik RadGrid which is in edit mode. Each cell contains NumericTextBox. Is it possible to calculate one cell based on other cells in the same row (on client side). For example if I have a row which contains cells like price and item I want on every change to calculate total price but on client side, without going to server side. Is this possible with RadGrid? Thanks for all your answers but I found the solution here at telerik forum . I'll just paste the solution here in case that somebody get stuck on the same issue. ASPX: <Columns> <rad:GridTemplateColumn UniqueName="Price"

SQLExpress connection fails in IIS 7 w/ user instance error - \"Failed to generate a user instance

时间秒杀一切 提交于 2019-12-04 17:24:37
Mainly looking to answer my question #1 below, but more knowledge would be appreciated. I tried to use these resources during my investigation, but was unsuccessful: http://social.msdn.microsoft.com/Forums/en/sqldatabaseengine/thread/f5eb164d-9774-4864-ae05-cac99740949b ( For this error: Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed. ) http://social.msdn.microsoft.com/forums/en-US/sqlexpress/thread/6dfdcc22-7a81-4e8f-a947

Define a Template column for Telerik MVC Grid in Razor syntax

眉间皱痕 提交于 2019-12-04 16:30:54
问题 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

Internal Server Error with httpHandlers section of web.config

穿精又带淫゛_ 提交于 2019-12-04 16:07:43
问题 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

Get text of RadAutoCompleteBox

蓝咒 提交于 2019-12-04 14:47:14
How can I get the text of a RadAutoCompleteBox using RadControls Q1 2013 in C#? autoCompleteBox.SelectedItem returns "ServerCrafterTelerikWPF.Command" . Edit 1: Here's my XAML: <telerik:RadAutoCompleteBox x:Name="txtboxCommand" ItemsSource="{Binding Commands, Source={StaticResource ViewModel}}" DisplayMemberPath="ACommand" AutoCompleteMode="Append" HorizontalAlignment="Left" telerik:StyleManager.Theme="Modern" Margin="280,405,0,0" VerticalAlignment="Top" Width="330" Height="30" KeyDown="txtboxCommand_KeyDown"/> And I don't have any C# code. I just want, when a button is pressed, to get the

Binding a Telerik RadTreeView client side

我与影子孤独终老i 提交于 2019-12-04 14:02:18
I have a javascript array of objects that I would like to use to populate a RadTreeView. I can't figure out how to accomplish this from the client side other than manually writing my own binding method for my collection of objects. Each object in my javascript array has Id ParentId Value Text Is there no way to automatically populate an entire tree from this javascript data structure on the client side? Do I have to do this 1-by-1? By traversing my array and recursively going down the tree? I'm using a web service to get a JSON object with this data and I would like to build the tree fully,

Problem rendering Telerik MVC Grid in a Razor view

别来无恙 提交于 2019-12-04 12:57:54
I have the following markup in a 'content' page. Without the Render call, nothing renders, and with the Render call, the grid renders as the first element in the whole page, not inside the 'content' section defined by my view: @using Telerik.Web.Mvc.UI @model Outdoor.Mvc.ViewModels.OutdoorSite.SiteList @{ Html.Telerik().Grid(Model.ItemList).Name("Site Grid") .Columns(columns => { columns.Bound(o => o.SiteId); columns.Bound(o => o.Name); }) .Pageable() .Sortable() .Render(); } What am I doing wrong? This is because of different approach to rendering Razor's views. In order to make it work you

KendoUI integration into Durandal JS

烈酒焚心 提交于 2019-12-04 12:49:20
I'm building a phonegap application and plan to use Telerik's Kendo UI framework to generate the UI. Telerik Kendo UI already has an MVVM implementation and I'd like to use that and not include Knockout JS. Is this something that is supported, or is Durandal JS deeply integrated with Knockout? Roger Gullhaug has written a blog post, detailing how Durandal can be used together with Kendo UI's data binding: Using Durandal and KendoUI together Also the official Durandal documentation contains a mention about Kendo: KendoUI 来源: https://stackoverflow.com/questions/15409941/kendoui-integration-into

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

元气小坏坏 提交于 2019-12-04 12:41:46
问题 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

Kendo TabStrip: Getting the Selected Index on the Selected event (MVC 4)

无人久伴 提交于 2019-12-04 10:33:59
My TabStrip is as follows: @(Html.Kendo().TabStrip() .Name("tabApplications") .Items(items => { items.Add().Text("Online").Selected(true); items.Add().Text("Trading"); }) .Animation(false) .Events(e=>e.Select("tabstrip_select")) ) In Javascript I get theSelected Item: function tabstrip_select(e) { var x = e.item; } Question : How do I get the Selected Index (ie "1") from this function. I looked over the Item object but didn't see anything obvious. You can get the currently selected index with calling index() on the $(e.item) function tabstrip_select(e) { var x = e.item; var selectedIndex = $(e