Telerik Forums
Kendo UI for jQuery Forum
1 answer
250 views

I have been trying to use a Switch instead of a Checkbox in a non-mobile kendo grid instance built using Html helpers. I was able to build a dojo (http://dojo.telerik.com/ukafE) using javascript without paging. However, in real time, the grid load and brings data async-wise. The code that switches a checkbox to switch  already executes and is not able to find any checkboxes are they are still ajax-ing in the grid. If I put an alert, the grid loads a page while the message box is displayed and once I exit the message box, the get converted to switches.

How do I get to use switches in an Ajax Kendo grid built with Html Helper?

Stefan
Telerik team
 answered on 08 Dec 2016
2 answers
90 views
Hi, does anyone know  how to integrate Kendo UI Angular 2 in Visual Studio 2015 project
Gevorg
Top achievements
Rank 1
 answered on 08 Dec 2016
4 answers
693 views

Hello,

I have a datepicker with validation rule that calculates a new date, if the input is a number.

E.g. if today is 12/24/2016 and I type in 2 I get the date 12/26/2016.

This works fine. By validation the right date is set.

But if the datefield is in a grid, the date is not always set, only every second time.

This happens if I type in a number and after that i click on another gridcolumn.

It works, if I type in a number and then press enter-key or tab-key or click outside the gid.

Does the validation works different by clicking on the grid and hitting the enter/tab key, ?

 

The validation function is:

01.var customDateValidation = function(e, field) {
02.  var input = $(e).val();
03.  if(!isNaN(input)) {
04.    var noOfDays = parseInt(input);
05.    if(noOfDays > -366 && noOfDays < 366) {
06.    var newDate = new Date();
07.    newDate.setDate(newDate.getDate() + noOfDays);
08. 
09.    var item = $("#myGrid").data("kendoGrid").dataItem($(e).closest("tr"));
10.    item[field] = newDate;
11.    item.dirty = true;
12. 
13.    return true;
14.    }
15.    return false;
16.  }
17. 
18.  var date = kendo.parseDate(input, "dd.MM.yyyy");
19.  if(date) {
20.       return true;
21.  }
22. 
23.  if(input == null || input == "") {
24.    return true;
25.  }
26.  return false;
27.};

 

Or is there another way to turn integers to date with a grid datefield?

Thanks in advance

 

Bernhard
Top achievements
Rank 1
 answered on 08 Dec 2016
3 answers
132 views

Hi,

i'm using kendoImageBrowser as a standalone widget.

I get data from a server handler that returns a Json with file informations (filename,type, size) , while I would like to have a static thumbnail for every Item.

This is the initialization for the widget :

 var objSchema = {
               model: {
                   id: 'Id',
                   fields: {
                       name: { field: 'FileName' },
                       type: { field: 'FileType' },
                       size: { field: 'FileSize' }
                   }
               }
           };
           $('#divBrowser').kendoImageBrowser({
               fileTypes: '*.jpg,*.png',
               transport: {
                   read: 'http://URL/Handler.ashx?PAR=A&PAR=B',
                   thumbnailUrl: function () { return 'http://URL/images/image.png'; }
               },
               schema: objSchema,
           });

But thumbnails are not showed. Am I missing something?

 

Danail Vasilev
Telerik team
 answered on 08 Dec 2016
1 answer
323 views

Hi, 

So I have a Data Source that creates an object, but depending on parameters the response is either ACCEPTED or OK. How can I determine what he response is in the requestEnd callback?

Or is there a better way to do so?

Many Thanks,
Grant

Alex Hajigeorgieva
Telerik team
 answered on 08 Dec 2016
1 answer
462 views

Hi All,

I have implemented Kendo Grid using angular  with inline editing feature. and i have been asked by my client to implement add feature with different template. can we separately write another row template for add new row. He would have added a feature of frozen  columns in kendo  UI. can someone help me in this .

 

any help or suggestion will be appreciated.

Thanks

Laxmikant

Dimiter Topalov
Telerik team
 answered on 08 Dec 2016
3 answers
263 views

Hi guys,

I have a requirement to re-implement grid grouping but instead of grouping within the grid itself, I need to generate a separate tree view outside of the grid element. The tree view side of it is fine, but I couldn't see any way that I could set the grid to be groupable (thus showing the groups bar) without grouping being applied to the grid itself. I tried preventingDefault on the group function but this prevented the columns being dropped onto the group bar itself as it seems to be something that occurs after the grid has refreshed.

So now, instead, what I'm trying to do is add a div outside the grid that I can use as a drop target for my grid columns to be dropped on to but this doesn't seem to be working

Here's the dojo: http://dojo.telerik.com/@mancmanomyst/AJoBIj

 

Could you point me in the right direction for allowing the grid columns to be dropped on my target div?

Alex Hajigeorgieva
Telerik team
 answered on 08 Dec 2016
1 answer
896 views

Enum class

public class Voltage
  {
      public int Id{ get; set; }
      public string RefNo { get; set; }
      public VoltageLevel VoltageLevel { get; set; }
  
  }
  public enum VoltageLevel
  {
      LV = 1,
      MV = 2,
      HV = 3   }

 

Controller

public ActionResult Voltage_Read([DataSourceRequest]DataSourceRequest request)
     {
         IQueryable<Voltage> voltage= db.Voltage;
         DataSourceResult result = voltage.ToDataSourceResult(request, voltage=> new {
             Id = voltage.Id,
             RefNo = voltage.RefNo,
             VoltageLevel = voltage.VoltageLevel,
         });
         return Json(result);
     }

 

View

@(Html.Kendo().Grid<entities.voltage>()
.Name("grid")
.Columns(columns =>
{
columns.Bound(c => c.RefNo);
columns.Bound(c => c.VoltageLevel); //here the voltagelevel didnt show.
})
Marin Bratanov
Telerik team
 answered on 08 Dec 2016
1 answer
913 views

Hi Team,

I want a horizontal form in between kendo grid header and body, Is it possible to add a form with same grid columns  in kendo grid. Please find the below attached screen shots for reference

 

Thanks,

S

Dimiter Topalov
Telerik team
 answered on 08 Dec 2016
1 answer
340 views

Hi,

 

is there a way to add a tooltip to category axis labels?

 

Thank you

Eduardo Serra
Telerik team
 answered on 07 Dec 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
SegmentedControl
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?