Telerik Forums
Kendo UI for jQuery Forum
1 answer
169 views
Our requirements for a batch grid include showing the textboxes in every grid cell all of the time, not just when a user tabs into a specific cell. I've tried dummying up my own styles to no avail. Is there a more elegant way like rowtemplates where we can just show the textbox in every cell all the time? 

I have attached a picture as an example of what we are looking for.
Atanas Korchev
Telerik team
 answered on 24 Feb 2014
1 answer
564 views


I find the kendoui chart has two methods :refersh method and redraw method,what is the difference?I think both of them is to draw the chart again. But if the chart is binding from remote data according to ajax,the request will not fire again.

$("#Chart").data("kendoChart").redraw();
$("#Chart").data("kendoChart").refresh();
I have a situation,at first I have a page which is to draw a chart with autobind from remote data,Now I want to add a line in this chart,it means I have to change the datasource( add the line data to the datasource),Which method should I use best?I find use refresh or redraw method are both OK.
T. Tsonev
Telerik team
 answered on 24 Feb 2014
1 answer
160 views
hi there,
I've been trying to pass a model to a partial view that is accessed by a kendo tabstrip. but I cant get it to work. is this even possible?

here is my view

@(Html.Kendo().TabStrip()
        .Name("tabsStrip")
        .Items(items =>
        {
            items.Add()
                .Encoded(false)
                .Text("Computer <span class='k-state-active'></span>")
                .Content(Html.Partial("_Computer", ComputerModel).ToHtmlString())  -> is there a way to pass the computer model to the partial view?                
               .Selected(true);
            items.Add()
                .Encoded(false)
                .Text("User <span></span>")
                .Content(Html.Partial("_User").ToHtmlString());      
        }))
Daniel
Telerik team
 answered on 24 Feb 2014
3 answers
1.4K+ views
Hi

I can add buttons to a command column in a grid and trigger click events fine. What I want to do now is add a command button to my row template

In the row template I have

#if (IsMe) {# <a class="k-button k-grid-delete">Delete</a> #} #

And then in my document ready function I have

$("#grid").on("click", ".k-grid-delete", function () {
              alert("click delete command");
          });

This works and the message appears whenever I click on one of the delete buttons, however what I want to do when the user clicks is make an ajax call that deletes the item from its ID property....

When using a command column I would do something like

function delete(e) {
          e.preventDefault();
 
          var dataItem = this.dataItem($(e.currentTarget).closest("tr"));

i could then use dataItem.ID to reference the ID of the relevant row.

How can I do this for the button I have created above in the row template?

Many thanks


Huw Lloyd
Top achievements
Rank 1
 answered on 24 Feb 2014
1 answer
436 views
Hello,

I have a simple datasource with the following schema:
schema: {
                data: "Items",
                total: "Count",
                model: {
                    Id: { type: "number" },
                    Name: { type: "string" },
                }
            }


I use the datasource for a dropdown.
When i select a value and programatically check the $("#CountyId").data('kendoDropDownList').value() I get the correct id (an int value)

Because I use the dropdown in a cascading scenario i need to transform the Id field on the model in a CountyId.
So after reading the documentation i decided to transform my schema into:

schema: {
                data: "Items",
                total: "Count",
                model: {
                    CountyId: { type: "number", from: 'Id' },
                    Name: { type: "string" },
                }
            }


Yet, now when I check the selected value: $("#CountyId").data('kendoDropDownList').value() I get an [object Object]

Please tell me what I am doing wrong.

Thank you


Alexander Popov
Telerik team
 answered on 24 Feb 2014
1 answer
111 views
Hi,

I wondered if it possible to create a 100% stacked columns? Like the image.

Regards.
Iliana Dyankova
Telerik team
 answered on 24 Feb 2014
3 answers
155 views
Hi there

I want my area chart to have a solid line following the data points - so it LOOKS like both a line chart and area chart plotting the same data, except I only want to use one data series and style it up.   Is it possible?

See attached screenshot - I'm struggling to put it into words!

Bonus question if I may - is it possible to add the second border to the chart as in the image?  I can control the plotArea main border but can't see how to add a second border.
Michaël
Top achievements
Rank 1
 answered on 23 Feb 2014
0 answers
137 views
I have a couple of issues when I place kendo widgets inside of a partial view.

1. If I add events to my grid, the partial view will fail to load, however without grid events enabled, the partial view will load just fine.  If I place the EXACT SAME grid in a regular view WITH events, the page loads/populates without issue.  Here is the grid:

@(Html.Kendo().Grid<MyApp.Models.MyModel>()
.Name("MyGrid")
.Columns(columns =>
{
columns.Bound(c => c.Id);
columns.Bound(c => c.Name);
columns.Bound(c => c.Description);
columns.Bound(c => c.RootSite);
})
.Pageable()
.Sortable()
.Filterable()
.Selectable(selectable => selectable
.Mode(GridSelectionMode.Single)
.Type(GridSelectionType.Row))
.Events(events => events.Change("onChange"))
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(20)
.Model(model => model.Id(c => c.Id))
.Read(read => read.Action("Read", "MyController")))
)

2. Using the kendo splitter example, if I place the splitter from the example in a partial view, all panels are collapsed, even if Collapsible(false) is added to the slider.  As with my grid (see above), if I place the splitter example in a regular view, it works fine.

I really need some help on this issue, as it is preventing me from moving forward with my project. 

Any help will be very much appreciated!

Barry Burton
Top achievements
Rank 1
 asked on 22 Feb 2014
14 answers
1.7K+ views
I have a check box template made that looks something like this
<script type="text/x-kendo-template" id="CheckboxTemplate">
   <input type="checkbox" name="#= text #" value="#= value #" ${selected ?"checked" : "" }/>
   <span> #= text # </span>
</script>

I then have a dropdownlist which uses that template which looks like this, the kendoCustomDropDownList is something I made so that the drop down would not close when checking things in the dropdownlist.
var data = [
      { text: "test1", value: "1", selected: false },
      { text: "test2", value: "2", selected: false },
      { text: "test3", value: "3", selected: true },
      { text: "test4", value: "4", selected: false }
      ];
                 
       $("#dropDownList").kendoCustomDropDownList({
           dataTextField: "text",
           dataValueField: "value",
           template: $("#scriptTemplate").html(),
           dataSource: data,
           placeholder: "Select..."
       });
 
       var ddl = $("#dropDownList").data("kendoCustomDropDownList");

What I now need to do is make it so that when more than one checkbox is checked the text that displays in the dropdown should be multiple... . I'm having trouble accessing the selected field in the data object. I'm not sure how to approach this any help would be appreciated.
David
Top achievements
Rank 1
 answered on 22 Feb 2014
1 answer
248 views
Hi,

I am new to KENDO UI controls . I want to group two columns next to each other in kendo UI grid with a outline border and a background colour to those two grid columns so to differentiate two columns from other columns to make it as distinguishable from other columns.

$("#divPhaseGrid").kendoGrid({

            filterable: true,

             resizable: true,
            pageable: true
            , sortable: true
            , silectable: true
            , selectable: true
            , dataSource: { data: data, pageSize: 10 },
            columns: [
            { field: "PhaseTypeName", title: "Phase" ,width: "65px" }
            , { field: "PROJECTMANAGER", title: "Owner",width: "65px" }
            , { field: "PhaseStartDate", title: " Phase Start Date" ,width: "100px"}
            , { field: "PhaseStartDateActual", title: "Phase Actual Start Date" ,width: "100px"}
            , { field: "StatusName", title: "Status",width: "110px", attributes: { style: "background-color:#=StatusColorHEX#;" } }
            , { title: "", template: ' <a class="k-button" onclick="openPhaseform(#=PhaseID#);" style="min-width:25px;" ><span class="k-icon k-i-pencil"></span></a> ', width: "50px" }
              ]
           
            });

For Example- I  want to display some outline borders and background colours to PhaseStartdate and PhaseStartDateAtual columns to distinguish from other columns in the grid.

Please provide some pointers or sample links to achieve this.

Regards,
Subh
Iliana Dyankova
Telerik team
 answered on 21 Feb 2014
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
Dialog
Chat
DateRangePicker
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
TextBox
OrgChart
Accessibility
Effects
PivotGridV2
ScrollView
Switch
BulletChart
Licensing
QRCode
ResponsivePanel
TextArea
Wizard
CheckBoxGroup
Localization
Barcode
Breadcrumb
Collapsible
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
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?