Telerik Forums
Kendo UI for jQuery Forum
2 answers
258 views
I have a question of the recommended way to handle errors from the Kendo Grid when using an OData data source.

I understand that using a custom data source, you can use the schema.errors property to define the property in the data source that contains errors.

Does OData have a corresponding concept?  If not - is there a recommended way to handle errors from OData data sources?

Also - what does the grid do with any errors it receives?  Log them using the kendo log API or something else?

thanks,
Adam
Adam
Top achievements
Rank 1
 answered on 11 Dec 2012
2 answers
122 views
In the ASP.NET Ajax RadGrid control, there is a client select column that enables a row to be selected using a checkbox. We've been trying to mesh the row select features of the Kendo grid with a column of check boxes and it has proved to be very difficult since we can't prevent the onchange event from firing. Do you happen to have any suggestions on how to do this?
Chris
Top achievements
Rank 1
 answered on 11 Dec 2012
1 answer
2.7K+ views
Hi,

I'm currently playing with aspnet webforms with jquery (via kendo mobile). I have the following setup below. In the aspx page,
I need to call the 'Book' method in a 'controller' on a button click. I'm guessing I will need to use $.ajax? or is there another way via kendo dataSource? any sample code of the 'ajax' call would really help as i'm at the earliest stages of learning this stuff,

Kind regards.

//shift.aspx
function showShiftDetailView(e) {
        var view = e.view;

        sds.fetch(function () {
            item = sds.get(view.params.id);
            view.scrollerContent.html(shiftItemDetailTemplate(item));
            kendo.mobile.init(view.content);
        });
       
       $('<a data-role="button" id="bookbutton">Book</a>').insertBefore('#shiftdetaillistview');
       $('#bookbutton').click(function () {
                // **** 1. call book function
                BookShift(item.id)        
            });
        }
}

function BookShift(id) {
   *** 2. call 'Book' method with parameter here and get response**
  $.ajax ?
}

//shiftcontroller.cs
// CONTROLLER
 public class ShiftController : ApiController
    {
        private Data.Shift _context = new Data.Shift();
        HttpRequest _request = HttpContext.Current.Request;

        // WebAPI will respond to an HTTP GET with this method
        public Model.Response Get()
        {
            // the the take and skip parameters off of the incoming request
            int take = _request["take"] == null ? 10 : int.Parse(_request["take"]);
            int skip = _request["skip"] == null ? 0 : int.Parse(_request["skip"]);

            var entries = (from System.Data.DataRow r in _context.GetData().Rows
                           select new Model.Shift(r)).Skip(skip).Take(take).ToArray();

            return new Model.Response(entries, _context.GetData().Rows.Count);
        }

// **** 3.  I want to call this from a button click *** //
        public Model.Response Book(string tempShiftPlanid)
        {
            IPoint.Shifts.Shift shift = new IPoint.Shifts.Shift();
            shift.id =  id;
            return new Model.Response(shift.BookShift());
        }
    }

// Response.cs
public class Response
{
        public string DBData { get; set; }

        public Response(string dbdata)
        {
            this.DBData =dbdata;
        }
}
Petyo
Telerik team
 answered on 11 Dec 2012
1 answer
170 views
HI All

How to achieve the alert or message box  function of kendo

Devolopment Team.
Iliana Dyankova
Telerik team
 answered on 11 Dec 2012
2 answers
145 views
This isn't a big issue but the pager controls should be hidden when total results is less than the pageSize.
I have attached screens of the vanilla and my modification to better visualize the improvements.
Marcin Butlak
Top achievements
Rank 2
 answered on 11 Dec 2012
3 answers
68 views
Hey,
i have the same problem as described in this thread: Filter Click in IE8
The compatability mode of IE8 is not a solution in this case, because a lot of features don't work in that mode.
I also noticed, that the click works every ~10 refreshes and after clearing the cache.
Also when changing the pagesize of the pager from 10 to 20 or 50, the grid refreshes with the selected amount of rows, but the surrounding div does not scroll. Instead it displays a greyed out scrollbar.
This might be an IE8 Bug in connection to loading stuff via AJAX, though.
I can not provide a sample project, as i can't reproduce this in a simplified scenario.

Thanks for the help. :)
Dimo
Telerik team
 answered on 11 Dec 2012
1 answer
116 views
I am evaluating Kendo UI web controls trial. My appliction used RadComboBox control. its Width still 100% and i can not change it.
Petur Subev
Telerik team
 answered on 11 Dec 2012
6 answers
1.2K+ views
I have been reading through the PanelBar documentation on this page:

http://www.kendoui.com/documentation/ui-widgets/panelbar/methods.aspx 

under the 'expand' example it provides a snippet of code showing how to select an item using an id selector.

However, with my PanelBar implementation none of the <li /> are rendered with IDs, only CSS classes (e.g. <li class="k-item k-state-default"></li>).  

How can I get the PanelBar to render id attributes for it's list items? what properties do I need to include in my data source? I've tried adding an "id" property but it doesn't change anything.

Alternatively, is there a simple way to persist the state of the PanelBar that I am missing? I'm currently writing/reading values to localStorage in the collapse/expand events and then attempting to call the expand method for PanelBar groups based on the retrieved values but it's proving to be a real pain with no ids.

Thanks,

Neil.
(I am using the Trial version of the Kendo UI controls - v2012.2.710) 
Petur Subev
Telerik team
 answered on 11 Dec 2012
4 answers
116 views
The filter icon doesn't display the filter selection in IE8.  However it works in Firefox & Chrome.  

Any Ideas?

Aspx header Include. 
<script type="text/javascript" src="../Scripts/kendo/2012.2.710/kendo.web.min.js"></script>
Javascript from doc ready. 
ds = new kendo.data.DataSource({
       error: function (e) {
           $('#summaryTable').html(e.xhr.responseText);
       },
       serverPaging: false,
       serverSorting: false,
       schema: {
           data: "d.Vehicles",
           model: {
               id: "Ip",
               fields: {
                   Name: { type: "string" },
                   LastMotion: { type: "date" },
                   Hours: { type: "number" }
               }
           }
       },
       transport: {
           read: {
               url: appRoot + 'services/reports/motion.asmx/VehicleLastMotion',
               contentType: 'application/json; charset=utf-8',
               dataType: 'json',
               type: 'POST'
           },
           parameterMap: function (data, operation) {
               var x = { tags: '{0}'.format(GetSelectorTags().qry) };
               return JSON.stringify(x);
           }
       },
       change: function (e) {
           var d = ds.data();
           $('#count').html((d.length != 0) ? 'Count: {0}'.format(d.length) : 'No vehicles exists for your search criteria. Filter = {0}'.format(GetSelectorTags().qry));
 
           if (d.length != 0) { $('#exportLink').show(); } else { $('#exportLink').hide(); }
 
           GraphMotionData(d);
 
       }
 
   });
 
   var grid = $('#summaryTable').kendoGrid({
       resizable: false,
       filterable: true,
       selectable: 'row',
       pageable: false,
       sortable: {  mode: 'single', allowUnsort: false },
       columns: [
                   { field: 'Name', title: 'Vehicle', width: '*' },
                   { field: 'Hours', title: 'Hours', width: '70px' },
                   { field: 'LastMotion', title: 'Last Motion', width: '180px', template: '#= kendo.toString(LastMotion,"MM/dd/yyyy hh:mm:ss") #' }
                ],
       dataSource: ds,
       autoBind: false
   });
 
   var grid = $("#summaryTable").data("kendoGrid");
 
   grid.bind("change", function () {
       //if grid single row selection is enabled
       var model = grid.dataItem(grid.select());
       DisplayVehicleInformation(model.id, model.Name);
   });
Carsten
Top achievements
Rank 1
 answered on 11 Dec 2012
3 answers
177 views
Hi there

I recently updated to Q3 , the latest css file for kendo mobile.

The tabsstrip in the footer of my template is perfect on the iphone, it shows the km-text titles under the icons along the bottom of the screen.

However on ipad, it seems like the whole footer is pushed down , cutting off some of the icons and text beneath them cant be seen. They are off the page.

Keep in mind when i used version before Q3, the tabstrip was perfect on ipad...

I have tried :

.km-tablet .km-ios .km-footer{
height:4em;
}
.km-tablet .km-ios .km-footer .km-tabstrip{
height:4em;
}

this moves the footer up, but still seems like there is a mask cutting off just below the icons... so no text...

please help if possible

kind regards

Richard
Kamen Bundev
Telerik team
 answered on 11 Dec 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
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
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
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?