Telerik Forums
Kendo UI for jQuery Forum
1 answer
116 views
Hi all,

First of all I want to say thanks for this great tools to accelerate web development. I am new to Kendo UI, and just learning about the KendoUI Grid. I am using a remote data source with server paging, filtering, sorting. Most of all the things already working nicely (thanks to this great tools). But right now I am facing a problem which related to the paging. 

The problem is actually very simple, I have data with several pages. If I navigate through the grid pager, for example currently right now I am navigating to page 3. The I apply a filter to the grid, which only have 1 page in total, the grid will display no data since the page displayed by the grid right now is 3. Is there any way/workaround to this problem? For example querying local data after retrieve from the remote data to set the page automatically to page 1 when the available page is less than current page navigated in the pager.

Thanks before for help. Thanks !!
Jackie
Top achievements
Rank 1
 answered on 19 Jun 2012
3 answers
186 views
Per my requirements i needed to pagers in the page.  This is how i accomplished it.  I think it can be simpler though?

1. create two pagers in the html
2. detach and move one on databound event.

http://jsfiddle.net/wolfpackt99/VAhLk/4/

I stumbled onto the two divs with same class as pager working.  I guess that is if you have table first method.  but how do i get the table in the middle?
Alexander Valchev
Telerik team
 answered on 19 Jun 2012
2 answers
599 views
I fetch data from the server using like so (the fetch url has been predefined using jQuery.ajaxSetup()):

var dataSourceStatistics = new kendo.data.DataSource({
    transport: {
        read: {
            data: {
                f:'getCustomerStats',
                fromDate:function () {
                    return kendo.toString(kendo.parseDate(calendarstart.value()), "yyyy-MM-dd")
                },
                toDate:function () {
                    return kendo.toString(kendo.parseDate(calendarend.value()), "yyyy-MM-dd")
                },
                custStats:null
            }
        }
    },
    schema: {
        data: function(data) {
            return data.result.custStats.Record;
        },
        model:{
            id: "Employee",
            fields: {
                Employee: "Employee",
                Value: "Value",
                ValueUsed: "ValueUsed",
                ValueLeft: "ValueLeft"
            }
        }
    },
    pageSize: 10
 
});

After I execute read() the DataSource contains data, and the objects look OK. 
Example:

[{"Employee":"John Doe","ValueUsed":"50","ValueLeft":"0"}]


But executing the method total() returns 0 and get(index) always returns undefined. 
What am I doing wrong?
Jesper
Top achievements
Rank 1
 answered on 19 Jun 2012
1 answer
563 views
Hi,

I'm trying to resolve the refreshing issue with grid while setting data using Datasource.data() method. Grid refreshes fine when data list contains atleast one record , if data list contains empty list Grid renders the cached data. in this case very first set of data list assigned to Datasource.

setData:

 

function (selector, datalist, emptyOptions) {

 

var grid = $(selector).data("kendoGrid");

 

if (!grid) return false;

 

var len = datalist.length || 0;

 

if (grid.dataSource) {

grid.dataSource._pristine = datalist;

grid.dataSource._total = datalist.length || 0;

grid.dataSource.data(datalist);

}

 

else {

grid.dataSource =

 

new kendo.data.DataSource({ data: datalist, total: len });

}

 

this.resize(selector, emptyOptions);

},

Alexander Valchev
Telerik team
 answered on 19 Jun 2012
2 answers
93 views
Hello! What's wrong with following code?

<div id="grid"></div>
 
<script type="text/javascript">
    $(function () {
 
        var units = [{ UnitId: 2 }, { UnitId: 5}];
 
        var ds = new kendo.data.DataSource({
            // transport: {
            //   read: { url: 'http://localhost:6356/admin/GetUnitTogglesList' }
            // },
            data: units
        });
 
        ds.read();                    // For test purpose:
        alert(ds.data().length);      // show 2 - it's Ok
 
        $('#grid').kendoGrid({
            dataSource: ds,
            columns: [{ title: "Unit Id", field: "UnitId"}]
        });
 
    });
</script>

In result - Grid is empty.
And i see error in Firebug console (see attached image).
Eugeny
Top achievements
Rank 1
 answered on 19 Jun 2012
5 answers
156 views
When I call modal window above normal window I am still able to activate normal window.
How can we prevent that?
Kakaiba
Top achievements
Rank 1
 answered on 19 Jun 2012
0 answers
323 views
Any idea why the wrapper for numerictextbox add attribute readonly when I use this widget with knockout binding?
My code is:
<input type="text" class="k-textbox" id="inpNip" placeholder="" name="Nip" data-bind="value: Nip, autovalidate: true" /> As a result I get: 

<span class="k-numeric-wrap k-state-default k-state-hover">
<input class="k-formatted-value k-input valid" type="text" style="display: inline-block; " readonly="readonly">
<input type="text" class="k-input valid" id="inpNip" name="Nip" data-bind="kendoNumericTextBox: {value: Nip, }" data-role="numerictextbox" style="display: none; ">
<span class="k-select"><span unselectable="on" class="k-link">

 In first input is attribute readonly because of which numerictextbox acts strange. The behavior is visible also on knockout-kendo.js page ( http://rniemeyer.github.com/knockout-kendo/web/NumericTextBox.html ).

So any idea why it is like this? How to get rid of it?

Thanks.
/KrisD
Kristijan
Top achievements
Rank 1
 asked on 19 Jun 2012
1 answer
236 views
There is a lot of confusion in our team.  Does your DataSource bind to anything?  Ie., WCF, WCF doing JSON, JSON-RPC.  Given that we have seen only REST examples, there is a bias now for Kendo using *only* REST.  My argument is that Kendo is all client side, so why would it be limited to only one or two service protocols.

Could you discuss and perhaps give links to various examples?

Thank you.

Atanas Korchev
Telerik team
 answered on 19 Jun 2012
1 answer
381 views
Hello All,

I am writing a registration form for my site and I want to use KendoUIAutocomplete on a password input to preserve the look of with the other fields.
Is there a way to specify that this is a 'password' input type, IE: Show ***** inplace of the text.
or is there another way to get the same look on a standard <input>

Thanks for any help.

-George
George
Top achievements
Rank 1
 answered on 18 Jun 2012
0 answers
79 views
Hi All,
I got started using Kendo UI framework. I like much and love it.
I have concern about Menu. I just wrote code for static Menu. I am explaining my scenario...
---------------------------
When web page loaded (rendered) then I am seeing List and then within few seconds Menu built and showed. This is kind of strange and not acceptable.
---------------------------
Can we fix this issues or this is the right behavior. Could you guys tell me about how to resolve this issue if we can fix it.
Thanks much in advance.
--Aarzoo
aarzoo
Top achievements
Rank 1
 asked on 18 Jun 2012
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?