Telerik Forums
Kendo UI for jQuery Forum
1 answer
85 views
Is there a way for us to get access to the code that renders the virtual mobile device like on your demo site?  I have a demo to present to our remote office and would love to show them our mobile app. simulated on a mobile device.

Thanks!
Petyo
Telerik team
 answered on 09 Feb 2012
6 answers
911 views
Up until now I have been using your Silverlight tools /w a vb.net service as the backend.  I have a couple dropdown menus which can have up to 100,000 values in them.  I don't populate those lists or retrieve the data until the user starts to type.  I do that by handling the onkeyDown event and quering the webservice, which returns 20 results at a time.

I just started playing with your kendo combobox, I am not that good at javascript but so far it has been going ok, I am impressed with the tools.  I have my menus populating properly, from a REST web service, using mostly my same back end code, but at the moment I am not doing any filtering.  I know that I can filter at the combobox level, but how do I filter at the webservice so it doesn't have to return all the data?  Sorry if I missed this in the documentation, I am very new to this and appreceivate your assistance.
Kjell
Top achievements
Rank 1
 answered on 08 Feb 2012
0 answers
254 views
I am having issues binding an XML dataset to a Kendo Grid using the Kendo DataSource object. My grid renders but has no rows.

Here is the page on which I am drawing the Grid and creating the DataSource (Default.aspx):

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ians_samples.Default" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
 
    <script src="js/kendo/jquery.min.js" type="text/javascript"></script>
    <script src="js/kendo/kendo.all.min.js" type="text/javascript"></script>
 
    <link href="css/default.css" rel="Stylesheet" />
    <link href="css/kendo/kendo.common.min.css" rel=Stylesheet />
    <link href="css/kendo/kendo.default.min.css" rel=Stylesheet />
 
    <style>
         
    </style>
</head>
<body>
    <form id="form1" runat="server">
 
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Services>
            <asp:ServiceReference Path="~/data_reader_webservice.asmx" />
        </Services>
    </asp:ScriptManager>
 
    <div>
        <div class="k-content">
            <div id="splitter_test" style="height: 300px;">
                <div>
                    <p> Top </p>
                </div>
 
                <div>
                    <div id="grid_test">
                     
                    </div>
                </div>
 
                <div>
                    <p> Bottom </p>
                </div>
            </div>
        </div>
 
        <script>
            $(document).ready(function () {
                $("#splitter_test").kendoSplitter({
                    orientation: "vertical",
                    panes: [
                            { collapsible: false, resizable: true, size: "50px" },
                            { collapsible: false, resizable: true },
                            { resizable: true, size: "50px" }
                        ]
                });
 
                var dataSource = new kendo.data.DataSource({
                    transport: {
                        read: {
                            type: "POST",
                            url: "data_reader_webservice.asmx/GetHistoryLogXml"
                        }
                    },
                    schema: {
                        type: "xml",
                        data: "/tblHistoryLog/tblHistoryLog",
                        model: {
                            fields: {
                                LogID: "LogID/text()",
                                LogDate: "LogDate/text()",
                                Modules: "Modules/text()",
                                Message: "Message/text()"
                            }
                        }
                    }
                });
 
                $("#grid_test").kendoGrid({
                    dataSource: dataSource,
                    columns: [
                            { field: "LogID", title: "Log ID" },
                            { field: "LogDate", title: "Log Date" },
                            { field: "Modules", title: "Module" },
                            { field: "Message", title: "Message" }
                    ]
 
                });
 
            });
        </script>
    </div>
    </form>
 
     
</body>
</html>

And here is the XAML dataset being returned by my web service (data_reader_webservice.asmx/GetHistoryLogXml ):

<tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211410</LogID>
    <LogDate>2012-02-08T10:20:48.933-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>The AeroScout tagging system has reported movement of tag 000CCC77332E to local position (21536,16149,0) within map Coleman Mine 4700 Level.</Message>
    <MessageType>0</MessageType>
    <UltimateTriggerID>2211410</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211411</LogID>
    <LogDate>2012-02-08T10:20:48.933-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>Entity 239 has entered Zone 21.  Its current position is (9290.36412811279,-23460,-7493.75833129883).</Message>
    <MessageType>1</MessageType>
    <ProximateTriggerID>2211410</ProximateTriggerID>
    <UltimateTriggerID>2211410</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211408</LogID>
    <LogDate>2012-02-08T10:20:04.58-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>The AeroScout tagging system has reported movement of tag 000CCC77332E to local position (21536,16149,0) within map Coleman Mine 4700 Level.</Message>
    <MessageType>0</MessageType>
    <UltimateTriggerID>2211408</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211409</LogID>
    <LogDate>2012-02-08T10:20:04.58-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>Entity 239 has entered Zone 21.  Its current position is (9290.36412811279,-23460,-7493.75833129883).</Message>
    <MessageType>1</MessageType>
    <ProximateTriggerID>2211408</ProximateTriggerID>
    <UltimateTriggerID>2211408</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211406</LogID>
    <LogDate>2012-02-08T10:19:18.387-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>The AeroScout tagging system has reported movement of tag 000CCC77332E to local position (21536,16149,0) within map Coleman Mine 4700 Level.</Message>
    <MessageType>0</MessageType>
    <UltimateTriggerID>2211406</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211407</LogID>
    <LogDate>2012-02-08T10:19:18.387-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>Entity 239 has entered Zone 21.  Its current position is (9290.36412811279,-23460,-7493.75833129883).</Message>
    <MessageType>1</MessageType>
    <ProximateTriggerID>2211406</ProximateTriggerID>
    <UltimateTriggerID>2211406</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211404</LogID>
    <LogDate>2012-02-08T10:17:48.15-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>The AeroScout tagging system has reported movement of tag 000CCC77332E to local position (21536,16149,0) within map Coleman Mine 4700 Level.</Message>
    <MessageType>0</MessageType>
    <UltimateTriggerID>2211404</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211405</LogID>
    <LogDate>2012-02-08T10:17:48.15-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>Entity 239 has entered Zone 21.  Its current position is (9290.36412811279,-23460,-7493.75833129883).</Message>
    <MessageType>1</MessageType>
    <ProximateTriggerID>2211404</ProximateTriggerID>
    <UltimateTriggerID>2211404</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211403</LogID>
    <LogDate>2012-02-08T10:16:17.743-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>Entity 239 has entered Zone 21.  Its current position is (9290.36412811279,-23460,-7493.75833129883).</Message>
    <MessageType>1</MessageType>
    <ProximateTriggerID>2211402</ProximateTriggerID>
    <UltimateTriggerID>2211402</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211402</LogID>
    <LogDate>2012-02-08T10:16:17.73-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>The AeroScout tagging system has reported movement of tag 000CCC77332E to local position (21536,16149,0) within map Coleman Mine 4700 Level.</Message>
    <MessageType>0</MessageType>
    <UltimateTriggerID>2211402</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211400</LogID>
    <LogDate>2012-02-08T10:15:31.61-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>The AeroScout tagging system has reported movement of tag 000CCC77332E to local position (21536,16149,0) within map Coleman Mine 4700 Level.</Message>
    <MessageType>0</MessageType>
    <UltimateTriggerID>2211400</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211401</LogID>
    <LogDate>2012-02-08T10:15:31.61-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>Entity 239 has entered Zone 21.  Its current position is (9290.36412811279,-23460,-7493.75833129883).</Message>
    <MessageType>1</MessageType>
    <ProximateTriggerID>2211400</ProximateTriggerID>
    <UltimateTriggerID>2211400</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
  <tblHistoryLog>
    <LogID>2211399</LogID>
    <LogDate>2012-02-08T10:14:01.313-05:00</LogDate>
    <Modules>TAL</Modules>
    <Message>Entity 239 has entered Zone 21.  Its current position is (9290.36412811279,-23460,-7493.75833129883).</Message>
    <MessageType>1</MessageType>
    <ProximateTriggerID>2211398</ProximateTriggerID>
    <UltimateTriggerID>2211398</UltimateTriggerID>
    <IsMultiTrigger>false</IsMultiTrigger>
  </tblHistoryLog>
<tblHistoryLog>

And here is a copy of the web service code itself (data_reader_webservice.asmx.cs):

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using System.Web.Script.Services;
using System.Web.Script.Serialization;
using System.Text;
 
namespace ians_samples
{
    /// <summary>
    /// Summary description for data_reader_webservice
    /// </summary>
    [WebService(Namespace = "ians_samples")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
 
    [System.Web.Script.Services.ScriptService]
    public class data_reader_webservice : System.Web.Services.WebService
    {
 
        [WebMethod]
        public DataSet GetHistoryLogDataSet()
        {
            DataSet returnSet = new DataSet();
 
            string sConn = ConfigurationManager.ConnectionStrings["NRG-ECO_DB"].ToString();
 
            string sSQL = "SELECT * FROM tblHistoryLog WHERE LogDate BETWEEN '" + DateTime.Now.AddDays(-100).ToString() + "' AND '" + DateTime.Now.ToString() + "' ORDER BY LogDate DESC";
 
            SqlDataAdapter da = new SqlDataAdapter(sSQL, new SqlConnection(sConn));
 
            da.Fill(returnSet, "tblHistoryLog");
 
            returnSet.DataSetName = "tblHistoryLog";
 
            return returnSet;
        }
 
        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
        public string GetHistoryLogXml()
        {
 
            DataSet returnSet = new DataSet();
 
            string sConn = ConfigurationManager.ConnectionStrings["NRG-ECO_DB"].ToString();
 
            string sSQL = "SELECT * FROM tblHistoryLog WHERE LogDate BETWEEN '" + DateTime.Now.AddDays(-100).ToString() + "' AND '" + DateTime.Now.ToString() + "' ORDER BY LogDate DESC";
 
            SqlDataAdapter da = new SqlDataAdapter(sSQL, new SqlConnection(sConn));
 
            da.Fill(returnSet, "tblHistoryLog");
 
            returnSet.DataSetName = "tblHistoryLog";
 
            return returnSet.GetXml();
        }
 
        [WebMethod]
        [ScriptMethod(ResponseFormat = ResponseFormat.Json)]
        public string GetHistoryLogJSON()
        {
            DataTable returnSet = new DataTable();
 
            string sConn = ConfigurationManager.ConnectionStrings["NRG-ECO_DB"].ToString();
 
            string sSQL = "SELECT * FROM tblHistoryLog WHERE LogDate BETWEEN '" + DateTime.Now.AddDays(-100).ToString() + "' AND '" + DateTime.Now.ToString() + "' ORDER BY LogDate DESC";
 
            SqlDataAdapter da = new SqlDataAdapter(sSQL, new SqlConnection(sConn));
 
            da.Fill(returnSet);
 
            return GetJSONString(returnSet);
 
        }
 
        public static string GetJSONString(DataTable Dt)
        {
 
            string[] StrDc = new string[Dt.Columns.Count];
            string HeadStr = string.Empty;
 
            for (int i = 0; i < Dt.Columns.Count; i++)
            {
 
                StrDc[i] = Dt.Columns[i].Caption;
 
                HeadStr += "\"" + StrDc[i] + "\" : \"" + StrDc[i] + i.ToString() + "¾" + "\",";
            }
 
            HeadStr = HeadStr.Substring(0, HeadStr.Length - 1);
 
            StringBuilder Sb = new StringBuilder();
            Sb.Append("{\"" + Dt.TableName + "\" : [");
 
            for (int i = 0; i < Dt.Rows.Count; i++)
            {
 
                string TempStr = HeadStr;
                Sb.Append("{");
 
                for (int j = 0; j < Dt.Columns.Count; j++)
                {
 
                    TempStr = TempStr.Replace(Dt.Columns[j] + j.ToString() + "¾", Dt.Rows[i][j].ToString());
                }
 
                Sb.Append(TempStr + "},");
            }
 
            Sb = new StringBuilder(Sb.ToString().Substring(0, Sb.ToString().Length - 1));
            Sb.Append("]}");
 
            return Sb.ToString();
        }
    }
}

If anyone can provide any insights as to what is wrong I would greatly appreciate it.

Thanks again,

Ian


Ian
Top achievements
Rank 1
 asked on 08 Feb 2012
3 answers
84 views
Will the next beta be open at first or will registered users get in first?
Sebastian
Telerik team
 answered on 08 Feb 2012
2 answers
171 views
I have some html that I have applied the splitter to.

<div class="frame">
<div class="left-nav"></div>
<div class="content"></div>
<div class="clear"></div>
</div>

My class left-nav has a set width of 200px and my content class doesn't have a set width.
clear just removes the floating.

Can the splitter be applied just to left-nav?

I have tried

$(".frame").kendoSplitter({
          panes: [
                          { collapsible: true,size:"200px",max:"200px"},
                      {},{}
                            
    
                      ]
      });

But it applies a panel to the .content div.

Any suggestions?
Shane P
Top achievements
Rank 1
 answered on 08 Feb 2012
2 answers
338 views
HTML:
<div class="k-window">...</div>
<div class="k-window">...</div>
<div id="popup">...</div>

JS:
$("#popup").kendoWindow().data("kendoWindow").open();


I use the class k-window to decorate my own frames.

Window opens correctly.
But when I try to close (X) get (google chrome):
Uncaught TypeError: Cannot read property 'options' of undefined

If you do not use the class k-window everything works fine.
DDarko
Top achievements
Rank 1
 answered on 08 Feb 2012
1 answer
183 views
I have implemented Kendo datePicker in .Net as well as Sharepoint 2010. THe Client Id generated in Sharepoint for KEndoDatePicker is like "#ctl00$m$g_3fdcb998_461b_4f78_b53f_aae237e7bc05$ctl00$KendoDatePicker1" in the HTML. But when I try to access this by using this.ClientId from server side, the ClientId does not have $ symbol. This is not the case with KendoGrid. PLease help me on this...
Atanas Korchev
Telerik team
 answered on 08 Feb 2012
2 answers
256 views

How would one create a new and unique Window for each row in a Kendo Grid?  I only want one instance of the window, and each row comes from the database.

For example imagine a Kendo Grid that shows a hundred open jobs and their status.  Each row has a link that says "Change status". Clicking that link will open a URL, with options.  Upon closing, the grid is refreshed.

Thank you in advance!



Jayalakshmi
Top achievements
Rank 1
 answered on 08 Feb 2012
5 answers
359 views

I have a list view (#menuList). As soon as i configure a datasource including a schema, i get the following js error when i click an item:
Unable to get value of the property 'getByUid': object is null or undefined

My page:
<!DOCTYPE html>
<head>
    <title>Compano Online Software</title>
 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
    <script src="http://cdn.kendostatic.com/2012.1.124/js/kendo.all.min.js" type="text/javascript"></script>
    <script src="http://cdn.kendostatic.com/2012.1.124/js/kendo.mobile.min.js" type="text/javascript"></script>
 
    <link href="/styles/kendo.common.min.css" rel="stylesheet" />
    <link href="/styles/kendo.mobile.all.min.css" rel="stylesheet" />
 
    <script type="text/javascript">
        var vn = "prd.item";
        var tm = "<b>${SalesOrganizationShortDescription} ${Code}</b>-<b>${Description}</b><br/>€ ${PurchasePricePerUtilizationUnit}";
 
        function onError(e)
        {
        }
 
        function menuClick(e) {
            vn = e.dataItem.ViewName;
            tm = e.dataItem.Template;
            var list = $("#list").data("kendoMobileListView");
            if (list)
                list._refresh();
        }
 
        function initList() {
                $("#list").kendoMobileListView({
                    dataSource: {
                        transport: {
                            read: {
                                type: "POST",
                                url: "/dv.ashx",
                                data: { vn: vn },
                                dataType: "json"
                            }
                        },
                        serverPaging: true,
                        serverSorting: true,
                        pageSize: 20,
                        schema: {
                            data: "d",
                            total: "count"
                        },
                        error: onError
                    },
                    template: tm
                });
            }
 
            $(document).ready(function () {
                var app = new kendo.mobile.Application(document.body);
 
                $("#menuList").kendoMobileListView({
                    dataSource: {
                        transport: {
                            read: {
                                type: "POST",
                                url: "/webservices/mobile.asmx/GetMenuList",
                                contentType: "application/json; charset=utf-8",
                                data: {},
                                dataType: "json"
                            }
                        },
 
                        schema: {
                            data: "d",
                            model: {
                                fields: {
                                    __type: { type: "string" },
                                    ViewName: { type: "string" },
                                    Description: { type: "string" },
                                    Template: { type: "string" }
                                }
                            }
                        }
                    },
 
                    template: "<a href='tabstrip-grid'>${Description}</a>",
                    click: menuClick
                });
            });
    </script>
</head>
<body>
    <div data-role="view" id="tabstrip-home" data-title="Home" data-layout="mobile-tabstrip">
        <ul data-style="inset" id="menuList" ></ul>
    </div>
 
    <div data-role="view" id="tabstrip-grid" data-title="Overzicht" data-init="initList" data-layout="mobile-tabstrip">
        <div id="list"></div>
    </div>
    <div data-role="layout" data-id="mobile-tabstrip">
        <header data-role="header">
            <div data-role="navbar">
                <a class="nav-button" data-align="left" data-role="backbutton">Back</a>
                <span data-role="view-title"></span>
                <a data-align="right" data-role="button" class="nav-button" href="#index">Index</a>
            </div>
        </header>
        <div data-role="footer">
            <div data-role="tabstrip">
                <a href="#tabstrip-home" data-icon="home">Home</a>
                <a href="#tabstrip-grid" data-icon="favorites">Overzicht</a>
                <a href="#tabstrip-detail" data-icon="favorites">Details</a>
            </div>
        </div>
    </div>
</body>
</html>
Roland Koops
Top achievements
Rank 1
 answered on 08 Feb 2012
0 answers
81 views

Is there a method or function to re-render all Kendo controls displayed in the current screen? The issue I currently have is that when I inject controls dynamically without refreshing the page (using JQuery append() for example) Kendo will continue to render new and existing controls on-top of controls that have already been rendered.

Is there a simple solution to this common problem?

Ryan
Top achievements
Rank 1
 asked on 08 Feb 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?