Telerik Forums
Kendo UI for jQuery Forum
3 answers
1.8K+ views
I have a kendo window and button in my asp.net mvc 3 application view.

@(Html.Kendo().Window()
                  .Name("TestWindow")
                  .Width(420)
                  .Height(70)
                  .Draggable()
                  .Modal(true)
                  .HtmlAttributes(new { @class = "TestWindow" })
                  .Resizable()
                  .Title("Window1 ")
                  .Content(@<text>@Html.Partial("_PartialWindow", Model.Prop1) </text>)
                )

on click of a button I am opening the above declared window using below javascript code.

var windowobj = window.data("kendoWindow");
           windowobj.open();
           windowobj.center();
hen in the window i enter value in the textbox. the opened window has Ok button, on click of that button, we use java-script code.

windowobj.close();

Now again clicking on parent button I open the window and expect that the text box in window will have no values. but it retains those values. Is there a function like refresh which will clear the previous contents.

Thanks,
Santosh
Dimo
Telerik team
 answered on 17 Jun 2013
1 answer
373 views
I would like to show a custom html hint when dragging items from a treeview, but I cannot figure out how to get it to work.  Is there a way to use kendoDraggable with treeview to make this happen?
Alexander Valchev
Telerik team
 answered on 17 Jun 2013
8 answers
1.7K+ views
In one of my forms, I have 6 MultiSelect widgets of which all will eventually contain up to 5000 different options (30.000 in total per page), all loaded from a remote datasource.

I noticed that when the MultiSelect is first loaded, it loads all possible options, whether or not you have set a pagesize and set server filtering to true.

With only a few options, this is fine, but with as many as I have, you start to notice a performance issue in the browser (especially on older PC's). I've tried making changes to the server side, limiting the number of results, but then when I try to add options through javascript code, which are not in the current resultset, they will not be added.

For example:
  • a total of 20 results exist on the server
  • at any given time, only 10 results are provided to the client, filtered based on the users' input
  • on initialization, only the first 10 results are loaded
  • assume you have entered a letter 'x' into the multiselect, this returns 6 results which you can select
  • now you add a value through the multiselect.value() method, which has an id that is not in the list which contains an x; this will not work as the id does not exist in the current result set, even though it does exist on the server

I've attempted sending the selected values using the parameterMap() method and including those in the returned result set, which works to some extent. But then when I use the multiselect.value() method to add another selection, the change event is not triggered and thus I cannot retrieve the new result set from the server.

Is there another way to achieve what I am trying to do? Or is it possible to manually trigger the updating of the resultset? I've tried using .trigger('change') but that doesn't reload the resultset.

Hoping someone can help!

Georgi Krustev
Telerik team
 answered on 17 Jun 2013
7 answers
945 views
I noticed this issue on one of my auto complete sections.  If the autocomplete is close to the bottom of the browser window and the user is filtering, the drop-down list will show above the autocomplete field, which, is a nice feature.  However, if the user continues to type and narrow down the results, then the drop-down list hangs in the air.  (See attached image).  

This only happens if the filter area shows above the autocomplete and the user continues to narrow down the search.  If the filter area shows below the autocomplete and the user does the same thing this does not happen.  

This is more evident if you set choose to set the configuration of the drop-down list to a larger height. (height:500).  I was able to reproduce this in Chrome, FF, IE.  See attached image, to see it reproduced on the live KendoUI demo.

Any ideas on how to fix this or when I could expect a fix?

Thanks,

Zoran
Georgi Krustev
Telerik team
 answered on 17 Jun 2013
3 answers
347 views
Hi,

I have a line chart that displays the medications given to a patient. Each medication is represented by a single series. My model contains a list of array (server bind or datasource, doesn’t really matters), each array
represent a medication/series data.

I would like to have something like this:
Series 1 use List[0],  Series2 use List[1], Series 3 use List[2],…

I tried to do it but couldn’t find a way to define the value
member to bound to. I thought that maybe this (http://docs.kendoui.com/api/wrappers/aspnet-mvc/Kendo.Mvc.UI.Fluent/ChartSeriesFactory#methods-Line%28System.Collections.IEnumerable%29)
could work, but again, how do you define the value member?

My model is as follows:
MedicationChartEntry –a specific data point (represents a medication taken per day).
MedicationChartData.MedicationEntries – a list/array of MedicationChartEntry items (represents a specific medication given to a patient during a period).
ReDSChartData.Medications – a list/array of MedicationEntries (represent all the medications given to a patient)

public class MedicationChartEntry
{
    public string Name { get; set; }
    public int VerticalIndex { get; set; }
    public float? Dose { get; set; }
    public DateTime? Date { get; set; }
    public string DateFormatted { get; set; }
    public bool HasMarker { get; set; }
}
 
public class MedicationChartData
{
    public string MedicationName { get; set; }
    public List<MedicationChartEntry> MedicationEntries { get; set; }
}
 
public class ReDSChartData
{
    public float?[] Fluids { get; set; }
    public float?[] Weights { get; set; }
    public float?[] BNPs { get; set; }
    public string[] Dates { get; set; }
    public List<MedicationChartData> Medications { get; set; }
}

I am looking for something like this:

<div class="chart-wrapper">
@(Html.Kendo().Chart<SensibleMedical.EDC.Models.MedicationChartEntry>(Model.ReDSChartData.Medications)
    .Name("Medications")
    .Title("Medications")
    .Legend(legend => legend.Position(ChartLegendPosition.Bottom))
    .Series(series =>
    {
        series
            .Line(Model.ReDSChartData.Medications[0].MedicationEntries)
            .Color("#0098ee")
            .Axis("Dose");
 
        series
            .Line(Model.ReDSChartData.Medications[1].MedicationEntries)
            .Color("#0098ee")
            .Axis("Dose");
    })
    .CategoryAxis(axis => axis
        .Categories(model => model.DateFormatted)
        .Labels(labels => labels.Rotation(-45))
    )
    .ValueAxis(axis => axis
        .Numeric("Dose")
        .Color("#0098ee")
        .Min(0)
        .Max(70)
    )
)
</div>

Thank for the help,
Sharon.


Sharon Eden
Top achievements
Rank 1
 answered on 17 Jun 2013
9 answers
1.2K+ views
e.preventDefault() is not working in requeststart event of kendo grid.any help
Rosen
Telerik team
 answered on 17 Jun 2013
8 answers
389 views
I need to bind some events on the grid row and details view. I'm using an observable view model with some events registered and trying to bind them to the DOM using row template and details templates. So far no progress.  Here is the jsFiddle http://jsfiddle.net/amGmr/9/  . Is there any possibility to bind events withing the grid using MVVM ?
Rosen
Telerik team
 answered on 17 Jun 2013
1 answer
374 views
Hello,

Is it possible to have a DataSource read and combine from multiple json files?

Something like:
var ds1 = new kendo.data.DataSource({
    transport: {
        read: [
            { url: function() { return "data/Monday.json"; }, dataType: "json"},
            { url: function() { return "data/Tuesday.json"; }, dataType: "json"}
            ]
    },
If not, is there an alternative that allows combining DataSources together?

Alexander Valchev
Telerik team
 answered on 17 Jun 2013
4 answers
152 views
Hi, Can any one help me o resolve this small issue.

When I click on edit button the popup will appear. On the edit popup The field "CustomerID"  change to dropdownlist and it's being populated with the the other data source. But in some record the First Option become pre-selected   while in some other records the pre-selected  option is the one which is value of the field before editing. Please see the attach screen shoot for better understanding and code snippet. Looking forward to get a answer.

Ammar
Top achievements
Rank 1
 answered on 15 Jun 2013
3 answers
257 views
Hi,

I currently have a Parent Grid which houses another grid in the Detail View. Each Item in the Detail grid has a "Revenue" column which rolls up into the Parent Item's fields. I'm already using the "grid.dataSource.read()" method to rebind my grid any time a new item is added (shown below). However, I cannot seem to find how to fire this same method after an item in the Detail Grid is Destroyed.
//Update Revenue at Bid Grid
var UpdateRevenueGrid_Bid = function () {
    var grid = $("#RevenueBranchesAtBidGrid").data("kendoGrid");
    grid.dataSource.read();
};

Is it possible to rebind the Parent Grid immediately after Destroy is called on the Detail Grid?

NOTE: I'm running Kendo UI Q1 2013 with Razor

Thanks,
Landon

Landon
Top achievements
Rank 2
 answered on 14 Jun 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
Application
Map
Drag and Drop
ToolTip
Calendar
PivotGrid
ScrollView (Mobile)
Toolbar
TabStrip (Mobile)
Slider
Button (Mobile)
SPA
Filter
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
Chat
DateRangePicker
Dialog
Checkbox
Timeline
Drawer
DateInput
ProgressBar
MediaPlayer
ImageEditor
OrgChart
TextBox
Effects
Accessibility
PivotGridV2
ScrollView
BulletChart
Licensing
QRCode
ResponsivePanel
Switch
Wizard
CheckBoxGroup
TextArea
Barcode
Breadcrumb
Collapsible
Localization
MultiViewCalendar
Touch
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
StockChart
ContextMenu
TimePicker
DateTimePicker
RadialGauge
ArcGauge
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?