telerik

Not understanding this kendo template that generates a checkbox in a grid

旧巷老猫 提交于 2020-01-21 12:15:17
问题 I'm not understanding something basic about Kendo templates, so maybe someone can explain this to me. This example of a template for a cell in a grid comes from Telerik sample code. template:"<input type='checkbox' #= IsAdmin ? checked='checked':'' # /> Ultimately, this produces an input tag which, if the value of IsAdmin is true, will include "checked='checked'" I don't understand the evaluation context of #= IsAdmin ? checked = 'checked' : '' # Documentation says that "#=" indicates "render

Kendo ui scheduler - change date format

十年热恋 提交于 2020-01-17 05:46:12
问题 I'm able to change the format of the dates for a kendo ui scheduler on the column headers using the dateHeaderTemplate property but I need to change the format of the date highlighted in the image below: I'm sure there must be a pretty simple way of doing this but haven't found anything in the telerik docs so far. 回答1: Please try with the below code snippet. <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>Kendo UI Snippet</title> <link rel="stylesheet" href="http://kendo.cdn

Telerik RadCalendar ASP.NET control reset date

怎甘沉沦 提交于 2020-01-16 17:03:18
问题 I use Telerik RadCalendar ASP.NET control. How I can in code reset selected date? (Set no selected Date) 回答1: From their site: http://demos.telerik.com/aspnet-ajax/calendar/examples/programming/clientsideapi/defaultcs.aspx unselectDate(date); //Takes a triplet representation of a date and if valid deselects it in the calendar. unselectDates(dates); //Takes an array of triplets representing dates and if valid deselects them in the calendar. First you can find what dates are selected with get

FindControl in GridTemplateColumn in RadGrid

≡放荡痞女 提交于 2020-01-15 11:43:10
问题 Does anyone know how to FindControl in the GridTemplateColumn in a RadGrid. I can get it to find it find in EditForm. But it can't seem to find it in the GridTemplateColumn. I am trying to do this in the ItemDataBound event. The if statement never becomes true and never gets into to FindControl. This is what I am trying: if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; DropDownList ddlAccountLookup = (DropDownList)item["Account"].FindControl("ddlAccountLookup"); }

FindControl in GridTemplateColumn in RadGrid

血红的双手。 提交于 2020-01-15 11:42:20
问题 Does anyone know how to FindControl in the GridTemplateColumn in a RadGrid. I can get it to find it find in EditForm. But it can't seem to find it in the GridTemplateColumn. I am trying to do this in the ItemDataBound event. The if statement never becomes true and never gets into to FindControl. This is what I am trying: if (e.Item is GridDataItem) { GridDataItem item = (GridDataItem)e.Item; DropDownList ddlAccountLookup = (DropDownList)item["Account"].FindControl("ddlAccountLookup"); }

issues with parent page postback after closing child modal form

江枫思渺然 提交于 2020-01-15 10:12:10
问题 I'm working on an ASP.NET application and I ran into an issue that I am unable to resolve. I have a parent form, called Form1.aspx which contains a Telerik RadGrid . On page load, this grid is completely empty. The user has the ability to add data, by clicking add, in this case a Rad Window opens: here's my code: <td > <input id="btnAdd" runat="server" onclick="showQuestion4()" type="button" value="Add" /> </td> I have my RadWindowManager like this: <telerik:RadWindowManager ID=

issues with parent page postback after closing child modal form

删除回忆录丶 提交于 2020-01-15 10:12:10
问题 I'm working on an ASP.NET application and I ran into an issue that I am unable to resolve. I have a parent form, called Form1.aspx which contains a Telerik RadGrid . On page load, this grid is completely empty. The user has the ability to add data, by clicking add, in this case a Rad Window opens: here's my code: <td > <input id="btnAdd" runat="server" onclick="showQuestion4()" type="button" value="Add" /> </td> I have my RadWindowManager like this: <telerik:RadWindowManager ID=

Multiple filters in Kendo Combobox

匆匆过客 提交于 2020-01-15 07:06:07
问题 I have seen several examples where either the FilterType.StartsWith or FilterType.Contains is used as the filter. @(Html.Kendo().ComboBox().Name("kcombobox") .HtmlAttributes(new { style = "width:250px" }) .Placeholder("Select a value...") .DataTextField("Text") .DataValueField("Value") .Filter(FilterType.StartsWith) .DataSource(source => { source.Read(read => { read.Action("GetCountries", "Home"); }).ServerFiltering(true); }) ) How to use multiple filters together. I want to filter the data

Multiple filters in Kendo Combobox

人走茶凉 提交于 2020-01-15 07:05:04
问题 I have seen several examples where either the FilterType.StartsWith or FilterType.Contains is used as the filter. @(Html.Kendo().ComboBox().Name("kcombobox") .HtmlAttributes(new { style = "width:250px" }) .Placeholder("Select a value...") .DataTextField("Text") .DataValueField("Value") .Filter(FilterType.StartsWith) .DataSource(source => { source.Read(read => { read.Action("GetCountries", "Home"); }).ServerFiltering(true); }) ) How to use multiple filters together. I want to filter the data

Third party WPF controls: Devexpress vs Telerik [closed]

拟墨画扇 提交于 2020-01-11 15:46:11
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I would like to hear your opinion about the two control providers. To put it in a nutshell: I am building a classic LOB desktop application. The app will be created entirely in WPF. PRISM 4.0 will be used heavily. Whenever possible, I will try to follow MVVM pattern(it would be