telerik

UserControl within a ControlTemplate

佐手、 提交于 2019-12-05 15:28:05
I have a ControlTemplate for a Telerik Tile and I am overriding like below: <ControlTemplate TargetType="{x:Type ctrl:Tile}"> <Border> <local:UserControl> <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/> </local:UserControl> </Border> </ControlTemplate> My user control looks like: <DockPanel> <!-- some content --> <ContentPresenter/> </DockPanel> The ControlTemplate does not display the content of the UserControl. If I change my control template to: <ControlTemplate TargetType="{x:Type ctrl:Tile}"> <Border> <StackPanel> <local

How to unselect the grid record in kendoui

冷暖自知 提交于 2019-12-05 14:23:36
问题 I am selecting the listview record on databound event. I have written the following code in databound var grid = $("#grid").data("kendoGrid"); grid.select(grid.tbody.find(">tr:first")); Now i want to deselect the grid dynamically. How can I do that? 回答1: Use clearSelection: var grid = $("#grid").data("kendoGrid"); grid.clearSelection(); 回答2: kendo grid has a property called selectable:true ..this would select the entire row when clicked upon and to de-select the row simply press ctrl+the row

Kendo Grid: Getting widget instance in Angular

喜夏-厌秋 提交于 2019-12-05 09:46:51
I was trying to get an instance of the Kendo grid within my Angular Controller, so I can try and hook up to some events (and call methods) I know this is probably not best practice (and should probably use a custom directive), but according to the documentation , we should be able to use... <div ng-app="app" ng-controller="MyCtrl"> <input kendo-datepicker="datePicker" k-on-change="onChange()"> </div> <script> angular.module("app", [ "kendo.directives" ]).controller("MyCtrl", function($scope) { $scope.onChange = function() { alert($scope.datePicker.value()); }; }); So, I was trying to do the

MVVM binding double click to method using telerik radtreecontrol

旧城冷巷雨未停 提交于 2019-12-05 08:46:31
I've been working on this problem for a stupid amount of time. It is time to ask for directions despite my inner man saying "don't do it." I am coding in WPF C# using MVVM design pattern. We try to adhere strictly to the pattern and put nothing in the code behind unless there is no option or it is completely unreasonable to do so. Having said that, I am working with a Telerik RadTreeView. Here is a snippet of it in my XAML: <telerik:RadTreeView IsExpandOnSingleClickEnabled="True" IsLineEnabled="True" Margin="5" ItemsSource="{Binding ItemsView}" SelectedItem="{Binding SelectedWidget, Mode

Kendo Grid filter to use combo box with column.values rather than drop down list

强颜欢笑 提交于 2019-12-05 08:41:51
I'm trying to get Kendo's Grid to show a filter using a combo box rather than a drop down list when used with values. What I mean is, on the grid columns array, each column can be given a list of values (objects with text and value properties) for each possible entry in the database, thereby rather than showing a code, it shows a recognisable name or text instead of the code. The problem is that whenever I specify values against the column, the filter reverts to a fixed list of criteria and a drop-down list, which I don't want. See an example of what I mean here . What I'd like to see is the

How to get a Telerik Grid filtered based on previous page selection

穿精又带淫゛_ 提交于 2019-12-05 08:08:15
问题 What I'm trying to do:- Index page would have a dropdown of say categories, select 1 then submit, redirected to telerik grid page with all records kept from a big table of selected category. so for example pet store, dropdown for which type of pets the store has then on next page a grid is populated with all pets of that type which the store has available today. already got the date filter sorted since that's applied to the databind. database is connection via an edmx, it has 2 table with no

How can I make label text scale-able in Winforms application

和自甴很熟 提交于 2019-12-05 07:03:56
I am looking for a way to make text in a label scale-able to it fit in entire parent container. The one way I can think of is to get the container size on window re-size and then increase or decrease font size accordingly, but that would limit its possibilities. Wondering if there is a better way of doing this, that may work more like an anchor property in Winforms application. I knew the answer is hidden somewhere in graphic object and paint event, playing around with these 2 keywords solved my problem. Here is the solution that worked in my particular case. I am simply changing the font size

Removing all CSS from telerik controls

こ雲淡風輕ζ 提交于 2019-12-05 04:25:29
I'm using Telerik RadControls for ASP.NET and wondered if there was any way to turn off/stop the CSS that is automatically downloaded with the controls. I don't want to remove any of the class names that are applied to the telerik HTML elements, I just want a clean slate so that I can style them exactly how I want. The reaon I ask is that I'm trying to apply an font enlarger for people with impaired vision to my site. I can overwrite the current styles with something like: html body .RadInput_Default .riTextBox, div.RadComboBox_Default input.rcbInput { font-size: 0.9em !important; height: 1

Trying to build a Query Builder Control in WPF

六月ゝ 毕业季﹏ 提交于 2019-12-05 03:14:31
问题 Please bear with me for the length of this question, I tried to be as descriptive as possible. I am new to WPF programming. I am basically trying to build the RadDataFilter control: RadDataFilter is used to filter collection by building query expression. The control is generally used by bringing all data from the database and then filtering on them. However, I am trying to use it to build SQL query expression and then I query the database to retrieve the data. Our company has license for

Mark a field “Read Only” with Data Annotations

◇◆丶佛笑我妖孽 提交于 2019-12-05 00:36:51
I am trying to make the ID field read only. It is an Identity field in the DB so the user will not be setting it. However they would like to see it. What am I missing as the below, when assigned to a DataForm still allows that value to be Edited. public class StatusChoice : BindableBase { private int id; [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Editable(false,AllowInitialValue = false)] public int ID { get { return id; } set { id = value; OnPropertyChanged(); } } } vijay Mark Property with ReadOnly attribute. [ReadOnly(true)] public decimal BodyMassIndex { get; private set;