Telerik Forums
Kendo UI for jQuery Forum
2 answers
303 views
1. I need to add a scheduler.. but i dont want the timeline to be visible.. Is there a setting that would hide the time line but just show the scheduler events?
2. How  can I disable the user to add events to the scheduler and just added the same automatically by code..
Rosen
Telerik team
 answered on 08 Aug 2013
2 answers
142 views
Hi,
What is the best way to display a dynamic dataset in a kendo grid?

Dynamic as in the datatable within the dataset could have any number of columns, I simply want the grid to render them with paging.

I have tried to return the dataset from a WCF service like Dataset.GetXml(), but that doesnt seem to work.

Using the WCF data services with OData is not an option.  The stored procedure called is also not known on the server.

Thx
Petur Subev
Telerik team
 answered on 08 Aug 2013
4 answers
1.3K+ views
I am trying to move a grid (that's styling is perfect outside of a tab) into a tab to make the most of some limited space.

My problem is the scrollbar within the grid now appears and I don't know how to get rid of it.

My code looks like

<ul class="mainnav hover-list submenu hidden">
               <li id="liHome" class="first"><a href="/">Settings</a></li>
               <li id="liBusiness"><a href="/business">Product Setup</a>
               </li>
           </ul>
           <div id="tabstrip" style="height:400px">
               <ul>
                   <li class="k-state-active">Setup</li>
                   <li>Products</li>
               </ul>
               <div>
                  
                   <div class="weather">
                       <p>
                           Rainy weather in Paris.</p>
                   </div>
               </div>
               <div>
                  
                   <div class="weather">
                       <table id="grid" class="products">
                           <thead>
                               <tr>
                                   <th style="width: 40px">
                                       <input type="checkbox" class="select-all" />
                                   </th>
                                   <th data-field="name">
                                       Name
                                   </th>
                                   <th data-field="sku">
                                       Sku
                                   </th>
                                   <th data-field="tags">
                                       Tags
                                   </th>
                                   <th data-field="AssociatedReward">
                                       Product Assigned To
                                   </th>
                               </tr>
                           </thead>
                           <tbody>
                               <tr>
                                   <td colspan="5">
                                   </td>
                               </tr>
                           </tbody>
                       </table>
                      
                   </div>
               </div>
               <div class="clear">
               </div>
           </div>

I have tried to set the height of the grid to different heights however always the same result. 

Are grids supported within the tab control?

I have attached an image on the outputted html
Greg Lynne
Top achievements
Rank 1
 answered on 07 Aug 2013
3 answers
104 views
I have a mobile list view where I need to allow a user to select an item and/or decide if that item should be added to a favorites list. I can have the user select the item just find but I'm not sure how to allow them to add that item to their favorites. I have an image on one side of the list that the user should click on to add the favorite. How do I determine what part of the item the user clicked. I know it should be something like

click: function (e) {
     e.target ?
}
but I'm not sure how to use the target property. I tried using e.target.id but that didn't work and I haven't found any documentation at this point.
Kelly
Top achievements
Rank 1
 answered on 07 Aug 2013
2 answers
335 views
Hi,

Based on this example: http://jsbin.com/orabax/8/edit
How would I define a second valueaxis dynamically, if I dynamically added a second series to the chart through the datasource? And how would the series know which axis to reference.

I have a situation where I am adding new series to the chart when a user clicks its name in a series list. However, some of the series in the list have different unit values and needs to be displayed in the chart but on another valueaxis (multiaxis). How would I accomplish this dynamically. I can already update the chart dynamically with different series of the same unit value, which correctly places them on the same valueaxis. I do this by adding the new series to my datasource, then I update the chart like so

function createChart() {    
            $("#chart").kendoStockChart(
              // Create a deep copy of the configuration
              // for each Chart instance.
              $.extend(true, {}, config)
            );
            $("#chart").data("kendoStockChart").dataSource.data(myDataSource);
          }

Thanks,
Tonih
Tonih
Top achievements
Rank 1
 answered on 07 Aug 2013
0 answers
154 views
Hello,

i trying to connect the Lightswitch OData with telerik Datasource, but i have problem to find correct schema for full funcionality. I have problem with server paging and server filtering. Could you help me with finding correct schema?

OData version: 3.0
Number of items in database: 7

The used service is working for test purpouse

Sample lightswitch source code:

myapp.BrowseCodeListItems_MainFilter.ScreenContent_render = function (element, contentItem) {
    
    // Write code here.
  
    var gridTemplate = $('<div/>');
    gridTemplate.appendTo($(element));
    
    gridTemplate.kendoGrid({
        height: 430,
        theme: $(document).data("kendoSkin") || "default",
        dataSource: {
            type: "odata",
            transport: { read: { url: "http://213.220.198.32/SampleCodeList/webdata.svc/CodeListItems" } },

            pageSize: 5,
            serverPaging: true,
            serverFiltering: true,
            serverSorting: true,
            
            schema: {
                total: "count",
                data: "value",
                model: {
                    fields: {
                        Name: { type: "string" },
                    }
                }
            },
            
        },

        filterable: true,
        sortable: true,
        pageable: true,
        columns: [{ field: "Name", width: 90, title: "First Name" }]

    });

};

David
Top achievements
Rank 1
 asked on 07 Aug 2013
2 answers
258 views
The View HTML window has the width set to 400px via the .k-editor-dialog class which makes the internal content scroll.

http://demos.kendoui.com/web/editor/all-tools.html 
NYePiD
Top achievements
Rank 1
 answered on 07 Aug 2013
2 answers
491 views
If I resize page after initial load - editor window stays unchanged.

1. How do I cause editor to resize?
2. Why isn't this happening automatically? Does this mean that this control is half-baked and is not ready for production use?
NYePiD
Top achievements
Rank 1
 answered on 07 Aug 2013
2 answers
200 views
Hi,

I am trying to enable/disable date pickers depending on other widgets (checkboxes and numeric text boxes). When I try to call DatePicker.enable() with true or false as a parameter, i get an error because the DatePicker isn't ready yet. Seems like Kendo widgets aren't ready until  $(document).ready too. Are there any events or something that would tell me when the date picker is ready to be manipulated ? For now I am using a setTimeout which feels really wrong.

Here is a sample of my code.

1.$(document).ready(function () {
2.        ChangeDatePickersState();
3.    });
01.function ChangeDatePickersState() {
02.    var input = $('#MyCheckbox:checked')
03.    var bool = input.length != 0 ? true : false;
04.    EnableDatePickerForCheckbox('MyDatePicker', bool);

01.function EnableDatePickerForCheckbox(inputName, inputValue) {
02.    var datePicker = $('#' + inputName).data("kendoDatePicker");
03.    if (inputValue == true) {
04.        datePicker.enable(true);
05.    }
06.    else {
07.        datePicker.enable(false);
08.        datePicker.value(null);
09.    }
10.}

I thank you in advance.
Simon
Top achievements
Rank 1
 answered on 07 Aug 2013
1 answer
72 views
Hi 

Looking at the Kendo UI web page it says that the controls are supported on Android 2.2.x+.

I have a Galaxy Tab with Android 2.3.5 and when trying to use the Editor it does not work.  When you click in the text area nothing happens.  It does not get focus and put the cursor in the text area.

Has anyone experienced this and/or know how to fix it?

Thanks
Atanas Korchev
Telerik team
 answered on 07 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?