Telerik Forums
Kendo UI for jQuery Forum
0 answers
124 views
Hi,

I added a post to my (very new) blog to demonstrate how you can create a Kendo UI menu from a ASP.NET Control...

See it here...
Peter
Top achievements
Rank 1
 asked on 15 Jan 2012
0 answers
61 views
After breaking my head for a whole day
Here is the code that is working well. I hope that you find it useful
Sorry for my English.

$("#grid").kendoGrid({
    dataSource: {
        type:"json",
        transport: {
            read: {                   
                dataType: "json",
                type: "POST"
            },
            parameterMap: function (options) {
               return JSON.stringify({"serviceName" : "ActoresPublicoService","methodName" : "getPaises","parameters" : []});
                }
            },
            schema: {
                model: {
                    fields: {
                        title: { type: "string" }
                      
                    }
                }
            }
        },
    height: 250,
    filterable: true,
    sortable: true,
    pageable: true,
});

 

                        

 

 

Tirso
Top achievements
Rank 1
 asked on 14 Jan 2012
4 answers
384 views
Greetings, I am not sure what's happening here, but I am unable to obtain data from a selected row in my code:
var selectedActivity;
 
var activityModel = kendo.data.Model.define({
  id: "_id",
  fields: {
    _id : {type:"string"},
    date: {type:"string"},
    activity : {type:"string"},
    hours : {type:"number"}
  }
});
 
dataSource = new kendo.data.DataSource({
  transport: {
    read: {
      url: '/activity',
        contentType: 'application/json; charset=utf-8',
        type: 'GET',
        dataType: 'json'
    },
    destroy: {
      url: '/activity',
      type: 'DELETE',
      dataType: 'json'
    },
    update: {
      url: '/activity',
      type: 'PUT',
      dataType: 'json'
    },
  },
  schema:{
    model: activityModel
  }
});
 
$("#grid").kendoGrid({
  dataSource: dataSource,
  sortable: true,
  selectable: true,
  rowTemplate: kendo.template($("#rowTemplate").html()),
  altRowTemplate: kendo.template($("#altRowTemplate").html()),
  columns: [
    {field:"_id", title:"id"},
    {field:"date", title:"date"},
    {field:"activity", title:"activity"},
    {field:"hours", title:"hours"}
  ],
  change: function(){
    var selectedId = this.select().data("id");
    selectedActivity = this.dataSource.get(selectedId);
    console.log("selected id:"+selectedId)
    console.log("selected activity is:"+JSON.stringify(selectedActivity));
  }
});

When my change function is triggered, my selected id is undefined. My guess is that I have a misunderstanding somewhere in my data modelling or something of that nature.

Any hints would be appreciated, thank you very much!
Joel
Top achievements
Rank 1
 answered on 14 Jan 2012
0 answers
120 views
Hello,

congratulations for KendoUI, it's a very powerful library.
I'm using KendoUI Chart and I'd like to pass a custom Array to the tooltip so that every tooltip is different.
the model I use is
var data = {
    "Title": "Title of chart",
    "Series": [
        {
            "Name": "2015",
            "Values": [1.00, 0, 0, 2.00]
        },
        {
            "Name": "2016",
            "Values": [1.30, 0.5, 0.6, 2.50]
        }
    ],
    "XAxis":
        {
            "Values": ["20 févr.", "21 févr.", "22 févr.", "23 févr."]
        }
};

I'd like to add a new array to each Series, but I don't know of to reference it in the tooltip declaration ?
 tooltip: {
               ....
            }

Is it possible to do what I want ?
Thanks
Fab
Top achievements
Rank 1
 asked on 13 Jan 2012
1 answer
200 views
Hi.

Are there any public REST service integration examples. Utilization of all REST HTTP verbs GET/POST/PUT/DELETE and also fetch of individual data elements would be nice.

Br,
Timo Westkämper
Atanas Korchev
Telerik team
 answered on 13 Jan 2012
1 answer
93 views
Hi,
I'm using something like this:

<
div id="tabstrip">
<ul>
<li class="k-state-active">
Movies
</li>
<li>
Series
</li>
</ul>
<div>
<div id="gridMovies" />
<div>
Second Tab Content
</div>
</div>


With that, the content of the second tab is rendered at the bottom of the first tab after the grid.
When I change it to
<div id="gridMovies"></div> 
it works fine.

Is that because the document isn't valid ("XHTML 1.0 Transitional")   ?   
Is it necessary to be 100% valid?
Using IE9.

Thanks
Eric
Dimo
Telerik team
 answered on 13 Jan 2012
1 answer
119 views
just one bug report - in IE 9 when go one month back, slide animation is white... Pic attached.
Kamen Bundev
Telerik team
 answered on 13 Jan 2012
3 answers
128 views
Hi
Greetings!!!!
We have one security concern and that is how to protect client from viewing the code. Secondly we want to implement licencing policy in the finished product, so please let us know how to do the same.
Thanks in advance.

Regards
Manash Dutta
Atanas Korchev
Telerik team
 answered on 13 Jan 2012
1 answer
222 views
Hello all,

 I have an existing Asp.Net MVC app that I would like to start using Kendo in. I am new to this type of development so please forgive my newbieness here. I am guessing that I should copy all of the Kendo js script files to the "Script" folder in the project, then put the themes and their folders under the "Content\Themes\" folder?

Any advice on how to structure this would be greatly appreciated.
Thank you in advance

MacK
Dimo
Telerik team
 answered on 13 Jan 2012
3 answers
416 views
Hello,

I am following Hierarchy example to build the parent-child grid.                  

I have this in the view
function detailInit(e) {
    $("<div/>").kendoGrid({
        dataSource: {
            transport: {
                read:  {
                    url: "../OrderDetailJson/",
                    dataType: "json"
                },
            },
            filter: { field: "orderid", operator: "eq", value: e.data.Id }
        },
     ....
}
 
and this in controller
public JsonResult OrderDetailJson(int orderid){
...
}

but client side code will never hit this code saying orderid is null hence route doesn't match.  Why is filter: { field: "orderid", operator: "eq", value: e.data.Id }  doesn't work???  I thought it will work like jquery .post/json call but it doesn't.

Will someone help me?

thanks guys
william
Rosen
Telerik team
 answered on 13 Jan 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
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?