Telerik Forums
Kendo UI for jQuery Forum
1 answer
195 views

Hello,

 

I get data from ajax call,i have two fields which are Boolean   and want to apply the filter on these two fields:

 

  $.ajax({
          dataType: "json",
          type: "POST",
          url: "@Url.Action("fnction", "Dashbrd")",
          contentType: "application/json; charset=utf-8",
          data: JSON.stringify({ "regionalManager": dtDrpVals.drpValue, "dtFrom": dtDrpVals.fromDate}),
          success: function (result) {
          var dataSource = new kendo.data.DataSource({
          data:result,      
          filter:[{
         "logic": "and",
         "filters": [{
         "field": "m_grid",
         "operator": "eq",
         "value": false},
         {"field": "crew_present",
          "operator": "eq",
          "value": false}]},]      
      });

 

the result has 40 records,if the filter i set works,must give me 10 records

Neli
Telerik team
 answered on 28 Aug 2018
1 answer
484 views
i want post form and grid data ,
i have sample like this
https://dojo.telerik.com/OZUsIzIw/4

i want try post to my url with format json
http://10.0.8.212:81/api/ArPumPd/create

how to do that? thank you.
Viktor Tachev
Telerik team
 answered on 28 Aug 2018
3 answers
674 views

Hi guys, I've a case where I'm grouping with the grid, but want to sort in a different order.

E.g. by default if my group data field has values A, B, C, D this would be the group order.

I have data that is sorted by sections of data, that have an order the client wants displayed in a priority order.

To simplify it something like:

Display Field Value    Sort Field Value

A                                2

B                                4

C                                1

D                                3

I want the grouping text to be A, B, C, D, but the order to be C, A, D, B as per the sort field value (a field not to be visible).

I haven't been able to find anyway to do this. Any help greatly appreciated.

Konstantin Dikov
Telerik team
 answered on 28 Aug 2018
1 answer
126 views
Attached is the snippet for the Kendo UI grid. The full text (e.g. Column 1) is displayed in the header for all browsers except in the Safari browser. The Safari browser show ellipsis in the header title (Col...) that is causing issue for our customer. The customer does not know that they can expand the column in the grid. How can I show full text in the column header in Safari browser like it show in the Chrome etc? 
Konstantin Dikov
Telerik team
 answered on 28 Aug 2018
1 answer
106 views

Hi

in a kendo grid column I'm trying to render column sparklines from this markup:

<span class="compliance-dev" data-source="-1,-1,-1,1,1,-1,-1,-1"></span>

in grid.dataBound I do this:

var $spans = $(".compliance-dev", "#grid");

            $.each($spans, function() {
                var $span = $(this);
                var ds = $span.data("source").split(',');
                $span.kendoSparkline({
                    data: ds,
                    //series: [{
                    //    type: "column",
                    //    color: "#ff0000",
                    //    negativeColor: "#0099ff"
                    //}]
                });
            });

This renders into a sparkline of type line: https://dojo.telerik.com/UsUluTaK

How do I render the sparkline as a column graph?

/Morten

Daniel
Telerik team
 answered on 28 Aug 2018
2 answers
87 views

I am use in popup window TreeList, and bind treeList to array. Simple example http://dojo.telerik.com/OjipACUQ

Update button in popup window save record and array as one record.

Some problems i fix.

Add new record then edit and press cancel, record will be removed, but record is not dirty and not isNew()

How can i fix it?

In my application editing and adding works, in the example does not work. i don't know why.

Alexander
Top achievements
Rank 1
 answered on 27 Aug 2018
1 answer
179 views
Is there another way to catch the moment when tooltip changes its position from ie. 'bottom' to 'top' than monitoring class '.k-callout-[n,e,w,s]'? Because in latest Kendo version this class, once given, doesn't change the arrow direction.
Ivan Danchev
Telerik team
 answered on 24 Aug 2018
5 answers
801 views

How do I set the uid for files in the initial file list options for the upload widget?  

When I upload files the guid is auto generated and easily available in the upload event via e.files[0].uid

I have saved this information in the database along with the file and can repopulate the widget with previously uploaded files, but not set the uid, a new, different one is generated.  I would like to set it so I can use the existing uid when a user clicks remove on a previously uploaded file and I can delete it from the database.

The initial files array seems not to support it, is there another way?

http://docs.telerik.com/kendo-ui/api/javascript/ui/upload#configuration-files

Ivan Danchev
Telerik team
 answered on 24 Aug 2018
1 answer
308 views

Hi All,

        I am working on grid filter and I meet such a problem. The type of field "status" is string and it will return 0 for Female and 1 for Male. I use a template to show "Male" or "Female" instead of "0" or "1" respectively in grid. However, the filter doesn't work because it only receives "0" or "1" and "Female" or "Male" will show nothing in grid. The code is below.

     { 'field': 'status' , 'title': 'Gender', 'width': 110, 'template': &quot;#= status === '1' ? 'Male' : 'Female' #&quot, }

       I wanna use filter to accept "Male" or "Female", or create a multiple selection, how should I make it? Thanks for your help.

James

Georgi
Telerik team
 answered on 24 Aug 2018
5 answers
139 views

I want to use pagination to display data, but it won't be in a grid form, I would just show some documents in a div, but still want to be able to paginate - i.e. request html for n-th page.

Is this possible?

Tsvetina
Telerik team
 answered on 23 Aug 2018
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
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?