Telerik Forums
Kendo UI for jQuery Forum
5 answers
156 views

Hi,

 

please check this plunker (http://embed.plnkr.co/MBjO2QBkpDoqDGD2NDR2/preview) with Chrome. You have to click twice into the input fields inside the grid to start typing. I have the same problem in my project.

Versions:

Kendo - v2015.1.408

JQuery - v2.1.3

Angular - v.1.3.15

 

Thanks for your help,

Regards

Kiril Nikolov
Telerik team
 answered on 09 Jun 2015
3 answers
113 views

Using MVC wrappers, I would like to be able to show/hide the CRUD operations based on booleans in the model (CanCreate, CanUpdate, CanDelete). So, if the CanDelete property is true, the delete button should show up (if false, it should not). Same for other 2 properties.

How can I configure the MVC wrapper this way?

For example,

.ToolBar(commands => commands.Create())

should only be included if the Model.CanCreate is true.

Thanks,

--John

Boyan Dimitrov
Telerik team
 answered on 09 Jun 2015
2 answers
107 views

hi!

i'm displaying a SharePoint 2010 List in a Kendo Grid using the standard SharePoint 2010 REST Interface. The Grid instantly supports filtering, sorting etc. out of the box and works well with the SP REST Interface - awesome. The only problem is: how do I filter blank entries?

 

Thank you"

 

This is the Filter part of my Grid configuration:

 

01.filterable: {
02.            extra: false,
03.            messages: {
04.                info: "Datensätze filtern:",
05.                filter: "Filtern",
06.                clear: "Löschen",
07.                and: "und",
08.                or: "oder"
09.            },
10.            operators: {
11.                string: {
12.                    contains: "beinhaltet",
13.                    eq: "ist gleich",
14.                    neq: "ist nicht gleich",
15.                    blank: "ist leer"
16.                },
17.                date: {
18.                    eq: "ist gleich",
19.                    gt: "nach",
20.                    lt: "vor"
21.                },
22.            }
23.        }
This is the DataSource part of my Grid configuration:

01.dataSource: new kendo.data.DataSource({
02.            type: "odata",
03.            transport: {
04.                read: {
05.                    url: "http://myserver/demo_app/_vti_bin/listdata.svc/Daten$select=*,ErstelltVon/Name&$expand=ErstelltVon",
06.                    dataType: "json"
07.                }
08.            },
09.            sort: ({ field: "Erstellt", dir: "desc" }),
10.            pageSize: 5,
11.            resizable: true,
12.            serverSorting: true,
13.            serverFiltering: true,
14.            serverPaging: true,
15.            schema: {
16.                model: {
17.                     
18.                    fields: {
19.                        Vertragskonto: { type: "string" },
20.                        GPName: { type: "string" },
21.                        GPNummer: { type: "string" },
22.                        Erstellt: { type: "date" },
23.                        ErstelltVon: {
24.                            Name: {
25.                                type: "string"
26.                            }
27.                        },
28.                        WeitereVKs: { type: "string" },
29.                        DatumAktenabgabe: { type: "date" },
30.                        AktenabgabeAn: { type: "string" },
31.                        DatumAkteneingangFachbereich: { type: "date" },
32.                        Aktenrueckgabe: { type: "string" },
33.                        DatumAktenrueckgabe: { type: "date" },
34.                        DatumAkteneingang: { type: "date" },
35.                        Bemerkung: { type: "string" },
36.                        UemlbergabeVon: { type: "string" }
37.                    }
38.                }
39.            }
40.        }),

Steffen
Top achievements
Rank 1
 answered on 09 Jun 2015
1 answer
244 views

Dear Telerik ,

 

I have this problem I have a dynamic client side grid in which I add rows. one of the fields is a text field which represents a phone number. All input must be numeric and the length must not exceed 10 chars. so I added a templates that creates the input=text with a keyup="checkerfunction(this,maxlen);

When every the function finds that an the input is not allowed it trims the value of the text box text.value = "trimedValue";

every time the function manipulates the value there seems to be a problem in the binding of the textbox to the kendo dataSource of the grid when the row is saved the value returns to the value before the row was opened for editing when we check the value after a trim action by the function and durring the custom command handeling the saving of the row the value of the bound field in the dataSource is "" (empty string). what is the cause of all this.

 

Yours,

 

Ariel

 

Daniel
Telerik team
 answered on 09 Jun 2015
1 answer
79 views

Is it possible to create a resource view which will show multiple resources across the top and then days going down the left hand side not hours. I would like to be able to have a configurable number of slots which are allowed per day (i.e. 6 slots available for a resource for a day)

 

Many Thanks

 Greg

Alexander Popov
Telerik team
 answered on 09 Jun 2015
1 answer
289 views

I have used the below rowTemplate for simply changing the background color of the grid TR conditionally upon the bound value of the field ApprovalStatus. 

rowTemplate: '<tr data-uid="#: uid #" ng-class="{approved: \'#:ApprovalStatus#\' ==\'Approved\', unapproved: \'#:ApprovalStatus#\' ==\'Unapproved\'}"><td>#:ProcessName #</td><td>#:TradeAmount #</td><td>#:ApprovalStatus #</td></tr>',

 Now do I actually need to specify the TDs in the template. I already have the columns defined as follows:

 columns: [
{ field: "IsChecked", width: "30px", title: " ", template: '<input ng-disabled="dataItem.ApprovalStatus" ng-model="dataItem.IsChecked" type="checkbox" />', filterable: false, headerTemplate: '<input type="checkbox" ng-click="ctrl.checkAllTrades()" ng-model="ctrl.tradesChecked">' },
{ field: "ProcessName", title: "Process Name", width: "190px", filterable: { cell: { showOperators: false, template: processNameDropDownEditor } }, template: '<a style="font-size: x-normal;" href="#=Link#">{{dataItem.ProcessName}}</a>', attributes: { style: "text-align:left;" } },
{ field: "TradeAmount", title: "Trade Amount", width: "120px", filterable: { cell: { showOperators: false } } },
{ field: "ApprovalStatus", title: "Approval Status", width: "150px", filterable: { cell: { showOperators: false, template: approvalStatusDropDownEditor } } }
]

But on applying the rowTemplate the columns do not align well with the headers. Your help is sincerely appreciated.

Rosen
Telerik team
 answered on 09 Jun 2015
2 answers
359 views

Hi,

With signalr, we can change the page by clicking on link (menu...) even if grid is not loaded (not with AJAX, IIS stores in queue the requests).

Is it possible to "kill" / abort read request in grid, without changing page ?
Ex.: 

- I read the grid data, it takes long time.

- I want to filter data with extra param (that's ok), without waiting for the end of the first request.

I tried to stop / start hub connection before reading, i saw the abort call but grid did'nt send the request next.

 

How can we abort the request pulling ?

 

Many thanks,

 

Kendo v2015.1.408

Signalr 2.2.0

Alexander Popov
Telerik team
 answered on 09 Jun 2015
2 answers
213 views

Hi,

 I can't figure out how to rotate a rectangle in my visualTemplate. If I add a rectangle like this to the Group that contains the elements in the template, how do I rotate the rectangle?

var r = new kendo.dataviz.diagram.Rectangle({
    width: 60,
    height: 60,
    fill: 'white',
    stroke: { color: 'black', width: 2 }
});
g.append(r);

Thanks :-)

Niels
Top achievements
Rank 1
 answered on 09 Jun 2015
7 answers
889 views

Hi,

I have to use the grouping option, but only after initialization of the dropdownlist like this: 

item.dataSource.group( { field: "category" })

It work, except for the first group, which is not shown.

I reproduced my issue in http://dojo.telerik.com/oMEQU.

 

 Also, is it possible to sort groups other than alphabetically. For example, by field "sortField" to get "Vegetables" first, then "Fruits", then "Meat" ? 

 

 

 

 

 

 

 

 

Georgi Krustev
Telerik team
 answered on 09 Jun 2015
2 answers
1.1K+ views
Hello,

when i add a tooltip to a textbox it does not fire the keypress event. 

<div id="example">
    <input class="k-textbox"
                  title="Hello!"
                  data-role="tooltip"
                  data-auto-hide="false"
                  data-position="top"
                  data-bind="events: { show: onShow, hide: onHide, keypress: onKeypress }"/>
 
    <div class="box-col console-section">
        <h4>Console</h4>
        <div class="console"/>
    </div>
</div>
<script>
    var viewModel = kendo.observable({
        onShow: function() {
            kendoConsole.log("event :: show");
        },
        onHide: function() {
            kendoConsole.log("event :: hide");
        },
        onKeypress: function() {
            kendoConsole.log("event :: key press");
        }
    });
    kendo.bind($("#example"), viewModel);
</script>

 

After removing the tooltip, the keypress event is working as expected.

removed lines:

data-role="tooltip"
data-auto-hide="false"
data-position="top"

 Dojo Example that demonstrates this problem: http://dojo.telerik.com/AhigA

Could you be so kind to help us with this issue.

Kind Regards,

Bert

 

 

 

 

Bert
Top achievements
Rank 1
 answered on 09 Jun 2015
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
Licensing
ScrollView
Switch
TextArea
BulletChart
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
TimePicker
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
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?