Telerik Forums
Kendo UI for jQuery Forum
2 answers
290 views
Hi,

 i would like to create and add a custom view to the scheduler, the view should display 14 days instead of 7 as the "week" view do .
I am quite new in Kendo UI

Thanks in advance,

Patrick
Patrick
Top achievements
Rank 1
 answered on 04 Apr 2014
2 answers
256 views
Hi,

 i would like to create and add a custom view to the
scheduler, the view should display 14 days instead of 7 as the "week"
view do .


Thanks in advance,

Patrick
Patrick
Top achievements
Rank 1
 answered on 04 Apr 2014
4 answers
662 views
I have several grids that I use to maintain records in tables. Several of these have a foreign key where I use a DropDownList to allow the user to select a name from the list rather than an ID. I have gotten all of this working great by using your examples. I basically have a UIHint on my property that specifies the partial view to use when editing/adding and item and I have partial views defined.

Like I said, everything is working great if I follow your examples and bind the DropDownLists to a collection in ViewData by using the .BindTo property on the DDL. Now I am trying to get away from using ViewData and I changed it to bind by using DataSource.Read and passing a controller and action but now there are no items in the list when I go to edit. The controller method is getting hit and results are being returned, it just never looks like anything actually gets loaded into the dropdown.

Here is my partial view with the DropDown:

@(
 Html.Kendo().DropDownListFor(m => m) 
    .Name("Department")
    .DataSource(source =>
    {
        source.Read(read =>
        {
            read.Action("GetDepartments", "DepartmentMaintenance");
        });
    })
    .DataValueField("DepartmentId")
    .DataTextField("DepartmentName")
)

And here is my controller method:

//
// GET: /DepartmentMaintenance/GetDepartments
public ActionResult GetDepartments([DataSourceRequest]
                                DataSourceRequest request)
{
    var bll = new CatalogMaintenanceBll();
    var departments = bll.GetDepartmentList(false);
 
    return Json(departments.ToDataSourceResult(request));
}

It is making it into the controller method and departments does have items in it.

Can anyone see anything obviously wrong or know of anything that might cause this behavior?

Thank you!






Cool Breeze
Top achievements
Rank 1
 answered on 04 Apr 2014
1 answer
253 views
Hi,

I have incorporated several custom styles similar to http://demos.telerik.com/kendo-ui/web/editor/styles.html, but the problem is that style continues when the user hits the enter key to start a new line.  The editor inserts a <p> tag with a <span style="mystyle"> from currently selected style.   This can be seen in the demo above by going to the end of the content, adding a new line of text, selecting a style, and then hitting enter. The only way to "get out" of the style is to go into html view, which I cannot expect my users to do.  

In my experience, the best way to use the styles (formatting) option in the editor is to highlight the text and choose the style.  After that, the style should no longer apply. Is it possible to tell the editor to stop using a style when the enter key is pressed?  Otherwise, would I be able to add a snippet to clear all formatting?

Thank you,
David A.
Kiril Nikolov
Telerik team
 answered on 04 Apr 2014
3 answers
101 views
Hello,

The Notifications Templates demo creates blank notifications for the Silver, Uniform and Metro themes. The problem is related to the text color.

Regards,
Holger
Dimo
Telerik team
 answered on 04 Apr 2014
1 answer
1.0K+ views
Hi I am very new to this and need help in kendoDropDownList
I am using kendoDropDownList and as soon as user selects the dropdown item - i need to postback to Controller action method with the appropriate value
ex: if user selects "Test 1", i need to send to controller "4" - how do i do it?
here is my code

        $(document).ready(function () {
            var data = [
                { text: "ALL", value: "-1" },
                { text: "Test 1", value: "4" },
                { text: "Test 2", value: "32" }
            ];

            //var selectedValue = $("#assayTypeIDIndex").val();
            $("#ddlAssayType").kendoDropDownList({                
                dataTextField: "text",
                dataValueField: "value",
                dataSource: data,                                
                ignoreCase: false,            
                select: onSelect,
                index: 0 // another issue is I cannot set the selectedValue (defined above) here????? if i do it this wouldn't work - only numeric hardcoded value (0 or 1 or 2) will work
            });           

            function onSelect(e) {
                var atIdx = e.item.index();
                var atValue = this.dataItem(e.item.index()).value;                   
                $('#assayTypeIDIndex').val(atIdx);                
                $("#assayTypeIDFilter").val(atValue);
                $("#assayTypeIDSearch").val(atValue);
                $(this).closest('form').submit();
            }
thanks in adv...
Alexander Popov
Telerik team
 answered on 04 Apr 2014
1 answer
68 views
Dear friends,

I´am so happy with phonegap and Kendo UI Mobile.

But i have some problem that i have not found solution from some days ago.

When i insert/embeb some html5 object like a <iframe> <object> <video> ( i´am talking in this moment on a IOS system ) the scroll fails because the element i can put it without scroll, but then all the rest of the window elements scroll ( header and footer ).

I need, evidently, to have all static without scroll , or in some case, only scroll a normal content of the div.

This issue makes imposible open a PDF into my content area, open a video into my content area, or simply open a remote URL on my content area, because always the scroll fails scrolling the header and footer and making bad the app.

Some ideas?

Some code example of my div where i´am trying to insert content:

<div data-role="view" id="2" data-layout="tabstrip-layout">
        <div class="prueba">
        <iframe></frame>
       <video></video>
      <object></object>
        </div>

Regards
Kiril Nikolov
Telerik team
 answered on 04 Apr 2014
13 answers
2.0K+ views
Is there a way to highlight the selected menu item, as in the MVC menu?

Thanks in advance
Georgi Krustev
Telerik team
 answered on 04 Apr 2014
1 answer
382 views
I wanted to ask if it was possible to cause a widget to sort by nested objects' properties. For example, if I had  a data source like the one below, could I sort the data source by parent.name? 

var data = [
    { student: { name: "Peter" }, 
      parent: { name: "Sally"} 
    },
    { student: { name: "Steven" }, 
      parent: { name: "Logan"} 
    },
    { student: { name: "Michael" }, 
      parent: { name: "Liz"} 
    }
];

The hierarchical data source api doesnt have anything on sorting, and the normal datasource api shows how to sort, but not for hierarchical structures. 

Thanks for help!
Alexander Popov
Telerik team
 answered on 04 Apr 2014
1 answer
75 views
Hello,

I have a StockChart with couple area graphs, and a navigator, and whenever I navigate around, I lose my crosshair... 
Before any navigation, crosshair is visible and works, but after some moving around, it goes invisible, I check the chart object,
and see that its visible option is true...

Tho I do not know if it is related but, I have seen this option as false;
myChart._plotArea.crosshairs[0]._visible = false

Please help me with this issue... Really irritating :(
Thanks!
Iliana Dyankova
Telerik team
 answered on 04 Apr 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
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
DropDownTree
ListBox
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
LLM Kit
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?