Telerik Forums
Kendo UI for jQuery Forum
1 answer
473 views

I have a kendo grid with grouping and endless scrollbar. I am trying to update dataItem(s) using dataItem.set with an external button click. dataItem.set is not firing change event and data is not being updated. 

 

Can someone help me with the issue.

Nikolay
Telerik team
 answered on 06 Apr 2020
1 answer
85 views

i did not bind Multicolumndroupdownlist

 

view

                        @(Html.Kendo().MultiColumnComboBox()
              .Name("customers")
              .Placeholder("Select customer")
              .DataTextField("CustName")
              .DataValueField("CustomerID")
              .Columns(columns =>
              {
                  columns.Add().Field("CustName").Title("Name");
                  columns.Add().Field("CustomerID").Title("ID");
              })
              .HtmlAttributes(new { style = "width:100%;" })
              .Filter("contains")
              .AutoBind(false)
              .MinLength(2)
              .DataSource(source =>
              {
                  source.Read(read =>
                  {
                      read.Action("GetCustomers", "OrderManagement");
                  })
                  .ServerFiltering(true);
              })
            )

 

 

 

 

 

Controller

 

 public ActionResult GetCustomers(string text)
        {
            ApplicationDbContext db = new ApplicationDbContext();
            var customers = db.Customers.Select(customer => new Customer
            {
                CustomerId = customer.CustomerId,
                CustName = customer.CustName,
                PhoneNo = customer.PhoneNo
            });

            if (!string.IsNullOrEmpty(text))
            {
                customers = db.Customers.Where(p => p.CustName.Contains(text));
            }
           // return Json(GetOrders().ToDataSourceResult(request), JsonRequestBehavior.AllowGet);
            return Json(customers, JsonRequestBehavior.AllowGet);
        }

 

 

 

 

Dimitar
Telerik team
 answered on 06 Apr 2020
5 answers
6.0K+ views
I have a treeview build with load on demand from a datasource that is a list of items, every item has an id. I want to send to the server using ajax the id of the selected item in the tree.
--- View code ---
@(Html.Kendo().TreeView()
        .Name("treeview")
        .DataTextField("Name")
        .DataSource(dataSource => dataSource
            .Read(read => read
                .Action("OmanagerItems", "TaskManager")
            )
        )
        .Events(events => events
            .Select("onSelect")
            .Expand("onExpand"))
    )
function onSelect(e) {
    var itemId = e.node.getAttribute("data-uid");
   // this is where i want to get the id of the selected item
}
 
// here i want to tell the server that i'm working on a task
function changeWorkingStatus(docId) {
    $.ajax({
        url: "/TaskManager/ChangeWorkingStatus",
        type: "POST",
        success: function (data) {
            updateInterface(data.IsWorking);
        }
    });
}

I'll appreciate any help, thank you.
Mike
Top achievements
Rank 1
 answered on 03 Apr 2020
3 answers
257 views
Have created a backbutton:
<div data-role="navbar">
    <span data-role="view-title"></span>
    <a data-role="backbutton" data-align="left"></a>
</div>

When viewing in the device simulator for ios, it shows a left arrow icon. When I switch to an adroid device, it has nothing.
If I add the text "back", it shows both the text and the icon and it does not align vertically well. It only shows the word "back" on android.

Project is in Telerik Platform using Kendo UI Core 2014.2.1107

Thanks.
Martin
Telerik team
 answered on 03 Apr 2020
6 answers
890 views

Hello everyone,

if I use a HierarchicalDataSource with serverFiltering set to true, filter requests are being sent to my remote data source. The problem is though, that already selected items can not be removed any more by clicking on the delete icon after the dataSource has been reloaded, probably due to changed uid's. Is there a workaround for this?

Bye,

Bo

Petar
Telerik team
 answered on 03 Apr 2020
1 answer
91 views
Hi, I have implemented a custom, cumulative file size limitation (30MB total size limit) and after removing the files that surpass that limit, when the form is submitted, it still sends the removed files.  I've done a "getFiles()" on the Upload control and it does only show the files that I would expect to be sent, so I'm a little confused as to why it's still passing files that aren't supposed to exist anymore.  Any help would be greatly appreciated!
Plamen
Telerik team
 answered on 03 Apr 2020
4 answers
233 views

Hi,

We have a scenario that shows a form (e.g. with field A and field B) with multiple text fields being edited using MVVM tied to a data source that’s is set to AutoSync. This datasource is tied to a remote connection, so there can be a momentary lag e.g. 1-2 secs.

What we can observe is that :-
- The user types in field A
- The user then clicks on field B, and starts typing… 
- As the field A lost focus, AutoSync has kicked in (so network request starts)
- User starts to type in field B, but then previous network request finishes and fieldB resets to the value in the datasource, effectively undoing what the user has just typed

Is this ‘expected’ behaviour? Do you know any methods (or workarounds) to prevent this?  Or do we need to disable AutoSync?

Is there any documentation about what events on html input fields that MVVM / AutoSync use, and when ?

Thanks

Chris

Plamen
Telerik team
 answered on 03 Apr 2020
1 answer
206 views

I have an application that uses an input for the user to enter a number. When the input is changed another field is recalculated based on the value entered. Because the application is used in different cultures and because the telerik interferes on data binding (see https://www.telerik.com/forums/numeric-input-on-popup-edit-on-different-language) with the decimal separator I have to change the input to a telerik numerictextbox. However the input event does not exist on the numerictextbox.

I tried using numerictextbox_text.on('input keyup', calculate) but they do not work. How can I have the input event on the numerictextbox?

Tsvetomir
Telerik team
 answered on 03 Apr 2020
2 answers
2.0K+ views
i need a good tutorial for kendo ui please share tat. iam total beginner for kendo ui
xu
Top achievements
Rank 1
 answered on 03 Apr 2020
3 answers
615 views

I have a page that contains a grid. The grid contains a number column. The grid is using a custom popup editor. For the number column I am using an input instead of the telerik control for numbers.

The application is localized.

When I am using a culture where the decimal separator is comma(",") when changing the number after leaving the input the decimal separator is changed from comma to point.

 

I have prepared a demo

https://dojo.telerik.com/UvAfafor/2

Here are the steps to reproduce the problem:

1. Edit the 5th row (the one that has decimals 21.35 - anyone that has decimals should work)

2. Change the decimal point from point to comma (The code from gridEdit does not work - even though in my application works[however I am using globalize package])

3. Leave the input (The decimal point should remain to comma)

4. Go to UnitPrice and add at the end a new digit (can be added or removed any digit as long as the comma is not removed)

5. Leave the input => wrong behavior the comma is converted to point.

=> expected behavior the comma should remain regardless of how many times I change the value

Silviya Stoyanova
Telerik team
 answered on 03 Apr 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
Dialog
Chat
DateRangePicker
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
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?