Telerik Forums
Kendo UI for jQuery Forum
1 answer
630 views
This piece of javascript does not work. tabStrip is always undefined!

 


var tabStrip = $("#tabstrip").data("kendoTabStrip");


Here are my References
    <script src="@Url.Content("~/Scripts/KendoScripts/jquery.min.js")" type="text/javascript"></script>
  <script src="@Url.Content("~/Scripts/KendoScripts/kendo.web.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/KendoScripts/kendo.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
Ryan Lege
Top achievements
Rank 1
 answered on 08 Aug 2012
7 answers
381 views
I downloaded and updated my project with the new kendoui.mobile.2012.2.710.commercial files.  However, now I'm seeing some issues.

Using the data-page attribute is no longer working.  Did that property go away?  I see it being used on the demo ScrollView page (data-page="2") but it's defaulting to the first page.  ScrollTo also seems to not be working now in my project...

Also, I'm getting an error now when calling showLoading().  When I launch the new example file (kendoui.mobile.2012.2.710.commercial/examples/mobile/application/loadingpopup.html) and click the button, no loading image pops up.  

Please let me know if I'm doing something wrong.  Thanks.


Alexander Valchev
Telerik team
 answered on 08 Aug 2012
0 answers
101 views
<div id="grid"></div>


<script>
    $
(document).ready(function () {
        dataSource
= new kendo.data.DataSource({
            transport
: {
                read
: {
                    url
: '@Url.Action("GetCityList", "City")',
                    dataType
: "json",
                    type
: "GET",
                    contentType
: "application/json; charset=utf-8"
               
},
                create
: {
                url
: '@Url.Action("create", "City")',
                type
: "Post"
           
},
                parameterMap
: function (data, operation) {
                   
if (operation != "read") {
                       
var result = {};

                       
for (var i = 0; i < data.models.length; i++) {
                           
var ciudad = data.models[i];

                           
for (var member in ciudad) {
                                result
["ciudades[" + i + "]." + member] =                        ciudad[member];
                           
}
                       
}
                       
return result;
                   
}
               
}


           
},
            batch
: true,
            pageSize
: 30,
            schema
: {
                model
: {
                    id
: "id",
                    fields
: {
                        id
: { editable: false, nullable: true },
                        descripcion
: { validation: { required: true} },
                       
DepartamentName: { field: "DepartamentName" },
                   
}
               
}
           
}
       
});

        $
("#grid").kendoGrid({
            dataSource
: dataSource,
            navigatable
: true,
            pageable
: true,
            height
: 400,
            toolbar
: ["create", "save", "cancel"],
            columns
: [
               
"descripcion",
           
{ field: "DepartamentName", title: "Name Departament", editor: categoryDropDownEditor, width: 150 },
               
{ command: "destroy", title: "&nbsp;", width: 110}],
            editable
: true
       
});
   
});

</script>

<script>

    function categoryDropDownEditor
(container, options) {

        $
('<input data-text-field="name" data-value-field="name"  data-bind="value:' + options.field + '"/>')
                       
.appendTo(container)
                       
.kendoDropDownList({
                            autoBind
: false,
                            dataSource
: {
                                type
: "json",
                                transport
: {
                                    read
: {
                                        url
: '@Url.Action("GetDepartament", "city")
                                           
}
                               
}
                           
}
                       
});
   
}
           
</script>

it show me ok but my problem is that when It hit to my action create it give me the name of the departament not the id

and when i change my function this part to this

 $('<input data-text-field="name" data-value-field="name"  data-bind="value:' + options.field + '"/>')

 $
('<input data-text-field="name" data-value-field="id"  data-bind="value:' + options.field + '"/>')

with it show me fine in my action I get the id but in my grid when I choose in my dropdown a departament in the grid it show me the id (so is no the behavior I want)

how can I do to work this? I guees is in the bind part..

diego
Top achievements
Rank 1
 asked on 08 Aug 2012
10 answers
1.5K+ views
Hi,
I have this error for days, i'm find out how to fix this in this forum and still does not get it fix.
I have two grid in same page, each bind with datasouce and have a command button in the toolbar for add a record.

When i click at 'Add fee/cost' it work fine but then when i click at 'Add Loan' a error occured.
I dont know how to fix this, any one please me.

try
http://jsfiddle.net/mBYxS/7/ 
Devon
Top achievements
Rank 1
 answered on 08 Aug 2012
3 answers
509 views
In love with Kendo UI but not with refresh which does not fire.
We tried different methods without success
Inside an ascx UserControl this is our code:

    <div style="width:1100px;margin:40px 0 100px 0;text-align:center">
        <input id="comboboxWarrantyClients" style="width:200px" />
        <br /><br />
        <div id="button">Refresh the autocomplete !</div>
    </div>
  <script type="text/javascript">
    var kendoAutoCompleteWC = null;
    $(document).ready(function () {
      kendoAutoCompleteWC = $("#comboboxWarrantyClients").kendoAutoComplete({
        dataTextField: "FullName",
        dataValueField: "ID",
        dataSource: [{"ID":1,"FullName":"John"}],
        filter: "contains",
        placeholder: "Select"
      });
    });
    $('#button').click(function () {
      kendoAutoCompleteWC.dataSource = [{"ID":1,"FullName":"John"},{"ID":2,"FullName":"Nathalie"}];
      kendoAutoCompleteWC.refresh();
    });

Can someone has the trick to make it work, please ?
In this case, we get an error "kendoAutoCompleteWC.refresh(); is not a function..."
Thanks so much by advance...
Jean Yves




John DeVight
Top achievements
Rank 1
 answered on 08 Aug 2012
0 answers
92 views
Hello,

I have downloaded a trial version on the latest kendo mobile release and found out that my

background-color: transparent;
background: rgba(0,0,0,0.4);

 is not working. It does work on my computer browser but not on ipad browsers.

Can anyone help? badly needed. thanks.
Ace
Top achievements
Rank 1
 asked on 08 Aug 2012
1 answer
194 views
I am putting together a mobile app and it seems the display has about a 1 to 1.5 second delay in the styling. Everything seems to have to snap in to place.

When you first load a page containing a few views the browser/mobile browser will display some HTML controls before they are styled.  It looks very strange.  Is there a way to prevent displaying anything on the page until everything has been styled? Or maybe display a loading animation until everything is styled in the background and then show the page?

I have experienced this same type of behavior using the Telerik ASP.Net controls for Ajax with the RadFormDecorator.


Iliana Dyankova
Telerik team
 answered on 08 Aug 2012
7 answers
304 views
I have a  Kendo Grid inside of a partial view, I can get the data that I need to, however when I page through the data it 1) Pages to a new page or 2) nothing shows even though my firebug shows the json that was passed back. Is it possible to page though a grid using a partial view in MVC? if so what do I need to do to make that happen?
Rosen
Telerik team
 answered on 08 Aug 2012
5 answers
241 views
Hi Kendo Team,

Well, after having built out a pretty good set of functionality with jQuery templates and the .Net rendering engine (http://nuget.org/packages/jquery-tmpl.net), I'm now looking for something that won't be pulled out from under my feet.  jQuery templates being cancelled is just bad, but it's great for Kendo!  

I and probably many others are looking to replace our jQuery template code since that project has been axed. 

My question though is... do you plan on offering a .Net rendering solution for your template framework?  It looks pretty similar to jQuery templates so it could even be possible to take the jQueryTmpl .net open source code renderer and to modify it?  If so, do you have a time frame for this?  For me, I'd love server-side rendering in .Net, php, and Ruby in that order of preference.

This has been pretty critical for us, because although the client-side is amazing, and as painful as it is to serve things up server-side we've build client-side, for SEO it's a huge issue still.
Atanas Korchev
Telerik team
 answered on 08 Aug 2012
1 answer
171 views
I have tried everything! I am doing a load on demand scenario. Every time it loads the results, every selection says UNDEFINED. Here is the code:


//HERE IS THE MODEL

    public class TscmisModel
    {
        public SelectList LoadOnDemandList { get; set; }
    }

//THIS IS A PARTIAL
@model USARAFSyncMVC.Areas.Event.Models.TscmisModel

@(Html.Kendo()
      .ComboBox()
      .HtmlAttributes(new { style = "width: 900px" })
      .Name("cbTscmis")
      .Filter(FilterType.StartsWith)
      .MinLength(3)
      .Suggest(true)
      .DataTextField("Text")
      .DataValueField("Value")
      .HighlightFirst(true)
      .BindTo(Model.LoadOnDemandList)
      .DataSource(source =>
      {
          source.Read(read =>
          {
              read.Action("_LoadTscmisData", "Event", new { area = "Event" });
          }).ServerFiltering(true);
      }))




//THIS IS THE SERVER METHOD
        public ActionResult _LoadTscmisData(string text)
        {
            TscmisModel model = new TscmisModel();
            if (!string.IsNullOrEmpty(text))
            {
                model.LoadOnDemandList = miscRepository.LoadTscmisData(text);
                return PartialView("TscmisPartial", model);
            }
            model.LoadOnDemandList = new SelectList(new List<SelectListItem>());
            return PartialView("TscmisPartial", model);
        }
Ryan Lege
Top achievements
Rank 1
 answered on 08 Aug 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
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
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
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?