Telerik Forums
Kendo UI for jQuery Forum
1 answer
394 views
Hello,
I've a quite-huge SL5 application that uses WCF services to retrieve data... I've been asked to create a subset of that project that uses kendo UI for web/mobile enviorment where SL5 cant be used.... I was wondering if all my BO and WCF services can be re-used...I think I'll use ASP.NET MVC4 with it's kendo ui package...thanks
Kiril Nikolov
Telerik team
 answered on 30 Jul 2013
1 answer
173 views
In our application we use treeviews on multiple places. We use an array as initial data.
treeview = new kendo.ui.TreeView(element, {
     dataSource: new kendo.data.HierarchicalDataSource({ data: [rootModel] })
});
Rather then using the transport / read and schema functionality we hook to the expand event and do our own async (ajax) requests. This was all fine in v2013.1.319 but since we updated to v2013.2.716 what happens is the following.

- The initial data is represented in the tree view, including expand icons when the node has children available.
- We click an expand icon to load new data
- A ajax request is sent to our back-end
- The expand icon disappears completely
- Ajax request completes
- Current children are removed and the loaded children are inserted into the loaded node.
- The collapse icon appears

This only happens the first time a node is expanded. When expanding a node that was expanded before the icon does not disappears.

Is this by design? Can we somehow prevent the expand icon from disappear?.

On a side note: Is it possible to set a loading icon programmatically (similar to the "Binding to remote data" demo) during the ajax request?
Dimo
Telerik team
 answered on 30 Jul 2013
5 answers
262 views
I am getting the following error when I enable drag and drop on the treeview:

Uncaught TypeError: Cannot read property 'nextSibling' of undefined

This happens when I try and drag an item in the tree.

I am using Google Chrome but have also observed the same behavior in Firefox.

Here's the code I'm using to create the treeview:

this.dataSource = new kendo.data.HierarchicalDataSource({
            schema: {
                model: { id : "id", hasChildren: true,  children: "layers" }
            }
        });
 
        // treeview for navigation]
        this._treeViewSelector = uiElement;
        $(uiElement).kendoTreeView({
            dragAndDrop: true,
            checkboxes: {
                checkChildren: true
            },
            dataSource: this.dataSource
        });
And then to add data to the model I am using:

this.dataSource.add({id: id, text: name, expanded: true, checked: true, children: []});

Thanks for the help!
Alex Gyoshev
Telerik team
 answered on 30 Jul 2013
1 answer
96 views
kendoui mobile version 2013.2.716, test on ipad mini with package with phonegap 2.9.0

(1)  listview 
<ul data-role="listview" data-type="group" id="itemListView" data-click="listViewClick" data-style="inset">
    <li><label class="km-listview-label"><textarea id=${idval} onfocus="clearArea(this);" style="width:100%;height: 100px;" maxlength="150">input answer</textarea></label></li>
    <li><label class="km-listview-label"><textarea id=${idval} onfocus="clearArea(this);" style="width:100%;height: 100px;" maxlength="150">input answer</textarea></label></li>
    <li><label class="km-listview-label"><textarea id=${idval} onfocus="clearArea(this);" style="width:100%;height: 100px;" maxlength="150">input answer</textarea></label></li>
   <li><label class="km-listview-label"><textarea id=${idval} onfocus="clearArea(this);" style="width:100%;height: 100px;" maxlength="150">input answer</textarea></label></li>
   <li><label class="km-listview-label"><textarea id=${idval} onfocus="clearArea(this);" style="width:100%;height: 100px;" maxlength="150">input answer</textarea></label></li>
   <li><label class="km-listview-label"><textarea id=${idval} onfocus="clearArea(this);" style="width:100%;height: 100px;" maxlength="150">input answer</textarea></label></li>
</ul>
(2) modelview
<div data-role="modalview" id="submitDialog" style="width: 40%; height: 13em;">
    <div data-role="header" class="navbarStyle">
        <div data-role="navbar"><h3>info</h3></div>
    </div>
    <div style="margin:.5em auto; text-align: center;font-size: 1.6em;" id="subcontent">submit ok</div>
    <div style="margin:0 auto; text-align: center;font-size: 1.3em; padding-top:0.5em;">
        <a data-click="closeSubmitDialog" type="button" data-role="button"
           style="width:8em;background-color:#06b375;color:#ffffff;">Enter</a>
    </div>
</div>
(3) javascript

function openSubmitDailog(msg){
    if(MYAPP.dialogOPEN==false){
        MYAPP.dialogOPEN=true;
        var modalView=$("#submitDialog").data("kendoMobileModalView");
        modalView.open();
        if(msg)
            $("#subcontent").html(msg);
    }
}
 
function closeSubmitDialog(){
    //setTimeout(function(){
        var modalView=$("#submitDialog").data("kendoMobileModalView");
        modalView.close();
        MYAPP.dialogOPEN=false;
        if(MYAPP.status==8){
            init();
        }
        else if(MYAPP.status==4){
            MYAPP.app.navigate("#loginpage");
        }
        //return;
    //},100);
 
}
process :
openSubmitDailog ----->  modelview popup in midled of  view ------> press "Enter" in modelview  -------->   closeSubmitDialog  ---------->  modelview  close 
----------->   the underlying widget in listview can receive tap event   when close modelview  


for example ,  when close modelview ,  textarea in listview can receive tap event ,so keyboard will be shown up!  I think this a bug in new version 

 
Petyo
Telerik team
 answered on 30 Jul 2013
2 answers
126 views
Hi guys,
I'm working with a Read/Update trasport on kendo grid.
On Update I'd like to pass just 1 param to my server handler.

here is my grid:
$("#userGrid").data("kendoGrid").setDataSource(new kendo.data.DataSource({
            //data: userList,
            transport: {
                read: {
                    url: MyAxitea_Config.baseURL + "Services/UserHandler.ashx/GetUserListByCurrentUser",
                    type: "POST"
                },
                update: {
                    url: MyAxitea_Config.baseURL + "Services/UserHandler.ashx/UpdateUserAuthById",
                    dataType: "json",
                    type: "POST"/*,
                    data: function (options) {
                        return {
                            id: options.IdUtente,
                            abilitato: options.Abilitato
                        }
                    }*/
                }
            },
            schema: {
                model: {
                    id: "IdUtente",
                    fields: {
                        Nome: { type: "string", editable: false },
                        Cognome: { type: "string", editable: false },
                        Alias: { type: "string", editable: false },
                        IdPrivilegio: { type: "int", editable: false },
                        Email: { type: "string", editable: false },
                        Abilitato: { type: "boolean" },
                        DataDisattivazione: { type: "date", editable: false },
                    }
                }
            },
            pageSize: 10,
            sort: { field: "IdPrivilegio", dir: "asc" }
        }));
as you can see, in this case, only 1 param is editable ("Abilitato")
To update this field I only need tha updated value and the id.

With the current code, serverside, I get the whole line and since the object is quite big (for example it also contains a encoded string of the user picture),
I need to reduce the transported data.
Is that possible?


side question:
is it possible to implement transport only for update? using as dataSource a local list? I tried but I got only errors!
Thanks
Fabio! 

Gaetano
Top achievements
Rank 1
 answered on 30 Jul 2013
1 answer
186 views
The slider is not being formatted properly in Google Chrome (using version 28.0.1500.72).  A very basic example is available at
http://www.truckdown.com/slider.html.  Works fine in all browsers but Google.  Interestingly, the exact same code in JS Bin or jsFiddle works fine but when loaded on its own page, it does not format properly (slider bar or ticks do not show).



Iliana Dyankova
Telerik team
 answered on 30 Jul 2013
1 answer
365 views
Given I have an input element that has already been converted to a color picker.  ( ex: $(input).kendoColorPicker(); )

  1. How do i get a reference to that color picker to say set the value?
  2. Destroy that color picker?

Thanks,
Jason

Holger
Top achievements
Rank 1
 answered on 30 Jul 2013
1 answer
120 views

Hi,  I'm trying to implement Scheduler in a MVC4 Razor project...
I follow the sample in your project, but i can't make appointment show.
Post some code:

public ActionResult Gantt()
{
    ViewBag.Message = "GANTT";
 
    return View(ganttService.GetGantt());
}
 
public virtual JsonResult Read([DataSourceRequest] DataSourceRequest request)
{
    return Json(ganttService.GetGantt());
}

 

public class GanttViewModel : ISchedulerEvent
   {
       public string Description
       {
           get;
           set;
       }
 
       public DateTime End
       {
           get;
           set;
       }
 
       public bool IsAllDay
       {
           get;
           set;
       }
 
       public string RecurrenceException
       {
           get;
           set;
       }
 
       public string RecurrenceRule
       {
           get;
           set;
       }
 
       public DateTime Start
       {
           get;
           set;
       }
 
       public string Title
       {
           get;
           set;
       }
   }

 

public virtual IQueryable<GanttViewModel> GetGantt()
{
    List<GanttViewModel> retValue = new List<GanttViewModel>();
 
    GanttViewModel md1 = new GanttViewModel {  Title = "TIT1", Description = "DES1", Start = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc), End = DateTime.SpecifyKind(DateTime.Now.AddHours(3), DateTimeKind.Utc) };
 
    retValue.Add(md1);
 
    return (retValue.AsQueryable());
}
@(Html.Kendo().Scheduler<
FinitenessEvo.Models.GanttViewModel>()
    .Name("scheduler")
    .Date(DateTime.Today)
    .StartTime(DateTime.Today)
    .Height(600)   
    .Timezone("Etc/UTC")
    .Views(views =>
    {
        views.DayView();
        views.WeekView(weekView => weekView.Selected(true));
        views.MonthView();
        views.AgendaView();
    })
        .DataSource(o => o.Model(m => { m.Id(f => f.Description); }).Read("Read","Home"))
)
Rosen
Telerik team
 answered on 30 Jul 2013
2 answers
220 views
I want to use event ( onSelect) to help me (expand or Collapse ) one node in treeview
pls hepl me do it.
my code here:
(
     function onSelect(e){
             if (this.dataItem(e.node) != null) {
                  this.expand(e.node);
                 this.collapse(e.node);
             }
        }
)
Butter
Top achievements
Rank 1
 answered on 30 Jul 2013
7 answers
171 views
I want to use durandal for my application/mvvm/routing model, so I want to avoid using new kendo.mobile.Application(). In my test SPA, I'm trying to create a tabstrip:
1.<div data-role="tabstrip">
2.    <a href="#home">Home</a>
3.    <a href="#details">Details</a>
4.</div>
However, not only does it not work in my durandal view, i can't even get it to work in my index.html, unless I call kendo.mobile.Application():

01.<body>
02.    <div data-role="view">
03.        <div data-role="tabstrip">
04.            <a href="#home">Home</a>
05.            <a href="#details">Details</a>
06.        </div>
07.    </div>
08. 
09.    <!-- snip -->
10. 
11.    <script>
12.        window.kendoMobileApplication = new kendo.mobile.Application();
13.    </script>
14.</body>

Is there a way I can "activate" the widgets without having to use the Application constructor/kendo views/etc.?




David
Top achievements
Rank 1
 answered on 29 Jul 2013
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
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?