telerik

Telerik grid custom column building/formatting

前提是你 提交于 2019-12-06 13:39:08
I have a telerik grid with a dynamic data source (the grid may use up to roughly 10 totally different models for its data), so I have to build the columns dynamically as well (obviously). One of the columns in the grid (with certain models) is a double representing a time span in milliseconds. What I want to do is format this double to look like a timespan .The telerik code looks like this: <% Html.Telerik() .Grid(Model.DynamicGridDataSource) .Name("statisticalGrid") .Columns(a => GridHelper.GenerateColumns(a, Model.SelectedReport)) .DataBinding(dataBinding => dataBinding.Ajax().Select("

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

徘徊边缘 提交于 2019-12-06 10:07:26
问题 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

Error “Telerik is undefined”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 09:42:39
I am getting JScript error as "Microsoft JScript runtime error: 'Telerik' is undefined" while running my project. I have just tried configuring the project from the menu bar 'Telerik->Rad controls for asp.net ajax->configure project' and it gives me this error. Please find below my webconfig file. I could find some threads in Telerik forum about trouble shooting for the same but they didn't solve my issue. I am using .net 4.0 version. <?xml version="1.0"?> <configuration> <connectionStrings> <add name="xxx" connectionString="Data Source=xxx;Initial Catalog=xxx;Integrated Security=False; User

Telerik radGrid - possible to do use AllowAutomaticUpdates when Datasource = a dataset?

淺唱寂寞╮ 提交于 2019-12-06 08:25:48
问题 I am setting the datasource of my radGrid to a dataset (that I have stored in session). I have enabled AllowAutomaticUpdates and EnableViewState, implemented NeedDataSource, set DatakeyNames, etc. (see code below) However, when I press the Edit button and make a change and press the Update link, the record does not update and leave Edit Mode.....it just stays in edit mode, and no error of any kind occurs. So, the question is....does anyone know if radGrid with EnableViewstate even supports

Problem rendering Telerik MVC Grid in a Razor view

我的未来我决定 提交于 2019-12-06 08:25:25
问题 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

MVC kendo window - Get Data from javascript function

六月ゝ 毕业季﹏ 提交于 2019-12-06 07:53:16
I have this kendo window in my app Html.Kendo().Window() .Name("copyStructure") .Title("Copy Structure") .Content("Loading...") .LoadContentFrom("CopyStructure", "NewXmlLayout") // <-- here* .Draggable(false) .Visible(false) .Modal(true) .Actions(s => s.Custom("")) .Events(e => e.Open("openWindow").Close("closeWindow")) And I am trying to pass data to the acrion in the LoadContentFrom() wich is returned by a javascript function, but I don't know how to do it. I can pass data like this: .LoadContentFrom("CopyStructure", "NewXmlLayout", new { type= "INPUT" }) But is not what I'm looking for. The

Changing the value of a Telerik RadEditor with Javascript/jQuery

大兔子大兔子 提交于 2019-12-06 07:21:35
I'm trying to manually clean the HTML of a Telerik RadEditor with Javascript but I can't seem to find the correct place to store the value so that it gets saved on post back. Here's the JS I have: $(function () { jQuery.fixHash = function ($html) { // modify $html return $html; }; $("#adminEditingArea input[id$='SaveButton']").unbind("click").click(function () { $("iframe[id$='_contentIframe']").trigger("save"); // call .net postback return false; }); }); var editorSaveEventInit = false; function InitSaveEvent() { if (!editorSaveEventInit) { var $EditFrames = $("iframe[id$='_contentIframe']");

Get text of RadAutoCompleteBox

微笑、不失礼 提交于 2019-12-06 06:51:34
问题 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=

RadComboBox selected value is empty

无人久伴 提交于 2019-12-06 06:01:33
I get the SelectedValue = "" when i click on My button . My aspx : <telerik:RadComboBox ID="ddl_contactList" runat="server" AutoPostBack="True" CausesValidation="False" CollapseDelay="0" Culture="ar-EG" ExpandDelay="0" Filter="StartsWith" ItemsPerRequest="10" MarkFirstMatch="true" Skin="Outlook" EnableAutomaticLoadOnDemand="True" EmptyMessage="-New Menu-" ShowMoreResultsBox="True" OnSelectedIndexChanged="ddl_contactList_SelectedIndexChanged" EnableItemCaching="false" EnableLoadOnDemand="True" EnableVirtualScrolling="True"> </telerik:RadComboBox> My .cs : private void BindContactLists(int year,

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

浪尽此生 提交于 2019-12-06 06:00:22
问题 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. 回答1: You can get the currently selected index