Telerik Forums
Kendo UI for jQuery Forum
1 answer
118 views

Hello :)

Maybe it's possible but I didn't found it.

Is it possible to keep the settings when I make a custom building

Useful when

  - I add a new component to my project => I don't have to remember all previous components used, just adding the new one 

  - I upgrade the version of kendo ui

Thank you ! 

Serge

Kiril Nikolov
Telerik team
 answered on 11 May 2016
1 answer
655 views

How do I add on change event to Multiselect and calling AngularJS function?  Thanks.

$scope.typeOptions = {
placeholder: "All Types",
dataTextField: "Name",
dataValueField: "ID",
valuePrimitive: true,
autoBind: false,
dataSource: {
transport: {
read: {
url: "api/facilitytype",
}
}
}
};

Georgi Krustev
Telerik team
 answered on 11 May 2016
2 answers
1.6K+ views

Hello, I am trying to export a document using pdf export feature.

Tests I am doing in on a single three pages html file wich contents are text.

I have used this function:

function getPdf(){
                kendo.drawing.drawDOM($("#temp-container"), {
     paperSize: "A4",
     margin: { left: "0cm", top: "1cm", right: "0cm", bottom: "1cm" },
     template: $("#page-template").html()
 }).then(function (group) {
     // Render the result as a PDF file
     return kendo.drawing.exportPDF(group);
 }).done(function (data) {
     // Save the PDF file
     kendo.saveAs({
         dataURI: data,
         fileName: "HR-Dashboard.pdf",
     });
 
 });
         }

I have created this dojo that creates header and footer, but header is overlapping contents

if I add:

  

#temp-container{            
top:100px;
 bottom:100px;
 position:absolute;       }

In the style, contents are cut in the bottom.

Any suggestions?

 

Paolo
Top achievements
Rank 1
 answered on 11 May 2016
1 answer
543 views

I've got a grid that I am creating from an existing HTML table.

One column contains a link:

<tr>
    <td><a href="/Something/1">7</a></td>
</tr>
<tr>
    <td><a href="Something/2">3</a></td>
</tr>

I want that column to be sortable by the text of the cell (in the above example, the values 7 and 3. String or number formatting would be acceptable. But it appears to be sorting by the entire link (so everything inside of the <td></td> tags, including the anchor tag and the url). So it ends up sorting by the Url because that's the first place each one is differentiated.

I made a jsfiddle that shows this in action: https://jsfiddle.net/6vhpennv/

In DataTables.net, I can do this easily with HTML5 attributes:

<tr>
    <td data-order="7"><a href="/Something/1">7</a></td>
</tr>
<tr>
    <td data-order="3"><a href="Something/2">3</a></td>
</tr>

Is there an equivalent to that in Kendo? Or do I need to write some sort of complex parser (for the dataSource parser function) that can parse out the value from the whole anchor tag?

 

Rosen
Telerik team
 answered on 11 May 2016
3 answers
228 views
Hi, I am followlin your kendo-ui  grid demos.I was able to pull data .Paging buttons doesn't show  the "orange" buttons that takes us to next/previous page but i am still able to change pages clicking that area.Why would that be?
Helen
Telerik team
 answered on 11 May 2016
25 answers
1.5K+ views

For almost 2 years, we have been running a page that has a Kendo Tab Strip with some Kendo Grids below that will show or hide based on the selected tab.  The data source for each is defined with as a property of the grid.  It is the same for all grids, with filters that get passed to switch which data comes back. 

Starting with SP1 and still an issue in SP2, the last tab's filter is what filters every time, no matter what tab we are on.  The grids are still switching correctly, so that doesn't appear to be the issue.

This is where we set the filters:

$("#vDrafts").data("kendoGrid").dataSource.transport.options.read.data = { list: "mine", tab: "NotSubmitted" };
$("#vPending").data("kendoGrid").dataSource.transport.options.read.data = { list: "mine", tab: "AwaitingApproval" };
$("#vApproved").data("kendoGrid").dataSource.transport.options.read.data = { list: "mine", tab: "ApprovedVouchers" };
$("#vRejected").data("kendoGrid").dataSource.transport.options.read.data = { list: "mine", tab: "RejectedVouchers" };
$("#vPosted").data("kendoGrid").dataSource.transport.options.read.data = { list: "mine", tab: "PostedVouchers" };
$("#vAll").data("kendoGrid").dataSource.transport.options.read.data = { list: "mine", tab: "AllVouchers" };
$("#vDrafts").data("kendoGrid").dataSource.read();

Do you need more information?  A former co-worker created it about 2 years ago, and we haven't changed the code since, so there might be other details that you would need...

Is there something that has to be done differently after SP1?

Korn1699
Top achievements
Rank 1
 answered on 10 May 2016
1 answer
443 views

I seem to have found a bug, or else I'm going something wrong that I can't figure. It seems as if the `position` property of the window configuration is completely ignored when using a template. I have made a simple example to show this:   

 

http://dojo.telerik.com/AkiwE

 

Even though the grid editable has `window: { position: { top: 0, left: 0} } `, the popup window still appears in the middle of the page.

Dimiter Topalov
Telerik team
 answered on 10 May 2016
2 answers
303 views

Hello,

I currently have a scheduler that contains three custom timeline views, each with a different number of days, major tick, and minor tick count. I want to dynamically change the tick values, but only for one view at a time. I am aware of the scheduler.setOptions method, however that will apply the update across all views. When I try scheduler.view().setOptions, the changes made will undo when I refresh the view. Is there any way to change the options for a custom view? Thanks!

Derek
Top achievements
Rank 1
 answered on 10 May 2016
1 answer
297 views

I've created a grid with "save" and "create" buttons in the toolbar. Configured data source properly. Now when I hit "Add new record" I see empty row added to the top of the grid. That's fine, I can edit all cells, but one-by-one. When I want to fill out a cell to specify attribute value I have to click on the cell before to put it into edit mode! That's very inconvenient, it would be much easier if all of them were already in edit mode.

Is it possible to have all grid cells shown in edit mode when new record is added?

Dimiter Topalov
Telerik team
 answered on 10 May 2016
1 answer
322 views

Hi

MVC 5.1 has a simple and elegant solution for Enum's and DropDownList

 

@Html.EnumDropDownListFor(model => model.MyProp )

 

This populates the list, it works with the [Range] DataAnnotation, and also works if the model value is NULL.   More importantly it selects the item in the list based on the Model value out-of-the-box.

Trying to do this with Kendo is a lot more involved and messy right?

So can we please have a Kendo.EnumDropDownListFor please to match?

Thank you :-)

 

 

Konstantin Dikov
Telerik team
 answered on 10 May 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?