Telerik Forums
Kendo UI for jQuery Forum
4 answers
283 views
Hi there,

I have 2 cascading comboboxes in my form: CompanyId --> TaskId

When I select a company and there are no tasks linked to it the TaskId combobox should become disabled.
Just like it becomes disabled when I clear the CompanyId combobox.

This is what I do in the controller action:
       
01.public JsonResult Autocomplete(string query, int companyId) {
02.           var ret = Dao.Task.GetMany(i => i.CompanyId == companyId);
03. 
04.           if (!string.IsNullOrEmpty(query)) {
05.               query = query.ToLower();
06.               ret = ret.Where(i => i.Subject.ToLower().Contains(query));
07.           }
08. 
09.           var res = ret.Select(i => new {
10.               id = i.Id,
11.               name = i.Subject
12.           });
13. 
14.           return Json(res, JsonRequestBehavior.AllowGet);
15. 
16.       }


How can I do that?

many thanks,
Chris
Ingerid
Top achievements
Rank 1
Veteran
 answered on 21 Sep 2020
1 answer
442 views

Hi, I browsed across several similar questions without finding what am I doing wrong:

 

In Kendo JQuery Grid, I'm not being able to get dataBound event work even in this trivial example(attached). However, the dataBinding event is being fired as expected. What's wrong?
(Can't find any meaningful difference compared with the Telerik grid event demo. https://demos.telerik.com/kendo-ui/grid/events)
Any hint will be greatly appreciated.

 

Ivan Danchev
Telerik team
 answered on 21 Sep 2020
1 answer
163 views
I'm struggling with layout of the pager controls. I'm trying to get the .k-pager-refresh and .k-pager-info elements to flush left (right next to the pager buttons) instead of flush right. Does anyone have a solution for this?
Ivan Danchev
Telerik team
 answered on 21 Sep 2020
1 answer
255 views
I am checking about using Telerik JS Components in Oracle Apex but before start working I want to confirm that whether is it possible to use Telerik in Oracle Apex.
Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Sep 2020
3 answers
314 views
I am checking about using Telerik JS Components in Oracle Apex but before start working I want to confirm that whether is it possible to use Telerik in Oracle Apex.
Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Sep 2020
17 answers
489 views
Hi,

It seems that changed values in fields are not retained if the grid has inline editing enabled and a sortable widget created on it. Here's a quick demo:

http://trykendoui.telerik.com/eYUJ

The only way to save values is to tab out of the field, rather than clicking somewhere else. If the sortable widget is not created it's fine, though.

I've been able to reproduce this with both the official Q1 release and the latest internal build (2014.1.409). Is this a known issue?

Thanks,
Nick
Eyup
Telerik team
 answered on 18 Sep 2020
5 answers
248 views

Hello, av been using Kendo UI about a week now, I was wondering if the following was possible:

1. change the layout from treeview/Treelist to a grid, but it should come as a dialog (see attached image)

2. How to do I change the datasource to point to a location/file that is located locally?

 

 

 

Misho
Telerik team
 answered on 18 Sep 2020
3 answers
273 views

Hi,

I am new to Kendo and running into below issue.

I have a row with two textboxes (Phone Number & Email Address). I have a UserContactViewModel with these entries as PhNumber1 & Email1.  But I need to added additional rows on button click, so I created a template which will add the Phone NUmber and email address textbox on each click for user to provide additional information.

Issue is every time I click, I am able to add the template but the UserContactViewModel will not reflect any new elements that I have added through Template. I can only see the first element that was loaded initially. 

 

Can I get some help on how to update "UserContactViewModel" everytime I add a new row to the div. So that all existing options on the two textboxes applies to new textboxes that I have added through kendo UI template.

JS:

 

function addUserContact() {
           var template = kendo.template($("#AddUserContact").html());
         // Here I am just passing the counter or no. of clicks the user made so we need that number next to variable like Email2,
             Email3 etc
           var data = [
              { userCount:   no. of btn click }
            ];
           var result = kendo.render(template,data);
           $("#replicate").append(result);
         // I tried to use kendo.bind("#myviewname",userViewModel);
}

 

 

UserContactViewModel:

Class UserContactViewModel {
        public users: knockoutObservableArray<any> = ko.obsevableArray([]);
        public PhNumber1: knockoutObservable<int>  = ko.observable('');
        public  Email1: knockoutObservable<string>     = ko.observable('');
        public  isBeingUpdated: knockoutObservable<boolean> = ko.observable<false);
        public  isLoading: knockoutObservable<boolean> = ko.observable<false);
        public  isEditing: knockoutObservable<boolean> = ko.observable<false);
        public  isEditEnabled: knockoutObservable<boolean> = ko.observable<false);
        public  isModified: knockoutObservable<boolean> = ko.observable<false);
 
         public  UserContactViewModelGroup: knockoutValidationError;
 
      constructor() {
 
            let self = this;
             self.PhNumber1.extend({
             required: { message: 'Phone Number is required', onlyIf: () => { return self.Email1 ! == '';} }
              });
             self.userViewModelGroup = ko.validation.group([
                      this.phNumber1,
                      this.Email1
               ]);
          }
 
}

 

Thanks,

AG

Ianko
Telerik team
 answered on 18 Sep 2020
3 answers
288 views

Greetings,

I'm using a Kendo grid with filterable mode set to row, and I have the filter in the menu as well that allow 2 options.

If we select to options from the menu "VALUE A" or "VALUE B", the filter is applied correctly but in the row input only "VALUE A" is displayed.

Is there a way to:

1. Display both values in the row?

or 

2. Disable the row for that columns without displaying any values in that case?

Thanks,

Ivan Danchev
Telerik team
 answered on 17 Sep 2020
30 answers
2.8K+ views
Hy,

I've got a Column with String Values!

Our Customer wants to filter this Column with Checkboxes (like it is in Excel > look 'filter_checkbox-excel.png' attached) based on the Values of the Column and with "or"-Functionality! I've added a Screenshot oft the Design (filter_checkbox-web.png), how it should look like - can anyone say if this is possible?

greetings from Austria
Flo
Viktor Tachev
Telerik team
 answered on 17 Sep 2020
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
DatePicker
Spreadsheet
Upload
ListView (Mobile)
ComboBox
TabStrip
MultiSelect
AutoComplete
ListView
Menu
Templates
Gantt
Validation
TreeList
Diagram
NumericTextBox
Splitter
PanelBar
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
Filter
SPA
Drawing API
Drawer (Mobile)
Globalization
LinearGauge
Sortable
ModalView
Hierarchical Data Source
Button
FileManager
MaskedTextBox
View
Form
NavBar
Notification
Switch (Mobile)
SplitView
ListBox
DropDownTree
PDFViewer
Sparkline
ActionSheet
TileLayout
PopOver (Mobile)
TreeMap
ButtonGroup
ColorPicker
Pager
Styling
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
BottomNavigation
Ripple
SkeletonContainer
Avatar
Circular ProgressBar
FlatColorPicker
SplitButton
Signature
Chip
ChipList
VS Code Extension
AIPrompt
PropertyGrid
Sankey
Chart Wizard
OTP Input
SpeechToTextButton
InlineAIPrompt
StockChart
ContextMenu
DateTimePicker
RadialGauge
ArcGauge
AICodingAssistant
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?