Telerik Forums
Kendo UI for jQuery Forum
1 answer
624 views

I have a Kendo UI Grid with a command button column formatted to display a font awesome icon. The grid also handles the change event in order to redirect to the particular records detail page when the row is clicked. The button and icon display as expected but if you click on the button exactly where the icon is the change event get triggered prior to the button click event. Clicking anywhere else on the button causes the button to behave as expected.

Here is an example based on the Use FontAwesome Icons in Kendo UI Grid demo - 

http://dojo.telerik.com/uCOxA

Can anyone think of a way around this problem?

Thanks

Dimo
Telerik team
 answered on 11 May 2016
2 answers
268 views

I have an AngularJS page, and have a populated dataItem. No problem. Now, I would like to populate a dropdown with one of the columns. I can't quite figure out how to do this. Here is my current code. I have hardcoded the dropdown values but would like to populate it instead from the "ticker" column in the dataItem instead. I think this should be super-easy, right?

 

$scope.positionGridOptions = function(dataItem) {
 
    return {
        dataSource: {
            type: "xml",
            transport: {
                read: function(options) {
                    $.ajax({
                        url: "http://fraitcf1vd2607.de.db.com:2701/WS_GetPositionsV3?startDate=" + dataItem.filterStart + "&endDate=" + dataItem.filterEnd + "&fiId=" + dataItem.swapId + "&maxRows=1000",
                        dataType: "xml",
                        success: function(result) {
                            options.success(result);
                        },
                        error: function(result) {
                            options.error(result);
                        }
                    });
                }
            },
            schema: {
                type: "xml",
                data: "/root/row",
                model: {
                    fields: {
                        ticker: {field: "@ticker", type: "string" },
                        longShort: {field: "@longShort", type: "string" },
                        legId: {field: "@legId", type: "number" },
                        instrId: {field: "@instrId", type: "number" },
                        qty: {field: "@qty", type: "number" },
                        thisDay: {field: "@thisDay", type: "string" }
                    }
                }
            },
            serverPaging: false,
            serverSorting: false,
            serverFiltering: false,
            pageSize: 20
        },
        sortable: {
            mode: "multiple",
            allowUnsort: true
        },
        height: 200,
        scrollable: false,
        sortable: true,
        groupable: true,
        pageable: { buttonCount: 4 },
        filterable: {
            extra: false,
            operators: {
                string: {
                    startswith: "Starts with",
                    eq: "Is equal to",
                    neq: "Is not equal to"
                }
            }
        },
        columns: [
            {field: "ticker", title: "Ticker", width: "50px", filterable: {ui: $scope.ticker3Filter} },
            {field: "longShort", title: "Long/Short", width: "50px", filterable: false},
            {field: "legId", title: "Leg ID",  width: "50px", filterable: false},
            {field: "instrId", title: "Instr ID", width: "50px", filterable: false},
            {field: "qty", title: "Quantity", width: "50px", filterable: false},
            {field: "thisDay", title: "Day", width: "50px", filterable: false}
            ]
        };
    };
     
    // How to get the ticker element for each row in dataItem?
    $scope.ticker3Filter = function(element) {
        element.kendoDropDownList({
        optionLabel: "--Select Value--",
        dataSource: ["ABC.AX","AGL.AX","AHD.AX","AHE.AX"]
     });
    }      

Mark
Top achievements
Rank 1
 answered on 11 May 2016
3 answers
247 views

Hey,

i'm using the scheduler component with angular.
The result so far is pretty okay, but the events do not fill up the timeslots. When looking at the event div, there is a fixed width, that is not set correctly. I have no fancy custom css going on, so any idea what causes this issue?

Cheers,
Jens

Dimo
Telerik team
 answered on 11 May 2016
1 answer
119 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
659 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
550 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
236 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
449 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
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?