Telerik Forums
Kendo UI for jQuery Forum
1 answer
229 views
Current with a grid if a user hides a column (say there is a computer domain column that is always the same. The user is tired of looking at it, so they hide the column). Right now, if they leave that page then go back (or refresh), the column comes back as well. Is there a way to persist this?
Alexander Valchev
Telerik team
 answered on 01 Nov 2012
1 answer
79 views
Hi, 

I'm not sure if this is also happen to everyone else. When I combine kendoui.web.2012.2.710.open-source with jquery-1.8.2.min.js, glitch happen (as far as i know) is :
  1. Grid grouping : it's so hard to drag column title into grouping area to initiate grouping. 
  2. Grid selection : unable to do row selection. even when selectable: "row" has been setup.
I've try to change using another browser, turn of my css and javascript. it still not work, up until i replace jquery-1.8.2.min.js with jquery bundled in kendoui.web.open-source

I'm not sure what really happen, i dont think this is a bug, neither in kendo or in jquery.

Best Regards,
Gema Pratama


Vladimir
Top achievements
Rank 1
 answered on 01 Nov 2012
1 answer
148 views
Hello, 

we are using kendo dataviz package, and we have some issues with the printing of the charts from chrome.In Firefox it works well, but in chrome when we try to print the page, the charts are not colored, we can see only the contours of the charts. Is there any such known problem, and how can we fix it?

Thank you,
Alex Kolchev
Alex
Top achievements
Rank 1
 answered on 01 Nov 2012
2 answers
135 views
We are trying to bind the navigate and/or the viewShow events to one of our panes in a split view. However, the events only seem to fire on the initial page load, but after that, no matter how many times the view changes in the pane, no events fire. What is the correct way of getting these events to fire everytime? Currently we are using the following to bind the event:
data-bind="events: {navigate: alert('test')}"

Thanks for any help
Jack
Top achievements
Rank 2
Iron
 answered on 01 Nov 2012
1 answer
238 views
My ASP.NET page method is working and data is coming back but no data is being rendered in the grid.  The grid just shows the column names and no rows.  Here is the first row of the data returned from the invocation of my ASP.NET page method.


{"d": [{"__type":"HDServer.DataDictViewModel","IndexName":"$FacilityName","FieldWidth":8,"MaximumValue":null,"MinimumValue":null,"PointType":"VAR","ProcessArea":null,"CompressionType":"LST","DataSource":null,"DataType":"A","DecimalPlaces":2,"Description":"$FacilityName","Units":null}]
}


The javascript I am using is basically from the editing-popup grid sample


 <script>
            $(document).ready(function () {
                var crudServiceBaseUrl = "Default.aspx",
                dataSource = new kendo.data.DataSource({
                    transport: {
                        read: {
                            url: crudServiceBaseUrl + "/ReadDataDict",
                            contentType: "application/json; charset=utf-8", // tells the web service to serialize JSON
                            type: "POST", //use HTTP POST request as the default GET is not allowed for ASMX
                            dataType: "jsonp"
                        },
                        parameterMap: function (options, operation) {
                            if (operation !== "read" && options.models) {
                                return kendo.stringify({ datadict: options.models });
                            }
                        }
                    },
                    batch: true,
                    pageSize: 30,
                    schema: {
                        data: "d", // ASMX services return JSON in the following format { "d": <result> }. Specify how to get the result.
                        model: {
                            id: "IndexName",
                            fields: {
                                IndexName: { type: "string", nullable: false, validation: { required: true } },
                                FieldWidth: { type: "number", validation: { required: true } },
                                MaximumValue: { type: "number" },
                                MinimumValue: { type: "number" },
                                PointType: { type: "string" },
                                ProcessArea: { type: "string" },
                                CompressionType: { type: "string" },
                                DataSource: { type: "string" },
                                DataType: { type: "string", validation: { required: true } },
                                DecimalPlaces: { type: "number", validation: { required: true } },
                                Description: { type: "string", validation: { required: true } },
                                Units: { type: "string", validation: { required: true } }
                            }
                        }
                    }
                });


                $("#grid").kendoGrid({
                    dataSource: dataSource,
                    pageable: true,
                    height: 400,
                    toolbar: ["create", "save", "cancel"],
                    columns: [
                        { field: "IndexName", title: "Index Name" },
                        { field: "FieldWidth", title: "Field Width", width: "150px" },
                        { field: "PointType", title: "Point Type", width: "150px" },
                        { field: "ProcessArea", title: "Process Area", width: "100px" },
                        { field: "MinimumValue", title: "Min", width: "100px" },
                        { field: "MaximumValue", title: "Max", width: "100px" },
                        { command: ["edit", "destroy"], title: "&nbsp;", width: "210px" }],
                    editable: "popup"
                });
     
            });
    </script>


The javascript console shows no errors and all scripts load successfully.  The grid does render, but with no data.  I am at a loss ...


Dan
Mahdi
Top achievements
Rank 1
 answered on 01 Nov 2012
0 answers
363 views
Hi ,

i worked on kendo grid i have solved an problem per Persist selected rows while paging.
Following is the code

$(document).ready(function($) {
    var selectedIds = {};
    var grid = $("#grid");
    grid.kendoGrid({
        dataSource: {
            data: myData(),
            schema: {
                model: {
                    id: 'Id',
                    fields: {
                        select: {
                            type: "string",
                            editable: false
                        },
                        Id: {
                            type: "number"
                        },
                        FirstName: {
                            editable: true
                        },
                        LastName: {
                            type: "string"
                        },
                        City: {
                            type: "string"
                        },
                        Title: {
                            type: "string"
                        },
                        BirthDate: {
                            type: "date"
                        },
                        Age: {
                            type: "number"
                        },
                    }
                }
            },
            pageSize: 5
        },
        editable: false,
        selectable: "multiple",
        sortable: {
            mode: 'single',
            allowUnsort: false
        },
        pageable: true,
        columns: [
        {
            field: 'LastName',
            title: 'Last Name',
            width: 120},
        {
            field: 'City'},
        {
            field: 'Title',
            width: 230},
        {
            field: 'BirthDate',
            title: 'Date Of Birth',
            width: 120,
            format: "{0:MM/dd/yyyy}",
            template: '#= kendo.toString(BirthDate, "MM/dd/yyyy")#'},
        {
            field: 'Age',
            width: 80}],
       
         dataBound: function() {
         var grid = this;
             var selected = $();                
            var ids = selectedIds[grid.dataSource.page()] || [];
            for (var idx = 0, length = ids.length; idx < length; idx++) {         
                selected = selected.add(grid.table.find("tr[data-uid=" + ids[idx] + "]"));                  
                    grid.select(selected);                    
                }
         },
         change: function () {         
                var grid = this;
                 var ids = selectedIds[grid.dataSource.page()] = [];
                grid.select().each(function () {
                    dataItem = grid.dataItem($(this));                   
                   ids.push($(this).data().uid);
                   
                });
                }
    });   

});


Thanks
Amol Gunjal
Amol G
Top achievements
Rank 2
 asked on 01 Nov 2012
0 answers
242 views
I'm working on creating a fully dynamic tabstrip for use with a chat program I"m developing. So for example, I have a single button that every time it is pressed it creates a new tab in the tabstrip and sets the tab content to a partial view that will contain the chat list between me and tab1, tab2, tab3...

My main issue at the moment is that the content of the tab is outside the borders of the tab that contains the partial view.  Here is everything I have up to this point.
<div id="chatTabStrip"></div>
<button onclick="buttonClick()">Create Tab</button>
 
<script type="text/javascript">
    $(document).ready(function () {
        $("#chatTabStrip").kendoTabStrip({
            animation: {
                open: {
                    effects: false
                }
            }
        }).data("kendoTabStrip");
 
        function buttonClick() {
            var tabStrip = $("#chatTabStrip").data("kendoTabStrip");
 
            if (tabStrip == null) {
                tabStrip = $("#chatTabStrip").kendoTabStrip({
                    animation: {
                        open: { effects: false }
                    }
                }).data("kendoTabStrip");
            }
 
            $.ajax({
                url: '@Url.Action("GetTabPartialView", "Chat", new { area = "Chat" })',
                type: 'GET',
                success: function (result) {
                    tabStrip.append({ text: node.Text, content: result });
                    tabStrip.select(tabStrip.tabGroup.children("li:last"));
                }
            });
        }
    });
</script>

If the animation isn't included and kendoTabStrip() are used the tabstrip isn't generate. Causing the following line to be null:
var tabStrip = $("#chatTabStrip").data("kendoTabStrip");

My first attempt was to not have the ajax call but to just use the following. The following lines would never render the content.
tabStrip.append({ text: Text, contentUrl: "TabPartialView.cshtml" });
tabStrip.select(tabStrip.tabGroup.children("li:last"));

I still haven't addressed how I will get the content of each specific chat thread into the correct tab's list.

Thanks,
Jeremy
Top achievements
Rank 1
 asked on 31 Oct 2012
0 answers
82 views
Hi,
I am unable to apply cycle plugin to listview. It works when the page is loaded but once a delete, add or edit action is performed the cycle plugin fails. Please help me asap. Following is the script that I have applied to the div listview, rest all the code is same as the editable version of listview example except that I have removed the pager so that I can use the cycle plugin. 

<script type="text/javascript" src="../javascript/jquery.cycle.all.js"></script>
        <script type="text/javascript">
         
            $(window).load(function(){
                $('#listView').cycle({
                    fx:      'scrollRight',
                    next:    '#listView',
                    timeout:  0,
                    easing:  'easeInOutBack'
                });
            });
        </script>


Aashish
Top achievements
Rank 1
 asked on 31 Oct 2012
0 answers
146 views
The title is misleading. I want the tooltip to float on the left side of the bar. But I don't know how to edit the title.

The default of the tooltip for the bar chart is on the right side. I have checked the api for the tooltip in bar, it only provides the styles of the tooltip, but nothing else. I want to reset the location of tooltip to the left side that close to y-axis. 

Just create a test demo in Fiddle. In the code, I copy one of demo from DataViz. The tooltip is floating on the right side of the bar when you hover on the bar. However, sometime, there is not enough space to display tooltip on the browser even though the users see it in full screen. 

I am looking for modify the default behavior of tooltip in order to float it on the left side of the bar. 
http://jsfiddle.net/davishacker/gapkL/
Daihua
Top achievements
Rank 1
 asked on 31 Oct 2012
1 answer
160 views
Hi guys,

I'm currently trying to bind a viewModel value to a toolbar using a template, but no matter what I do it doesn't work, do you have any idea of how I can get it to work?

$("#grid").kendoGrid({
    dataSource: viewModel.data,
    toolbar: [{
        name: "head",
        template: '<span>Type: <label data-bind="text: #=viewModel.type#"></label></span>'
    }],
    columns: [
    { field: "Field1", title: "Column1", template: '#=val1#' },
    { field: "Field2", title: "Column2", template: '#=val2#' },
    { field: "Field3", title: "Column3", template: '#=val3#' }
    ],
    autoBind: true
});

Thank you in advance.
Bruno
Top achievements
Rank 1
 answered on 31 Oct 2012
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawing API
Drawer (Mobile)
Globalization
Gauges
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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?