Telerik Forums
Kendo UI for jQuery Forum
4 answers
1.4K+ 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
108 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
337 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
157 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
262 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
501 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
203 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
75 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
1 answer
82 views
Is there a possibility of achieving this kind of functionality on mobile using a list view inside a drawer? Example below.

http://demos.kendoui.com/mobile/splitview/index.html#/
Petyo
Telerik team
 answered on 07 Aug 2013
3 answers
173 views
Can I define my own range and labels in the Linear Gauge?

Controller:
public ActionResult LinearGauge()
{
List<gaugeSetting> gaugeModel = new List<gaugeSetting>();

gaugeModel.Add(new gaugeSetting { From = 1, To = 2, Color = "#000099", Label = "Requirements" });
gaugeModel.Add(new gaugeSetting { From = 2, To = 3, Color = "#009900", Label = "Design" });
gaugeModel.Add(new gaugeSetting { From = 3, To = 4, Color = "#ff0000", Label = "Development" });

return View(gaugeModel)
}

View:

@(Html.Kendo().LinearGauge()
.Name("gauge")
.Pointer(pointer => pointer
.Value(2)
.Shape(GaugeLinearPointerShape.Arrow)
)
.Scale(scale => scale
.Vertical(false)
.Labels(l =>
{
//Get the Labels from the Model
})
.MajorUnit(1)
.MinorUnit(1)
.Max(7)
.Ranges(ranges =>
{
//Get the Ranges from the Model
}
)
)
.HtmlAttributes(new { style = "width:500px;" })
)
Iliana Dyankova
Telerik team
 answered on 07 Aug 2013
Narrow your results
Selected tags
Tags
Grid
General Discussions
Charts
Data Source
Scheduler
DropDownList
TreeView
MVVM
Editor
Window
Date/Time Pickers
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)
SPA
Filter
Drawer (Mobile)
Drawing API
Globalization
Gauges
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
OrgChart
TextBox
Effects
Accessibility
ScrollView
PivotGridV2
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Collapsible
Localization
MultiViewCalendar
Touch
Breadcrumb
RadioButton
Stepper
Card
ExpansionPanel
Rating
RadioGroup
Badge
Captcha
Heatmap
AppBar
Loader
Security
Popover
DockManager
FloatingActionButton
TaskBoard
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
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?