Telerik Forums
Kendo UI for jQuery Forum
8 answers
1.4K+ views
I am new to using the Kendo UI suite of products, and am going crazy trying to pass  a parameter to my c# webmethod.  I have everything up and running when I don't use the paramter, and data pulls, saves, etc. just fine.  But, when I try to pass the parameter, I get the error: 

Invalid web service call, missing value for parameter: \u0027ageGroupID\u0027.

The relevant code is below.  Note that this is just the most recent iteration of the code, as I have tried a lot of different ways to get this working, based on the information found in this forum, and elsewhere.

I have set the variable many different ways.  The most recent was to pretty much set the json, but I have tried just setting the value I am passing, then setting the full json in the data: statement.

var miniMiteAgeID = { 'ageGroupID': "11" };

Here is my read statement:

read: {
                    url: "AssociationStats.aspx/getPlayerInfo", //specify the URL which data should return the records. This is the Read method of the Products.asmx service.
                    contentType: "application/json; charset=utf-8", // tells the web method to serialize JSON
                    dataType: "json",
                    data: JSON.stringify(miniMiteAgeID),
                    type: "POST" //use HTTP POST request as the default GET is not allowed for web methods
 
                },

My webmethod is below...

[WebMethod]
public static IEnumerable<teamPlayers> getPlayerInfo(string ageGroupID)
{
 
  //Do a bunch of stuff
 
}

Any help or suggestions you might have would be greatly appreciated.  I am at my wits end.

Thanks,

Scott
Scott
Top achievements
Rank 1
 answered on 20 Jun 2012
1 answer
238 views
Hi,

I have a Grid with Customer - Order datas. In my datasource model there are customer name and customer id. In the grid there is only the customer name visible.
When I'm editing the row, the Customer name is a DropDownList, with custom Customer datasource (name, id).

So how can I make that, when I change the Customer name in the grid, it sholud change the customer id too in the customerorder datasource? Now my program is working, but when I change Customer with dropdown, in the model its change only the customer name.

I hope I was clear?

I think I should use the DropDownList's change event. How can I get the current datasource item's id field, and update this id to the parent datasource customer id?

function dolgozoDropDownEditor(container, options) {
    $('<input data-text-field="nev" data-value-field="nev" data-bind="value:' + options.field + '"/>')
        .appendTo(container)
        .kendoDropDownList({
            autoBind: false,
            dataSource: dolgozodata,
            change: function () {
                options.model.dszam = 100; // Here I need this.dataitem.id or something like this
            }
        });
}


Please advice,
Lajos
martonx
Top achievements
Rank 1
 answered on 20 Jun 2012
1 answer
76 views
Consider the fiddle at:

http://jsfiddle.net/vapKb/42/ 

If you console the network activity which this code runs you can see two things:
1) type is ignored. it always makes a GET requests
2) data is ignored. It doesn't get sent (regardless of type)

I've tried this and variations on all weekly builds since 322 and the behaviour is the same. For clarification in v 322 everything works ok however I really need the various other enhancements and fixes that are in later releases.

Is this a bug or has the configuration requirement changed?

Thanks,

Mark.
Alex Gyoshev
Telerik team
 answered on 20 Jun 2012
0 answers
83 views
Hi All,

I have a requirement, that by using combo box i need to create drill down sub menus(menu under another menu). is kendo ui "combo box" supports this feature.
If possible how can i achive it (any reference doc/url)..

example is shown in attached image.

Thanks,
Praneeth.
Pra
Top achievements
Rank 1
 asked on 20 Jun 2012
1 answer
146 views
I'm testing KendoUI for a BlackBerry app and ran into some trouble with the navbar, the title never shows up in the navbar (and if there isn't a button in the navbar that won't show up), how can I make the navbar and title always show on BB?

Thanks,
JT
Kamen Bundev
Telerik team
 answered on 20 Jun 2012
0 answers
69 views
Editor doesn't work on my android 4.0 tablet. Opera, dolphin, firefox, native navigator...
I just see the HTML in a textarea
David Laredo
Top achievements
Rank 1
 asked on 20 Jun 2012
0 answers
233 views
Hello everybody,

I´m from Germany and I use der de_DE culture format on my kendo system.
I get the data from a remote data object.

I have no problems filtering dates.
But when i try to filter dates on the server filtered dates wont be recognized.

This ist how the URL should look like when i´m filter for the 21.12.2012 (german date format)
http://.../kendo.php?filter[filters][0][field]=Bestelldatum&filter[filters][0][operator]=eq&filter[filters][0][value]=21.12.2012&filter[logic]=and

but when i filter it looks like this:
http://.../kendo.php?filter[filters][0][field]=Bestelldatum&filter[filters][0][operator]=eq&filter[logic]=and

Where is the fault?

Greetings
Stefan

Here is the Code i Use:

<script src="js/jquery.min.js"></script>
    <script src="js/kendo.web.min.js"></script>
    <script src="js/console.js"></script>
    <script src="js/kendo.culture.de-DE.js"></script>

<script>
        kendo.culture("de-DE");
        
        $(document).ready(function() {
              
            dataSource = new kendo.data.DataSource({
                
                transport: {
                    read:  {
                        url: "../kendo.php",
                        type: "GET",
                    },
                },
                
                schema: {
                    data: function(result) {     
                      return result.data || result;
                    },
                    total: function(result) {
                        var data = this.data(result);
                        return data ? data.length : 0;
                    },
                    model: {
                        id: "Kennung",
                        fields: {
                            Kennung: { type: "string" },
                            Bestelldatum: { type: "date"},
                        }
                    
                    }
                },
                pageSize: 10,
                serverFiltering: true,
            });
        
            $("#grid").kendoGrid({
                pageable: true,
                dataSource: dataSource,
                groupable: true,
                scrollable: false,
                sortable: true,
                filterable: true,
                resizable: true,
                reorderable: true,
                
                columns: [
                
                    {
                        field: "Kennung"
                    },
                    {
                        field: "Bestelldatum",
                        title: "Bestelldatum",
                        format: "{0:dd.MM.yyyy}",
                    }
                
                ]
            });           
            
        });
    </script>

Here is a Screenshot:

Stefan
Top achievements
Rank 1
 asked on 20 Jun 2012
0 answers
95 views
Hi, 
I am using column-resizing table. On this table I want to add link n any of the column.

Please check my  java script below. 

 <script>
var firstNames = ["piyush", "Andrew", "Janet", "Margaret", "Steven", "Michael", "Robert", "Laura", "Anne", "Nige"],
lastNames = ["parmar", "Fuller", "Leverling", "Peacock", "Buchanan", "Suyama", "King", "Callahan", "Dodsworth", "White"],
cities = ["Seattle", "Tacoma", "Kirkland", "Redmond", "London", "Philadelphia", "New York", "Seattle", "London", "Boston"],
titles = ["Accountant", "Vice President, Sales", "Sales Representative", "Technical Support", "Sales Manager", "Web Designer",
"Software Developer", "Inside Sales Coordinator", "Chief Techical Officer", "Chief Execute Officer"],
birthDates = [new Date("1948/12/08"), new Date("1952/02/19"), new Date("1963/08/30"), new Date("1937/09/19"), new Date("1955/03/04"), new Date("1963/07/02"), new Date("1960/05/29"), new Date("1958/01/09"), new Date("1966/01/27"), new Date("1966/03/27")];

function createRandomData1(count) {
var data = [],
now = new Date();
for (var i = 0; i < count; i++) {
var firstName = firstNames[i],
lastName = lastNames[i],
city = cities[i],
title = titles[i],
birthDate = birthDates[i],
age = i;


data.push({
Id: i + 1,
FirstName: firstName,
LastName: lastName,
City: city,
Title: title,
BirthDate: birthDate,
Age: age
});
}
var data2 = data;

return data;
}
 
                $(document).ready(function() {



                    $("#grid").kendoGrid({
                        dataSource: {

                            data: createRandomData1(10),

                            schema: {
                                model: {
                                    fields: {
                                        FirstName: { type: "string" },
                                        LastName: { type: "string" },
                                        City: { type: "string" },
                                        Title: { type: "string" },
                                        BirthDate: { type: "date" },
                                        Age: { type: "number" }
                                    }
                                }
                            },
                            pageSize: 10
                        },
                        height: 350,
                        sortable: true,
                        resizable: true,
                        pageable: true,
                        columns: [
                            {
                                field: "FirstName",
                                title: "First Name ",
                                width: 100
                            },
                            {
                                field: "LastName",
                                title: "Last Name",
                                width: 100
                            },
                            {
                                field: "City",
                                width: 100
                            },
                            {
                                field: "Title",
                                width: 100
                            },
                            {
                                field: "BirthDate",
                                title: "Birth Date",
                                template: '#= kendo.toString(BirthDate,"MM/dd/yyyy") #'
                            },
                            {
                                field: "Age",
                                width: 50
                            }
                        ]
                    });
                });
            </script>





Piyush
Top achievements
Rank 1
 asked on 20 Jun 2012
1 answer
283 views
Hi,

I've created a test grid using the Kendo grid that gets data from the sample from the demos. The code looks like this:

$(document).ready(function()
{
  $("#grid").kendoGrid(
  {
    dataSource:
    {
      type: "odata",
      transport:
      {
        read: "http://demos.kendoui.com/service/Northwind.svc/Orders"
      }
    }
  });
});

This works great.

I then change the URI for the data source to point at Microsoft Dynamics CRM 2011 data, as follows:

$(document).ready(function()
{
  $("#grid").kendoGrid(
  {
    dataSource:
    {
      type: "odata",
      transport:
      {
        read: "https://testorganisation.crm4.dynamics.com/XRMServices/2011/OrganizationData.svc/AccountSet"
      }
    }
  });
});

Now the grid shows no data. Does anyone know what the problem is and if it is specific to CRM?

The data coming from the data source looks OK at that URL.
Atanas Korchev
Telerik team
 answered on 20 Jun 2012
2 answers
241 views
Hi, Do you have any example of Date or Time pickers in an editable grid? I can't find one on the net. Please help
pawan
Top achievements
Rank 1
 answered on 20 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?