telerik

Change selected value of kendo ui dropdownlist

為{幸葍}努か 提交于 2019-11-30 12:26:18
问题 I have a kendo ui dropdownlist in my view: $("#Instrument").kendoDropDownList({ dataTextField: "symbol", dataValueField: "symbol", dataSource: data, index: 0 }); How can I change the selected value of it using jQuery? I tried: $("#Instrument").val(symbol); But it doesn't work as expected. 回答1: You have to use Kendo UI DropDownList select method (documentation in here). Basically you should: // get a reference to the dropdown list var dropdownlist = $("#Instrument").data("kendoDropDownList");

Telerik Reporting

一世执手 提交于 2019-11-30 12:21:18
Web.Config <system.webServer> <handlers> <remove name="ExtensionlessUrlHandler-Integrated-4.0" /> <remove name="OPTIONSVerbHandler" /> <remove name="TRACEVerbHandler" /> <add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> </handlers> </system.webServer></configuration> WebApiConfig Telerik.Reporting.Services.WebApi.ReportsControllerConfiguration.RegisterRoutes(config); Controller using System; using Telerik.Reporting; using Telerik.Reporting.Cache.File; using Telerik

Kendo Grid Foreign key column bind dynamically

北城余情 提交于 2019-11-30 10:19:08
@(Html.Kendo().Grid((IEnumerable<Doc.Web.Models.Common.ContactModel>)Model.contact_lst) .Name("grid") .Columns(columns => { columns.Bound(o => o.ContactID).Visible(false); columns.Bound(o => o.ContactName).Title("Contact Name"); columns.ForeignKey(p => p.CPOID, (System.Collections.IEnumerable)ViewData["CPOs"], "cpo_id", "contract_po") .Title("Company - Contact/Purchase Order"); columns.Command(command => { command.Edit(); command.Destroy(); }).Width(182); }) .ToolBar(toolbar => toolbar.Create()) .Editable(editable => editable.Mode(GridEditMode.InLine)) .Pageable() .Sortable() .Filterable()

MVC-3/jQuery: stop validating my checkbox

假如想象 提交于 2019-11-30 09:59:48
问题 I have MVC-3 user control (html helper & aspx view engine). Some how when I submit the form jQuery un-obtrusive validation fires up & requires me to check all checkboxes. How do I prevent it? Further Info: 1) There is no required attribute in my model. 2) I am using this check-box inside telerik gridview namespace Alpha.Views { public class AlphaCheckBoxControl : ViewUserControl<AlphaCheckBox> { } public class AlphaCheckBox { public bool isChecked; public string name { get; set; } public

ASP.default_aspx' does not contain a definition for 'IssuesGrid_OnItemUpdated' and no extension method 'IssuesGrid_OnItemUpdated'

巧了我就是萌 提交于 2019-11-30 09:52:30
问题 I created a gridview using Telerik asp.net/ajax controls and when I run the app locally the grid works fine but when pushed to my server I get the same error for all of my methods: ASP.default_aspx' does not contain a definition for 'IssuesGrid_OnItemUpdated' and no extension method 'IssuesGrid_OnItemUpdated' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?) I have tried deleting the reference in the grid and

How to concatenate the id of the HTML element using Razor ASp.NET MVC

喜欢而已 提交于 2019-11-30 06:02:03
I have a grid column with checkboxes and I want to give them a different id. Id is based on the CustomerId in the Model. What syntax should I use to concatenate the chk_@item.CustomerId. // using the telerik grid id="chk_@item.OrderNumber" // does not work // this will put the value of @item.Customernumber as the checkbox id columns.Template(@<text><input type='checkbox' id="@item.Customernumber" name="@item.CustomerNumber" value="@item.OrderNumber" /></text>).Width(50) second option: columns.Template(@<text><input type='checkbox' id="chk_@item.Customernumber" name="@item.CustomerNumber" value

Kendogrid destroy() and recreate the table on a new datasource, why do the old table columns still exist?

霸气de小男生 提交于 2019-11-30 04:56:56
When invoking destroy() in KendoUI Grid and then recreate the table on a new DataSource : why do the old table columns still exist? The only element here that stays the say is the element. How do I tell the grid to read the new datasource columns (it reads everything else correct). (if I make 2 different elements, they both populate properly but I rather just keep 1 element and replace the elements table by destroy and reinit) Most probably this is because you are not clearing the content inside the Grid container. e.g. $('#gridName').data().kendoGrid.destroy(); $('#gridName').empty(); or

Change selected value of kendo ui dropdownlist

£可爱£侵袭症+ 提交于 2019-11-30 03:06:51
I have a kendo ui dropdownlist in my view: $("#Instrument").kendoDropDownList({ dataTextField: "symbol", dataValueField: "symbol", dataSource: data, index: 0 }); How can I change the selected value of it using jQuery? I tried: $("#Instrument").val(symbol); But it doesn't work as expected. OnaBai You have to use Kendo UI DropDownList select method (documentation in here ). Basically you should: // get a reference to the dropdown list var dropdownlist = $("#Instrument").data("kendoDropDownList"); If you know the index you can use: // selects by index dropdownlist.select(1); If not, use: //

Devexpress or Telerik Controls comparison [closed]

牧云@^-^@ 提交于 2019-11-30 01:26:16
I am looking into purchasing either dev express or telerik to aid in the development of our applications. We are mainly an asp.net outfit but we are starting to make more and more use of silverlight and mvc. I would like to know what people have thought about: Feature set Ease of use Documentation Pricing and Licensing First the disclaimer - I work for DevExpress. And I'll try to give you my fair answer because the choice and decision is up to you. Generally, both Suites will seem similar in terms of products and features. However there are some key differences which can be advantageous for

How to validate a date is in the format yyyy-MM-dd using kendo validator?

六月ゝ 毕业季﹏ 提交于 2019-11-29 22:02:03
问题 I have a kendo date picker that is constructed as follows: $("#date").kendoDatePicker({ format: "yyyy-MM-dd", footer: " ", parseFormats: ["MM/dd/yyyy", "dd/MM/yyyy"] }); I would like to use the kendo validator to validate that the date contains a valid date in the format of yyyy-MM-dd. I have tried this: <input type="date" id="date" placeholder="yyyy-mm-dd" name="date" required data-required-msg="Please enter a date." data-date-msg="Please enter a valid date."/> While the validator does