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

I'm trying to put two (or more) Kendo Grids on my page; both grids use a separate oData request to load their data, i.e. with a data source of type:'odata'.

Having either of those grids on the page works fine, but having both of them in the same page does not work: the columns for both grids are shown, but neither grid has any data rows.

I noticed that both oData requests get the following querystring param + value: $callback=callback

I'm not entirely sure how the callback thing works, but shouldn't the values have been different? For example, $callback=grid1callback and $callback=grid2callback, respectively?

If this is indeed the problem, is there a way to override the $callback value?
Rosen
Telerik team
 answered on 20 Mar 2012
4 answers
530 views
Hi,
I am trying to bind JSON data with KENDO grid but can't figure out how to do it. following is the snippet of my code

            <script type="text/javascript">
                $(document).ready(function () {
                    $("#grid").kendoGrid({

                        height: 360,  groupable: true, scrollable: true, sortable: true, pageable: true,

                        columns: [{field: "name",title: "Name"},{field: "number",title: "Number"},{field: "type",title: "Type"},
                                        {field: "low",title: "Low"},{field: "high",title: "High"},{field: "status",title: "Status"}],

                        dataSource: {
                            transport: {
                                read: {
                                        // the remote service url
                                    url: "/DomainService/KendoDomainService.svc/json/GetSpt_values",
                                        // JSONP is required for cross-domain AJAX
                                    dataType: "jsonp"}}},

                                    schema: {
                                        // the data which the data source will be bound to is in the "results" field       
                                        //data: "GetSpt_valuesResult"
                                    }});});

            </script>

When i run above URL in my browser, i get data from json. So, i have data and i have the kendo grid. The data i am fetching from the MasterDB (SQL SERVER) SPT_VALUES table.

the data snippet is as follow:

{"GetSpt_valuesResult":{"TotalCount":2506,"RootResults":
[{"high":null,"low":null,"name":"rpc","number":1,"status":0,"type":"A "},
{"high":null,"low":null,"name":"pub","number":2,"status":0,"type":"A "},
{"high":null,"low":null,"name":"sub","number":4,"status":0,"type":"A "},
{"high":null,"low":null,"name":"dist","number":8,"status":0,"type":"A "}
]}}

Could you please help my in binding data as i am really new to the jquery.

Kind Regards,
waseem

Waseem
Top achievements
Rank 1
 answered on 20 Mar 2012
0 answers
78 views
I am looking at applying row wise data type validations for my kendo grid(editable).
for e.g. row 1 - accepts string values only
row 2 accepts number values only.
Right now i can apply column wise data type by model/schema fields definitions.
Is there a way to define this row wise ?

thanks in advance

mahesh
Mahesh
Top achievements
Rank 1
 asked on 20 Mar 2012
0 answers
61 views
I am looking at applying rowwise datatype validations for my kendo grid(editable).
for e.g. row 1 - accepts string values only
row 2 accepts number values only.
Right now i can apply column wise datatype by model/schema fields definitions.
Is there a way to define this row wise ?

thanks in advance

mahesh
Mahesh
Top achievements
Rank 1
 asked on 20 Mar 2012
2 answers
191 views
Hi,

I would like to bind Kendo Grid using Ajax enabled WCF and returning a data either in json or xml format. But the problem is that my kendo UI Grid is not binding with my web service. The webservice returns the data without any problem. Any help would be greatly appreciated.

Webservice Data :

{"d":["20417","20418","20419","20420","20421","20422","20424","20425","20426","20427","20443","20480","20489","20491","20492","20495","20497","20498"]}

[ServiceContract(Namespace = "QS")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class PSService
{
     
    [OperationContract()]
    [WebGet(BodyStyle = WebMessageBodyStyle.WrappedRequest)]
    public string[] GetJobs()
    {
        try
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("select ID from ff_job");
            string sql = sb.ToString();
            DataTable dt = Database.Instance.ExecuteQueryToDataTable(sql);
            List<string> IJobList = new List<string>();
            string sJobID;
            foreach (DataRow dr in dt.Rows)
            {
                sJobID = dr["ID"].ToString();
                IJobList.Add(sJobID);
            }
            return IJobList.ToArray();
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message.ToString());
            return null;
        }
 
    }


<div id="grid">
</div>

<
script type="text/javascript">
       $(document).ready(function () {
           $("#grid").kendoGrid({
               dataSource: {
                   type: "odata",
                   transport: { read: "http://localhost:3444/BootStrap/PSService.svc/getjobs" },
                   pageSize: 10
               },
               schema: {
                   model: {
                       fields: {
                           ID: { type: "number" }
 
                       }
                   }
               },
               height: 360,
               groupable: true,
               scrollable: true,
               sortable: true,
               pageable: true,
               columns: [{
                   field: "ID",
                   width: 90,
                   title: "Job No."
               }]
           });
       });
   </script>
Muhammad
Top achievements
Rank 1
 answered on 20 Mar 2012
1 answer
55 views
Hello,

 I downloaded and gone through the demos. We have requirement of  Doughnut Chart types .
 Is kendo UI supported by Doughnut Chart types ..?

Thanks,
Rajesh
Hristo Germanov
Telerik team
 answered on 20 Mar 2012
1 answer
104 views
It´s possible to build range chart to display on ipad?

Where can I find examples?

Thanks!
Iliana Dyankova
Telerik team
 answered on 20 Mar 2012
1 answer
291 views
Hello,

I'm trying Kendo UI mobile. I would like to have the inset style for a databound listview. I just added 'data-style="inset"' to your sample (http://demos.kendoui.com/beta/mobile/listview/databinding.html), but it doesn't seems to work.
How can I achieve this ?

Cordially,
Kakone.
Petyo
Telerik team
 answered on 20 Mar 2012
2 answers
142 views
Hi,

I use at the moment the grid from Q1 Beta. I use the editing inline method for the grid and I would like use a button (passButton) in each row, after "edit cancel" cell. But I don't see a button, only "..."! When i click edit, I see a button.... It is a bug or...????

$("#grid").kendoGrid({
                        dataSource: dataSource,
                        navigatable: true,
                        pageable: true,
                        sortable: true,
                        height: 400,
                        filterable: false,
                        toolbar: [
                                  { name: "create", text: "<?php echo $this->translate("Add Account"); ?>" }
                              ],
                        columns: [
                            { field: "Company", width: "120px", title: "<?php echo $this->translate("Company"); ?>" },
                            { field: "Name", width: "120px", title: "<?php echo $this->translate("Name"); ?>" },
                            { field: "Email", width: "200px", title: "<?php echo $this->translate("Email"); ?>" },
                            { field: "AccountID", width: "150px", title: "<?php echo $this->translate("Account ID"); ?>" },
                            { field: "Active", width: "60px", title: "<?php echo $this->translate("Active"); ?>" },
                            { field: "Date", width: "110px", title: "<?php echo $this->translate("Expired"); ?>", template: '#= kendo.toString(Date,"dd.MM.yyyy") #' },
                            { command: [
                                        {name: "edit"},
                                        {name: "destroy"}
                                       ]
                            },
                            { field: "PassButton", width: "60px", title: "<?php echo $this->translate("Send"); ?>", template: "<input type='button' class='k-button k-button-send' value='' onclick='myFunction(\"#=AccountID#\")'/>" }
                        ],
                        editable: "inline"
                    });

Best regards
Damir
Damir
Top achievements
Rank 1
 answered on 20 Mar 2012
0 answers
63 views
       <script type="text/javascript" >
            $(document).ready(function(){
                $("a[href ^= 'contractdetailed1.jsp']").click(function(){
                    alert("xxxxxxx");
                    return false;
                });
 var inlineTemplate = kendo.template("<a href='contractdetaile.jsp?id="+'#= num #'+"'>#= num #</a>");
...
...
...
columns: [
                        { title: "CustomNum", field: "num", width: 130,template:inlineTemplate}
           });
        </script>
Now, I click on the column num, no alert play out, not this event is activated, why? 
Seaman
Top achievements
Rank 1
 asked on 20 Mar 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
MultiColumnComboBox
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
TaskBoard
Popover
DockManager
FloatingActionButton
CircularGauge
ColorGradient
ColorPalette
DropDownButton
TimeDurationPicker
ToggleButton
TimePicker
AICodingAssistant
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?