Telerik Forums
Kendo UI for jQuery Forum
2 answers
491 views
I apologize if this has been asked before, the forum search didn't seem to turn up the answer.

I am creating a grid with editable=false. Later on, if conditions are satisfied, I want to set editable=true. I haven't been able to find anything in the API, is this even possible in 2012.1.311? Or am I going to have to destroy and recreate the grid?
Steve
Top achievements
Rank 1
 answered on 19 Jun 2012
1 answer
135 views
Hi, 

Not been able to Unbind KendoDraggable from KendoGrid. Is there any way of doing?

Thanks
Mohammed
Top achievements
Rank 1
 answered on 19 Jun 2012
1 answer
170 views
I just used the ThemeBuilder for the first time and I'm noticing that within the generated CSS, there are references to your cdn.  Is there a way to prevent the usage of the cdn references?  Our product is a global enterprise product that may be used by customers that have very tight firewalls and will not have access to the cdn urls.

Any information you can provide will be greatly appreciated.

Thanks!
Troy
Top achievements
Rank 1
 answered on 19 Jun 2012
3 answers
186 views
Hello support,

I downloaded a ASP.NET MVC examples package to try out the grid, especially the filter functionality. In the "Grid basic usage" example, some filters do not work, e.g. the "contains"-filter. Is this by design, as it is an example/trial version? Are all filter options that are displayed available in the (commercial use) package?

Thanks for your reply,

Joachim
Iliana Dyankova
Telerik team
 answered on 19 Jun 2012
1 answer
117 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
189 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
604 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
575 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
99 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
167 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
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?