Telerik Forums
Kendo UI for jQuery Forum
2 answers
119 views
We have downloaded a trial of Kendo Mobile.

I have an empty project in visual studio 2010.  I have then added a new html file.

In the same project, I added a "js" folder to which I added the javascript files. 

I have also added a "styles" folder in which I added the css files included in the zip downloaded for the trial

Whenever I open one of these css files, Visual Studio 2010 Premium crashes:  "Microsoft Visual Studio 2010 has stopped working".  This happens each and every time without fail and happens whenever I open a css file from the zip.  When I open another css file I created myself, it does not crash.

I am using Windows 7 Professional 32-bit.

Any ideas what I could be missing or what could be causing the issue?
Dimo
Telerik team
 answered on 01 May 2012
0 answers
130 views
<script id="rowTemplate" type="text/x-kendo-tmpl">

<input name="domainCode" id= "domainCode" type="text" readOnly="true" value="#= Name #" >

</script>


if User enter new value then click on submit button. automatically text box values become blank or empty.


Please assist me

Thanks in advance.
Atit
Top achievements
Rank 1
 asked on 01 May 2012
3 answers
178 views
Hi guys

I define a dropdownlist in the grid, how can I sum this column based on the data-text-field of this dropdown list?

Thanks
Bing
Alexander Valchev
Telerik team
 answered on 01 May 2012
1 answer
89 views
I have seen two different examples - in one of them the language used was #= varname # and in the other I saw - ${varname} . Can some throw some light on the difference between the two.

Thanks in advance.
Pechka
Top achievements
Rank 1
 answered on 01 May 2012
0 answers
134 views
I am testing in Chrome. I don't see any errors in the developer's console. I also don't see a 2nd request made to the datasource.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
    <title>My Open Cal</title>
 
    <!-- Kendo UI Files -->
    <link href="styles/kendo.mobile.all.min.css" rel="stylesheet" type="text/css" />
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/kendo.mobile.min.js" type="text/javascript"></script>
    <script>
        $( //jQuery page load
            function ()
            {
                var app = new kendo.mobile.Application($(document.body), { layout: "layout", icon: "/images/xboxavatar.png" });
                $("#ulMyCal").kendoMobileListView({
                     
                    dataSource: new kendo.data.DataSource(
                    {
 
                        transport:
                                {
                                    read:
                                    {
                                        url: "http://search.twitter.com/search.json",
                                        contentType: "application/json; charset=utf-8",
                                        type: "GET",
                                        dataType: "jsonp",
                                        data:
                                        {
                                            q: "#tampa"
                                        }
                                    }
                                },
 
                        schema: {
                            data: "results"
 
                        }
                    }),
                    template: "<p>${text}</p>"
 
                });
 
                setTimeout(refreshListView, 5000);
 
 
            })
 
            function refreshListView()
            {
                $("#ulMyCal").data("kendoMobileListView").refresh();
            }
    </script>
</head>
<body>
 
    <!-- Layout for all views in the application, as specified when the app is created -->
    <div data-role="layout" data-id="layout">
      <div data-role="header" >
          <div data-role="navbar">
            <span data-role="view-title">My Open Cal</span>
          </div>
      </div>
      <div data-role="footer">
          <div data-role="tabstrip">
            <a href="#index" data-icon="organize">My Calendar</a>
            <a href="#search" data-icon="search">Search</a>
            <a href="settings.htm" data-icon="settings">Settings</a>
          </div>
     </div>
    </div>
 
 
    <div data-role="view" id="index" data-title = "My Calendar">
        <div style="text-align:center">
            <ul id="ulMyCal" data-style="inset">
             
            </ul>
        </div>
    </div>
 
    <div data-role="view" id = "search" data-title = "Search">
         
    </div>
 
</body>
</html>
Sasha
Top achievements
Rank 1
 asked on 01 May 2012
1 answer
362 views
Hello,

I have an OData service with custom basic authentication. With your dataSource, how can I set the username and the password ? Can I access the request headers ?

Cordially,
Kakone.
Tom
Top achievements
Rank 1
 answered on 01 May 2012
1 answer
282 views
hi all:

How to refresh a grid with parameters, I write that, but it's not work,pls help me ,thanks.

the code               

  var grid_=$("#grid_right").kendoGrid({
                    dataSource: {
                        type: "json",
                        transport: {
                            read:{
                                url: "charge-property/resources/unit_list_data.jsp",
                                dataType:"json",
                                data: {
                                    q: "1231453456456"
                                }
                            }
                 ..........................................
                 ..........................................
                }).data("kendoGrid");

I want to in a button in the event,The parameter q modify the into "test"(old  q: "1231453456456" )

the code :
 grid_ .dataSource.read({
                          url: "charge-property/resources/unit_list_data.jsp",
                          dataType: "json",
                         data: {
                             q: "test"
                         }
                      });
                     grid_.refresh();
pls help me ,thanks.

Volkan
Top achievements
Rank 1
 answered on 30 Apr 2012
0 answers
82 views
I am getting reports from some of my testers that they cannot see the charts. The frame is there and the backgrounds are there, but the lines and pie slices are not there. To make sure it was not just my site, I had them go to the kendo dataviz demos and those are not available either.

I have confirmed this is the case on my personal phone which is android 2.3.4.


Is anyone else experiencing this?
Joshua
Top achievements
Rank 1
 asked on 30 Apr 2012
8 answers
177 views
I'm trying to get the Kendo UI grid connected in my MVC3 app, but I'm not getting any data displaying. I think it should be simple, but I'm not seeing it. Here is my code:


View:

    @model List<pests.web.com.Models.Workitem>
    
    @{
        ViewBag.Title = "Worklist";
        ViewBag.CurrentPage = "Worklist";
    }
    
        <div id="grid"></div>
    
        <script type="text/javascript">
            $("#grid").kendoGrid({
                dataSource: {
                    type: "json",
                    transport: {
                        read: {
                            url: "Home/GetWorklist",
                            dataType: "json",
                            type: "POST",
                            contentType: "application/json; charset=utf-8",
                            data: {}
                        }
                    },
                    columns: [
                {
                    field: "PartNumber",
                    width: 90,
                    title: "Part Number"
                },
                {
                    field: "ProcurementCode",
                    width: 90,
                    title: "Procurement Code"
                },
                {
                    width: 100,
                    field: "Priority"
                },
                {
                    field: "Status"
                }
                ]
                }
            });
        </script>
    
    
    <script type="text/javascript" src="../../Scripts/people.js"></script>
    <script type="text/javascript" src="../../Scripts/kendo.web.min.js"></script>
    <script type="text/javascript" src="../../Scripts/console.js"></script>
    <link href="../../Styles/kendo.common.min.css" rel="stylesheet" />
    <link href="../../Styles/kendo.default.min.css" rel="stylesheet" />


Layout page:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>@ViewBag.Title</title>
        <link href="@Url.Content("~/Styles/Site.css")" rel="stylesheet" type="text/css" />
        <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    </head>
    
        <body>
    
            @RenderBody()
    
        </body>
    </html>


Controller code I'm trying to call from the view:
   
     public class HomeController : Controller
        {
            [HttpPost]
            public ActionResult GetWorklist()
            {
                List<Workitem> worklist = PestsLogic.GetWorklist();
                return View("Home", worklist);
            }
        }


GetWorklist() is returning a few items. They are simple object with a few properties. Here's it is:

    public class Workitem
    {
        public string PartNumber { get; set; }
        public string ProcurementCode { get; set; }
        public int Priority { get; set; }
        public string Status { get; set; }
    }


Is there anything obvious that I've got hooked up wrong? There are no error messages, just a blank page (with a title, though). 

hanks!
Jay
Top achievements
Rank 1
 answered on 30 Apr 2012
0 answers
266 views
Hi

dsEventsList = new kendo.data.DataSource({
        data: JSON.parse(localStorage.getItem("EventsJson")),
        filter: { field: "Events_ID", operator: "eq", value: g_Events_ID }
    });
     
    //Total Record --> 23
    alert(dsEventsList.options.data.length);

How can i get the total filtered record count? In above case it should be 1.


Thanks
Jaydeep
Jaydeep
Top achievements
Rank 1
 asked on 30 Apr 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?