Telerik Forums
Kendo UI for jQuery Forum
1 answer
144 views

Hi,

I've been looking at the code posted here...

How can this be adapted to navigate to my MVC view Requests\RequestDetail?id= + the ID of the clicked event?

Thanks

Vladimir Iliev
Telerik team
 answered on 16 Jun 2016
1 answer
88 views

I would like to know whether it is possible to implement a grid layout similar to the option available in SilverLight. Attaching a snapshot of my expectation. The requirement needs to have grid along with a SilverLight filter option. please share links, codes or document which would help to replicate the attached silverlight implementation in Kendo UI.

 

Short Des : i need both multi select and normal filter in Kendo UI

Kiril Nikolov
Telerik team
 answered on 16 Jun 2016
2 answers
301 views

Hi there,

we are hitting some limitations with the out of the box bubble chart when it comes to controlling the actual size of the bubbles as the chart always resizes the bubble based on some relative size logic as it seems. We played around with minSize, maxSize and the actual size of the dataItem in the series but we never get the result we are looking for in terms of consistent size across multiple charts.

Is there an easy way to implement our own resize logic by somehow extending the kendoChart and overriding its "updateBubbleSIzes" function ? We are aware we can deep extend widgets in general, but not specifically how to do that for a specific kendoChart type and a specific function.
We would obviously like to do that on run-time rather then branching of your source code.

Another option would be to turn off relative sizing which seems to have been an option in the past, at least we still see it in the ASP API, is there a way to have that in the JS API and would that give us full control over the bubble sizes?

 

cheers,
Steve

 

Steve
Top achievements
Rank 1
 answered on 16 Jun 2016
3 answers
881 views
Hi, I am new to Kendo and would like to know how I can store the text value of a dropdownlist in a viewModel element.  I have three cascading dropdowns and the value of two of them is not what I want, it is the actual text of the dropdownlist that I need.  As the dropdownlists change I would like to have a hidden html element that has a data-bind="text: viewModel.element" so it would always have the current text of the dropdownlist.

Thank you
Dimiter Topalov
Telerik team
 answered on 16 Jun 2016
6 answers
329 views

Hello,

 

How I can make this example to work?

http://dojo.telerik.com/omuWa/2

Nikolay Rusev
Telerik team
 answered on 16 Jun 2016
1 answer
87 views
Is there a suggested way to have a dropdown template for an editable cell in a grid to have its datasource filtered by the key (or other value) in that specific row in the grid?
Marc
Top achievements
Rank 1
 answered on 15 Jun 2016
3 answers
421 views

First thank you Veselin Tsvetanov for your help in my previous questions. I did not expect the api would return a long as a string instead of a number so your help was greatly appreciated. 

To increase the size of the graph we have to just go with the Code instead of the CodeDesc. However, we would like for the CodeDesc to still appear when the user does a mouseover in the template. I have <div>dataItem.CodeDesc</div><br/> where it would be. I tried #: dataItem.CodeDesc # but it did not recognize dataItem. So I was wondering if I can still grab dataItems from the DataSource in the template. 

The next item is concerning the column of CountReqs. Currently the TotalValue column is grouped, is it possible to also group CountReqs at the same time? It appears that if I do a label of CountReqs it grabs the first CountReqs it finds and displays that when the label should be a summation of CountReqs. The second item is in relation to grabbing the CountReqs in the template to also display the number next to the TotalValue. I have the placeholder as \\#\\# Opportunities.

My sample is at http://dojo.telerik.com/@dhighfield/EfuVA. Please update at will.

Thank you in advance for your assistance.

 

v/r,

Dave Highfield

Alex Hajigeorgieva
Telerik team
 answered on 15 Jun 2016
1 answer
132 views

Hi,

I am working with the Grid control in AngularJS and I am trying to figure out if there is a way to update all the column data with data input taken from the header template. I am using template on a column which has a textbox and header template having a textbox. As per the requirement, when the user gives an input on the header textbox all the textboxes in the column should be updated with the user input on the header.  Here is the attached plunkr where the discount column has a textbox in the header. The column data is all textboxes. When the user input a value on the header, all the column textboxes must be updated with the value.

Thank you

YK

Boyan Dimitrov
Telerik team
 answered on 15 Jun 2016
3 answers
730 views
How to add placeholder for all the filter text boxes in the grid. For date columns the filter text box should show the date format like mm\dd\yyyy. How to achieve this for all columns in the grid?
Boyan Dimitrov
Telerik team
 answered on 15 Jun 2016
3 answers
569 views

I'm having a problem with the Grid where what I'm trying to do, is have a lookup dropdownlist in one of my fields. When the user clicks the field, the dropdown does show itself with the correct items, but when I select something and tab off to the next field (or just move away from the field), it reverts back to the previously selected value, or or shows a null in the table. That being said, if I click save changes, it is actually editing the correct field in one of the tables.

My issue is, When a user clicks on a product in the productFK field, I need the selected description to stay put, yet, when I click save changes, the respective Foreign key for that product gets inserted/updated into my stored proc, and not the description field. I know this can be done, I've done it sometime last year but I haven't worked with the grid for awhile until recently and forgot how to do it.

Here's some code.

$(document).ready(function () {
    var crudServiceBaseUrl = "http://localhost:56291/",
        dataSource = new kendo.data.DataSource({
            transport: {
                read: {
                    url: crudServiceBaseUrl + 'Orders/GetLineItemsForOrder/' + Cookies.get("ponum"),
                    dataType: "json",
                    type: 'GET',
                    contentType: 'application/json; charset=utf-8'
                },
                create: {
                    url: crudServiceBaseUrl + 'Orders/InsertLineItems/' + Cookies.get("ponum"),
                    dataType: "json",
                    type: 'POST',
                    contentType: 'application/json; charset=utf-8',
                    complete: function (e) {
                        //ReloadLineItemGrid();
                    }
                },
                update: {
                    url: crudServiceBaseUrl + "Orders/UpdateLineItems",
                    dataType: "json",
                    type: "PUT",
                    contentType: "application/json; charset=utf-8",
                    complete: function (e) {
                        ReloadLineItemGrid();
                    }
                },
                destroy: {
                    url: crudServiceBaseUrl + 'Orders/DeleteLineItem',
                    datatype: "json",
                    type: 'DELETE',
                    contentType: 'application/json; charset=utf-8',
                    complete: function (e) {
                        //ReloadLineItemGrid();
                    }
                },
                parameterMap: function (options, operation) {
                    if (operation !== "read" && options.models) {
                        return kendo.stringify(options.models);
                    }
                }
            },
            batch: true,
            pageSize: 20,
            schema: {
                model: {
                    id: "LineItemPK",
                    fields: {
                        LineItemPK: { editable: false, type: "string", nullable: true },
                        Quantity: { editable: true, type: "number", format: "{0:d}" },
                        UnitPrice: { editable: true, type: "number", format: "{0:c2}" },
                        ExtPrice: { editable: false, type: "number", format: "{0:c2}" },
                        ProductFK: { editable: true, type: "number" },
                        ProductID: { editable: true, type: "string" },
                        UoM: { editable: true, type: "string" },
                        InvoiceNum: { editable: true, type: "string" },
                        DepFunction: { editable: true, type: "string" },
                        CostCenterFK: { editable: false, type: "number" },
                        AccountFK: { editable: false, type: "number" },
                        OrderFK: { editable: false, type: "number" }
                    }
                }
            }
        });
    $("#gridLineItems").kendoGrid({
        dataSource: dataSource,
        navigatable: true,
        pageable: true,
        editable: {
            mode: "inline"
        },
        toolbar: [{ name: "create", text: "Insert Line" }, { name: "cancel" }, { name: "save" }],
        columns: [
            { field: "LineItemPK", title: "LineItemPK", hidden: true },
            { field: "Quantity", title: "Qty", validation: { min: 0 } },
            { field: "UnitPrice", title: "Unit Price" },
            { field: "ExtPrice", title: "Ext. Price", editable: false, attributes: { "class": "ExtPrice" } },
            { field: "ProductFK", title: "Product FK", editor: productDropDownEditor, template: "#=Description#" },
            { field: "ProductID", title: "Product ID" },
            { field: "UoM", title: "UoM" },
            { field: "InvoiceNum", title: "Invoice #" },
            { field: "DepFunction", title: "Dep. Funct." },
            { field: "CostCenterFK", title: "Cost Center", hidden: false },
            { field: "AccountFK", title: "G/L" },
            { field: "OrderFK", title: "OrderFK", editable: false, hidden: true },
            { command: "destroy", title: " ", width: 120 }
        ],
        editable: true,
        selectable: true,
        edit: function(e) {
            setTimeout(function () {
                var input = e.container.find("input");
                input.select();
            }, 100);
        },
        remove: function (e) {
            dataSource.sync();
        },
        save: function (data) {
 
            if (data.values.Quantity)
            {
               
            }
        },
        saveChanges: function (data)
        {
 
        }
    });
 
});
 
function ReloadLineItemGrid()
{
    $("#gridLineItems").data("kendoGrid").dataSource.read();
    $('#gridLineItems').data('kendoGrid').refresh();
}
 
/* -- custom drop down editors */
function productDropDownEditor(container, options) {
    $('<input data-text-field="Description" data-value-field="ProductPK" data-bind="value:' + options.field + '"/>')
        .appendTo(container)
        .kendoDropDownList({
            autoBind: false,
            dataSource: {
                type: "json",
                transport: {
                    read: "http://localhost:56291/api/products"
                }
            },
            dataTextField: "Description",
            dataValueField: "ProductPK"
        });
}

 

So as you can see, I'm calling another SP to return all products and I'm targeting fields Description and ProductPK. I'm stuffing that into the editor. When the grid does a save, I'm calling another SP that saves line items for an order, and I'm throwing the ProductPK into that SP, so as I explained earlier, I need to have a integer there, but for UX sake, I need the editor to always show the selected PK/index on grid load, and I need it to stay put when the user makes a selection and changes it. I hope I'm explaining this correctly.

I realize I can probably define another method that passes in a value and returns the string, "description" value, but I'm hoping there's an easier way - I thought there was. I thought I recall doing something like this in the past by playing with this line....

$('<input data-text-field="Description" data-value-field="ProductPK" data-bind="value:' + options.field + '"/>')

 

Any help is appreciated.

Boyan Dimitrov
Telerik team
 answered on 15 Jun 2016
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
Chat
MultiColumnComboBox
Dialog
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
TextArea
BulletChart
Licensing
QRCode
ResponsivePanel
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
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
SmartPasteButton
PromptBox
SegmentedControl
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?