telerik

Closing RadWindow by invoking javascript from server

匆匆过客 提交于 2019-12-12 15:05:35
问题 I have a Control that looks like this: <telerik:RadCodeBlock runat="server"> <script type="text/javascript"> function refresh() { window.$find("<%= RadAjaxManager1.ClientID %>").ajaxRequest("RebindRecommendations"); } </script> </telerik:RadCodeBlock> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="AjaxRequest"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="RadAjaxManager1"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="NameOfGrid" /> <

Object reference not set to an instance of an object when tring to set the selection of a combo box

感情迁移 提交于 2019-12-12 13:34:28
问题 I have a text box and a RadComboBox like this : <asp:TextBox ID="txt_inner_emp_num" runat="server" Width="60px" ontextchanged="txt_inner_emp_num_TextChanged" AutoPostBack="true"></asp:TextBox> <telerik:RadComboBox ID="rad_ddl_inner_emp_name" runat="server" CausesValidation="False" CollapseDelay="0" Culture="ar-EG" ExpandDelay="0" Filter="Contains" ItemsPerRequest="100" MarkFirstMatch="true" Width="380px" EnableAutomaticLoadOnDemand="True" EmptyMessage="-emp name-" ShowMoreResultsBox="True"

When grid enters edit mode DateTime picker clears value

为君一笑 提交于 2019-12-12 13:17:14
问题 I have a DateTime field bound to a grid. When the grid enters edit mode the date/time picker displays, but the value is cleared from it. This forces the user to re enter the date/time. Any idea why it value is cleared when the edit mode is triggered? @(Html.Telerik().Grid<ExpenseGridModel>() .DataBinding(dataBinding => dataBinding.Ajax() .Select("ExpenseAjaxBinding", "ExpenseEntry") .Update("ExpenseUpdate", "ExpenseEntry") ) .Name("ExpensesGrid") .DataKeys(keys => keys.Add(r => r.id))

List to return values in intervals for a specific field

戏子无情 提交于 2019-12-12 10:53:35
问题 I am implementing Telerik Chart with a huge data. The labels on x-axis of the chart are overlapping. I have overcome this problem but it is not reliable for long run. These are the fields List have: FieldName DataType Date DATETIME DateString STRING Unit DOUBLE Price DOUBLE X-Axis label value comes from DateString field Solution I implemented The MIN and MAX Date DateString field will always return. For the rest, return those values where weekday is 'Monday' Here is code- // Get min and max

Handle destroy event in kendo scheduler

强颜欢笑 提交于 2019-12-12 10:45:52
问题 I am using a kendo scheduler. There are events added in scheduler grid. On mouse hover of each event a small (x) comes on top right corner. i.e destroy event for that event, which when clicked shows an warning message "Are you sure you want to delete this event?" If clicked Yes it goes ahead and deletes that event. So here is my requirement. As you can see above there are 3 scheduled events in the shown week. I want that, the one circled in blue shouldn't have delete option but the one

How Do I Raise the Change Event in the KendoUI DatePicker?

左心房为你撑大大i 提交于 2019-12-12 10:33:16
问题 I'm trying to set the value of my DatePicker using the code below and expecting the "Change" event to be raise but it doesn't. var datePicker = $("#datePicker").data("kendoDatePicker"); var previousDate = new Date(datePicker.value()); previousDate.setDate(previousDate.getDate() - 1); $("#displayDate").text(kendo.toString(new Date(previousDate), 'D')); datePicker.value(previousDate); Change the date value through the user interface does raise the "Change" event as expected however. 回答1: Please

Bound columns require a field or property access expression in ASP.NET MVC

家住魔仙堡 提交于 2019-12-12 09:23:45
问题 I have relations one to many in DB ( i used entity interface to generate associations between 2 obj) Im getting error: Bound columns require a field or property access expression My code: in view: Html.Telerik() .Grid<Y.Orders.Models.Orders>("orders") .Name("Orders") .DataKeys(dataKeys => dataKeys.Add(o => o.Id)) //.Pageable(paging => paging.PageSize(20).Style(GridPagerStyles.PageSizeDropDown | GridPagerStyles.NextPreviousAndNumeric)) .Columns(columns => { columns.Command(commands => {

Telerik RadGrid - How do I default to edit mode?

早过忘川 提交于 2019-12-12 08:50:12
问题 I want to make the items of my RadGrid be editable on page load. I've tried both methods here http://www.telerik.com/help/aspnet/grid/grddefaulteditmodeforgriditemsoninitialload.html but neither have any effect. The 2nd method for example, shown below where the Edit property is set on the ItemCreated event, causes the Edit mode to be set true (verified by debugger) but it has no effect on the results when the page is displayed. Anyone have any ideas what I'm doing wrong? protected void

With the Telerik Silverlight controls, how can I cast a RadMaskedTextBox as a TextBox

冷暖自知 提交于 2019-12-12 06:58:17
问题 I am trying to determine if a Telerik RadMaskedTextBox allows multiline input. I the debugger, I was able to find and check the .AcceptsReturn property of the underlying textbox, using: ((System.Windows.Controls.TextBox)(((Telerik.Windows.Controls.RadMaskedTextBox)(this)).textBox)).AcceptsReturn; However, when I paste that into my C# code, the compiler complains that RadMaskedTextBox cannot be cast as a TextBox A little weird, since the Debugger allows it. The debugger also allows: ((System

Is it possible have this code equivalent code in kendo external template

十年热恋 提交于 2019-12-12 06:45:44
问题 I have this dojo with its inline template var actionName = 'read'; $("#grid").kendoGrid({ columns: [ { field: "name" }, { field: "age" } ], dataSource: [ { name: "Jane Doe", age: 30, read: true, actionName: actionName } ], detailTemplate: "<div> #:" + actionName +"# </div>" }); and this dojo with its external template: <script id="detailTemplate" type="text/x-kendo-template"> #: actionName # </script> var actionName = 'read'; $("#grid").kendoGrid({ columns: [ { field: "name" }, { field: "age"