Telerik Forums
Kendo UI for jQuery Forum
1 answer
124 views
I have a ScrollViewer where I need to change the pages on the fly.  As you navigate the app I'm changing the content of a scrollviewer in a different view (pre-loading content).  If I go from 3 pages, down to 1, and back up to 3 the ScrollViewer only shows 1 page.  I've tried the refresh() and content() methods but that doesn't seem to re-initialize the scrollviewer.  If I change the content of a scrollviewer how do I tell it to re-initialize itself? 
Steve
Telerik team
 answered on 17 Apr 2013
4 answers
364 views
I'm aware of the following example showing how to deal with server side errors.
http://www.kendoui.com/code-library/mvc/grid/handling-server-side-validation-errors-during-pop-up-editing.aspx

However I'm trying to handle server side errors using the non-MVC version of the Kendo grid and I notice in the API there is no dataBinding event that I can cancel.  So how would I cancel the data binding in this scenario?  Thanks,

Scott
Vladimir Iliev
Telerik team
 answered on 17 Apr 2013
1 answer
222 views
I have a Grid which uses popup editing with a custom popup template.

I've finally got it all working just as I want, with some tricky ajax driven validation, but I've now run into a slight problem.

It takes a couple of seconds for the new or updated data to be sent to the server and a valid response to be received. In this time, users are thinking they've not clicked the Save button properly and are resubmitting the data.

What would be the best way to show some sort of progress indicator to let the user know something is happening until the popup closes and the grid is displayed again.

Thanks.
Petur Subev
Telerik team
 answered on 17 Apr 2013
2 answers
541 views
Hello,

I have a grid with virtual scrolling on it due to huge data.
On all my grids I would like to create new lines only at the bottom of the grid.
When the grid has to display a validator ("field required" as for exemple) the validator is hidden at the bottom of the grid (we only see the arrow but not the complete message).
I don't think it will be hard to reproduce, is there a workaround ? Thanks
@(Html.Kendo().Grid<Integraal.Models.ImmoBaseCptTiersCompte>()
                .Name(Model.idView + "immoBaseCptTiers_grilleTiers")
                .HtmlAttributes(new { @class = "immoBaseCptTiers_grilleTiers" })
                .Columns(columns =>
                {
                    columns.Bound(m => m.ct_num_compte).Width(80);
                    columns.Bound(m => m.ct_titre);
                    columns.Command(command => command.Destroy().Text(" ")).Width(40);
                })
                .Editable(editable => editable.Mode(GridEditMode.InCell)
                    .CreateAt(GridInsertRowPosition.Top) 
                    )
                .Navigatable()
                .Resizable(resize => resize.Columns(true))
                .Selectable(selectable => selectable.Mode(GridSelectionMode.Single))
                .Scrollable(scrollable => scrollable.Enabled(true)
                    .Virtual(true
                    )
                .Sortable(s => s.AllowUnsort(true).Enabled(true).SortMode(GridSortMode.MultipleColumn))
                .AutoBind(false)
                    .Events(e => e
                        .Edit("immoBaseCptTiers_grilleTiersEdit")
                        .Change("immoBaseCptTiers_grilleTiersChange")
                    )
                .DataSource(dataSource => dataSource
                    .Ajax()
                    .PageSize(10)
                    .Batch(true)
                    .ServerOperation(true
                    .Events(events => events
                        .Error("kendoGridErrorHandler")
                        .Sync("immoBaseCptTiers_grilleTiersSync")
                    )
                    .Read(read => read.Action("Editing_Read", "ImmoBaseCptTiers").Data("baseCptTiers_additionnalData_read"))
                    .Create(create => create.Action("Editing_Create", "ImmoBaseCptTiers").Data("baseCptTiers_additionnalData_create"))
                    .Update(update => update.Action("Editing_Update", "ImmoBaseCptTiers").Data("baseCptTiers_additionnalData_update"))
                    .Destroy(destroy => destroy.Action("Editing_Destroy", "ImmoBaseCptTiers").Data("baseCptTiers_additionnalData_destroy"))
                    .Model(model =>
                    {
                        model.Id(m => m.ct_num_compte);
                        model.Field(m => m.ct_soc_code).DefaultValue(Global.GlobalSession.societe.code);
                    }))
                )
THOMAS
Top achievements
Rank 2
 answered on 17 Apr 2013
2 answers
195 views

I am having issues getting endlessScroll to work to work with API.  Maybe I am just not putting two and two together.  I have seen options of converting IEnumerable to IQueryable OData, but that did not work either.  Watching the Network trace, it appears that it is passing the correct parameters to the Web API controller.

The current issue is that when I scroll down, the endlessScroll does not get triggered for more records.   It returns the pageSize specified but does not make another request to the Web API Get().  Please help!  And thanks in advance for the assistance.


HERE IS MY INDEX.HTML PAGE SCRIPT.  BELOW IS MY WEB API GET()

<script>
    var dataSource;
    function listViewInit(e) {
        dataSource = new kendo.data.DataSource({
            pageSize: 10,
            page: 1,
            serverPaging: true,
            transport: {
                read: {
                    url: "/api/Message/?isArchive=false",
                    dataType: "json",
                    type: 'GET'
                }
            },
            parameterMap: function (options) {
                var parameters = {
                    take: options.take,
                    skip: options.skip,
                    pageSize: options.pageSize,
                    page: options.page //next page
                };
                return parameters;
            },
            schema: {
                data: function (data) {
                    return data.Data;
                },
                total: function (data) {
                    return data.Count;
                }
            }
        });
 
        e.view.element.find("#secure-inbox").kendoMobileListView({
            endlessScroll: true,
            dataSource: dataSource,
            template: $("#listTemplate").text(),
            scrollThreshold: 10
        })
        .kendoTouch({
            filter: ">li",
            enableSwipe: true,
            touchstart: touchstart_inbox,
            tap: navigate_inbox,
            swipe: swipe_inbox
        });
    }
 
    // Other Functions Removed For Forum Post //
</script>


// GET api/<controller>
       public object Get(bool isArchived = false, int page = 1, int pageSize = 20)
       {
           IEnumerable<Message> data;
 
           int count;
 
           triagedbEntities db = new triagedbEntities();
           db.Configuration.ProxyCreationEnabled = false;
 
           data = (from x in db.view_secure_messages
                       where (x.TriageDecision != null) == isArchived
                       select new Message
                       {
                           msg_id = x.MessageID,
                           message_subject = x.MessageSubject,
                           message_received = x.MessageReceived
                       }).OrderByDescending(a => a.message_received).Skip((page - 1)*pageSize).Take(pageSize).ToList();
           count = data.Count();
 
           return new
           {
               Count = count,
               Data = data
           };
       }
Alexander Valchev
Telerik team
 answered on 17 Apr 2013
1 answer
202 views
How to set the trigger only for the third column td,not all the td in a grid?
I had set all the td like this:
my.contextMenu({
trigger: '#Grid td ',
rightButton: true,
menu: '#testMenu',
callback: ctxCallback
});
Vladimir Iliev
Telerik team
 answered on 17 Apr 2013
3 answers
1.1K+ views
Hi,

i try to load a kendo grid in partial view. But i found that edit from inline is not able to work even it was fine at a normal page in this case, i try to copy the same code in index page, grid was working fine.

so i have already upload my test codes, please help to find out what problem exactly it is, thanks!

Daniel
Telerik team
 answered on 17 Apr 2013
1 answer
136 views
I need help on the Add / Edit buttons in toolbar of grid which is bound using local data. Once we add or edit next time when I hit cancel grid is bound with duplicate records except for newly added or updated data. I am sharing the code here http://jsfiddle.net/cE3uM/11/ Its not functioning in fiddle, but in my project its working fine except for this bug. Could please help me find a solution?

Thanks
Vladimir Iliev
Telerik team
 answered on 17 Apr 2013
6 answers
1.0K+ views
Hello Kendo,

With your latest 2013Q1 release, we just encountered an error every time when trying to add a new row on ui.Grid, which a templated column was involved. A simple code sample shows as below:

    <script>
        $(function() {
            $('#grid').kendoGrid({
                dataSource: {
                    data: [
                        { a: "dafdsf" }
                    ]
                },
                columns: [
                    {
                        field: "a",
                        width: 120,
                        template: 'template: #= a #'
                    }
                ]
            });

            $('#add').click(function() {
                $('#grid').data('kendoGrid').addRow();
            });
        });
    </script>
</head>
<body>
    <div id="grid"></div>
    <button id="add">add</button>
</body>

When the add button was clicked, an error "Uncaught ReferenceError: a is not defined " went out.

Can you please take a look at this, as this is so much urgent for us. Or could you suggest any other work around?

Thanks,
Wenhao
Wenhao
Top achievements
Rank 1
 answered on 17 Apr 2013
1 answer
114 views
How do you make an area chart whose first x-axis data point is not aligned with the y-axis start the "area" from the y-axis (origin)?

In my specific example, January is our first x-axis data point, and since the January data point is not aligned with the y-axis, there is a space of "emptiness" that looks funny on the chart.  I would like the area chart to begin at the intersection of the x-axis and y-axis so that gap is filled (the January data point does not need to move, the area chart just needs to start at the origin and move to the first data point, which will be January).  The reason the area chart does not begin at the y-axis is because the exhibit includes both an area chart and line chart.

I've added a photo to help describe the problem.

Thanks in advance for the help.

 
Iliana Dyankova
Telerik team
 answered on 17 Apr 2013
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
Drag and Drop
Application
Map
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?