Telerik Forums
Kendo UI for jQuery Forum
1 answer
181 views
If I have the following treeview template:-

<script id="treeview-template" type="text/kendo-ui-template">
                                # var id = item.id; #
                                # var name = item.text; #                                                 
                                # var parentId = item.parentId; # 
                               
                                 #= item.parentid #
                                 # if (item.parentid == null) { #
                                     test
                                 # } #

                               
                                <span categoryId="#= id #" class="#= parentId #">#= name #</span>
                                <input type="hidden" name="#= name #" value="#= id #" />
                        </script>

Any way for me to disable the nodes where the parentId is null?

I tried doing this without success:-
  # if (item.parentid == null) { #
  <span categoryId="#= id #" class="k-denied">#= name #</span>
# } #
 
Thanks
Gregor

Iliana Dyankova
Telerik team
 answered on 31 May 2012
0 answers
164 views
I have used custom tags like aui:column etc in template and it works like a charm. However tags like 

<liferay-ui:ratings-score score="5"></liferay-ui:ratings-score> does not work. It prints the output of this custom tag right on the top of the page.

Actually it prints the output of the above mentioned custom tag in the template as well as on the left top corner of the page
Any help ?

Muhammed Shakir
Top achievements
Rank 2
 asked on 31 May 2012
1 answer
512 views
I would like to sort my datasource by date.  However, whenever I change the field type from "string" to "date" I get "null" in place of the dates.  The format of the dates is:  dd-mm-yy hh:mm

 Can anyone see what I am doing wrong?

var ticketDataSource = new kendo.data.DataSource({
      transport: {
          read: "/support/data",
          dataType: "json",
          create: {
              url:  function() {
                  if (support_create_type == 'new'){
                      var url = "/support/newticketpost/";
                  } else if (support_create_type == 'reply'){
                    var url = "/support/reply/" + support_id + "/";
                  }                          
                   
                  return url;
              },
              type: "POST",
              dataType: "json"                   
          },
          update: {
              url:  function() {
                  if (support_update_type == 'markasread'){
                    var url = "/support/markasread/" + support_id + "/";
                  } else if (support_update_type == 'close'){
                     var url = "/support/close/" + support_id + "/" + support_ticket_closed; 
                  }
                  return url;
              },
              type: "POST",
              dataType: "json"
          },               
      },
     error: function(e) {
        alert(e.responseText);
     },
     sort: { field: "DateCreated", dir: "asc" },
   
      schema: {
        model: {
            id: "ThreadID",
            fields: {
                DateCreated:  { type: "date" },
                Subject:  { type: "string" },
                Closed:  { type: "string" }                    
               }
           }
       }
   });


Many thanks,
Lee
Top achievements
Rank 1
 answered on 31 May 2012
1 answer
5.4K+ views
I need to get the row data (firstname, lastname) from the current row from a custom command.  I need to create a vcard from the custom command and the first name, last name will be used in the back end to dynamically generate the vcard but I have been trying to extract the current row data and have so far been unsuccessful.  Here's my code....
$(function() {
    var grid = $("#grid").kendoGrid({
        dataSource : {
            pageSize:10,
            sort : {
                field : "firstname",
                dir : "asc"
            },
            transport : {
                read : "data/getemployees.php"
            },
            schema : {
                data : "data",
                total: "data.length"
            },
        },
        pageable: true,
        columns : [{
            field : "firstname",
            title : "First Name"
        }, {
            field : "lastname",
            title : "Last Name"
        }, {
            field : "cellphone",
            title : "Cell Phone"
        }, {
            field : "deskphone",
            title : "Desk Phone"
        }, {
            field : "emailaddress",
            title : "Email Address"
        },{
            command:{text:"vCard", className:"vCardButton"}, title:"vCard", width:"110px"
        }],
        sortable:true,
    });
       $("#grid").delegate(".vCardButton", "click", function(e) {
                       
                        var grid = $("#grid").data("kendoGrid");
                       
                        var myVar = grid.dataItem(grid.tbody.find(">tr"));
                       
                    });
});

any suggestions?
Alexander Valchev
Telerik team
 answered on 31 May 2012
0 answers
139 views
Hi Kendo Team,

I've found a couple bugs with the Kendo Grid when navigatable is set to true. First, you cannot multiselect rows using the keyboard. I would expect shift+arrows or ctl+arrows would select multiple rows. However, this is not the case. Second, if you select a row in the Kendo Grid and then you navigate to that grid with the keyboard and move the arrows keys, the selection of the currently selected row does not change but instead other rows are selected IN ADDITION to the one selected with the mouse.

 Is there a known work around for these? If not, are these things you guys are aware of and planning on fixing?
Jason
Top achievements
Rank 1
 asked on 31 May 2012
14 answers
896 views
I have been unable to connect the Kendo Grid to my ASP.NET JSON Web Service as no data is appearing. Can you tell me how to fix the Kendo Grid so it consumes the web service.  Thanks

    $(document).ready(function() {
                    $("#grid").kendoGrid({
         dataSource: {
             type: "jsonp",
          serverPaging: true,
          serverSorting: true,
          pageSize: 13,
          transport: {
           read: "../../emrwebservices/service.asmx/getSampleSQLDataKendo"}
           },
             schema: {
                 data: 'items',
                 total : function(data) {return data.totalCount;
              }
         },
      height: 250,
      scrollable: true,
      sortable: true,
      pageable: true,
      columns: [
                            { field: "userID", title: "User ID" },
                            { field: "fullName", title: "Name" },
                            { field: "userName", title: "User Name" },
                            { field: "eMail" },
                            { field: "isActive"}
                        ]
                    });
                });

Web Service data is below.  Also viewable at http://www.speechtodocs.com/emrwebservices/service.asmx

{"totalCount":80,"items":[{"userID":"227","fullName":"Dr. Hank Aaron","userName":"HankAaron","eMail":"melissa@dmmt.com","isActive":"True"},{"userID":"197","fullName":"Dr. Jeffrey Aronoff","userName":"4690","eMail":"melissa@dmmt.com","isActive":"True"},{"userID":"189","fullName":"Dr. Sunil Asnani","userName":"4749","eMail":"melissa@dmmt.com","isActive":"True"},{"userID":"165","fullName":"Dr. Kalman etc..................
Engifaar
Top achievements
Rank 1
 answered on 31 May 2012
2 answers
73 views
I just registered on kendo and downloaded the trial of kendoui.

On same page, the kendoui test studio download was also suggested.

When i tried that, it took me to login again.

But the account login of kendoui did not work there.

Would it not be nice that kendoui account login is same as telerik  and vice versa ?
Prashant
Top achievements
Rank 1
 answered on 31 May 2012
0 answers
148 views
Hi Team,

I am using kendo UI grid component, I fetched data and in grid component but now i need to refresh grid data automatically after given interval of time. Is there any method or technique available in Kendo Framework for grid.?
Could you please help me for this?


Thanks,
Ankush.
Ankush
Top achievements
Rank 1
 asked on 31 May 2012
0 answers
200 views
Is it possible to expand the treeview when you drag a node onto a parent node which isnt expanded?

Thanks
Gregor
Gregor
Top achievements
Rank 1
 asked on 31 May 2012
2 answers
223 views
hi

i´ve got two grids the loads as details on a main grid.
on my desktop everything works well, but on my android tablet (moto xoom, 10", android 4) if i click on one of those tabs, the tab content doesnt appear and from then, no tab is working anymore (not even clickable anymore).
tested with different browser and the same result.

my template
<script type="text/x-kendo-template" id="template">
<div class="tabstrip">
<ul>
<li>
Adressen
</li>
<li class="k-state-active">
Kontakte
</li>
</ul>
<div>
<div class="addresses"></div>
</div>
<div class="contacts"></div>
</div>
</div>
</script>

my detailinit
function onDetailInit(e) {
 
    var detailRow = e.detailRow;
    detailRow.find(".tabstrip").kendoTabStrip({
        animation: {open: {effects: "fadeIn"}}
    });
 
    detailRow.find(".addresses").kendoGrid({
        dataSource: DataSource.get("address"),
        serverPaging: true,
        serverSorting: true,
        serverFiltering: true,
        scrollable: false,
        sortable: true,
        pageable: true,
        columns: [
            {field: "street_address", title:"Anschrift"},
            {field: "zip", title: "PLZ"},
            {field: "city", title: "Ort"}
        ]
    });
    detailRow.find(".addresses").data("kendoGrid").dataSource.filter( [{ field: "id", operator: "eq", value: e.data.id }] )
 
 
    detailRow.find(".contacts").kendoGrid({
        dataSource: DataSource.get("contact"),
        serverPaging: true,
        serverSorting: true,
        serverFiltering: true,
        scrollable: false,
        sortable: true,
        pageable: true,
        columns: [
            {field: "surname", title:"Nachname"},
            {field: "prename", title: "Vorname"},
            {field: "phone", title: "Telefon"},
            {field: "mail", title: "Email"},
            {field: "birthday", title: "Geburtsdatum", template: '#= kendo.toString(birthday, "dd.MM.yyyy")#'}
        ]
    });
    detailRow.find(".contacts").data("kendoGrid").dataSource.filter( [{ field: "client_id", operator: "eq", value: e.data.id }] )
}

attached is a screenshot of the "lost tabs" on my xoom.
i hope somebody can help me out.

thx in advance
Daniel
Top achievements
Rank 1
 answered on 31 May 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
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?